python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 732067 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3335439) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3335439) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259819 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3335439'] with mtr_portfolio_ids : ['25259819'] and first list_photo_ids : [] new path : /proc/732067/ Name: python3 Umask: 0002 State: R (running) Tgid: 732067 Ngid: 0 Pid: 732067 PPid: 732066 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 732067 NSpid: 732067 NSpgid: 730935 NSsid: 730935 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97996 kB VmRSS: 97996 kB RssAnon: 59804 kB RssFile: 38192 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '732067', 'Ngid': '0', 'Pid': '732067', 'PPid': '732066', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '732067', 'NSpid': '732067', 'NSpgid': '730935', 'NSsid': '730935', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97996 kB', 'VmRSS': '97996 kB', 'RssAnon': '59804 kB', 'RssFile': '38192 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '732067', '1106896', '0', '1106896', '865648', '97996', b'', 'marlene', '3335439') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25259819) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (3335439 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25259819) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373471421, 'portfolio_id': 25259819}, {'photo_id': 1373471374, 'portfolio_id': 25259819}, {'photo_id': 1373471351, 'portfolio_id': 25259819}, {'photo_id': 1373471325, 'portfolio_id': 25259819}, {'photo_id': 1373471301, 'portfolio_id': 25259819}, {'photo_id': 1373471275, 'portfolio_id': 25259819}, {'photo_id': 1373471054, 'portfolio_id': 25259819}, {'photo_id': 1373471006, 'portfolio_id': 25259819}, {'photo_id': 1373470981, 'portfolio_id': 25259819}, {'photo_id': 1373470980, 'portfolio_id': 25259819}, {'photo_id': 1373470977, 'portfolio_id': 25259819}, {'photo_id': 1373470974, 'portfolio_id': 25259819}, {'photo_id': 1373470855, 'portfolio_id': 25259819}, {'photo_id': 1373470844, 'portfolio_id': 25259819}, {'photo_id': 1373470837, 'portfolio_id': 25259819}, {'photo_id': 1373470832, 'portfolio_id': 25259819}, {'photo_id': 1373470829, 'portfolio_id': 25259819}, {'photo_id': 1373470816, 'portfolio_id': 25259819}, {'photo_id': 1373470432, 'portfolio_id': 25259819}, {'photo_id': 1373470405, 'portfolio_id': 25259819}, {'photo_id': 1373470385, 'portfolio_id': 25259819}, {'photo_id': 1373470382, 'portfolio_id': 25259819}, {'photo_id': 1373470371, 'portfolio_id': 25259819}, {'photo_id': 1373470355, 'portfolio_id': 25259819}, {'photo_id': 1373470177, 'portfolio_id': 25259819}, {'photo_id': 1373470143, 'portfolio_id': 25259819}, {'photo_id': 1373470116, 'portfolio_id': 25259819}, {'photo_id': 1373470108, 'portfolio_id': 25259819}, {'photo_id': 1373470102, 'portfolio_id': 25259819}, {'photo_id': 1373470099, 'portfolio_id': 25259819}, {'photo_id': 1373469953, 'portfolio_id': 25259819}, {'photo_id': 1373469926, 'portfolio_id': 25259819}, {'photo_id': 1373469897, 'portfolio_id': 25259819}, {'photo_id': 1373469839, 'portfolio_id': 25259819}, {'photo_id': 1373469804, 'portfolio_id': 25259819}, {'photo_id': 1373469768, 'portfolio_id': 25259819}, {'photo_id': 1373469333, 'portfolio_id': 25259819}, {'photo_id': 1373469304, 'portfolio_id': 25259819}, {'photo_id': 1373469286, 'portfolio_id': 25259819}, {'photo_id': 1373469276, 'portfolio_id': 25259819}, {'photo_id': 1373469274, 'portfolio_id': 25259819}, {'photo_id': 1373469272, 'portfolio_id': 25259819}, {'photo_id': 1373469175, 'portfolio_id': 25259819}, {'photo_id': 1373469117, 'portfolio_id': 25259819}, {'photo_id': 1373469099, 'portfolio_id': 25259819}, {'photo_id': 1373469097, 'portfolio_id': 25259819}, {'photo_id': 1373469095, 'portfolio_id': 25259819}, {'photo_id': 1373469093, 'portfolio_id': 25259819}, {'photo_id': 1373469090, 'portfolio_id': 25259819}, {'photo_id': 1373469086, 'portfolio_id': 25259819}, {'photo_id': 1373469076, 'portfolio_id': 25259819}, {'photo_id': 1373469073, 'portfolio_id': 25259819}, {'photo_id': 1373469070, 'portfolio_id': 25259819}, {'photo_id': 1373469068, 'portfolio_id': 25259819}, {'photo_id': 1373469066, 'portfolio_id': 25259819}, {'photo_id': 1373469063, 'portfolio_id': 25259819}, {'photo_id': 1373468997, 'portfolio_id': 25259819}, {'photo_id': 1373468996, 'portfolio_id': 25259819}, {'photo_id': 1373468994, 'portfolio_id': 25259819}, {'photo_id': 1373468991, 'portfolio_id': 25259819}, {'photo_id': 1373468985, 'portfolio_id': 25259819}, {'photo_id': 1373468980, 'portfolio_id': 25259819}, {'photo_id': 1373468940, 'portfolio_id': 25259819}, {'photo_id': 1373468937, 'portfolio_id': 25259819}, {'photo_id': 1373468934, 'portfolio_id': 25259819}, {'photo_id': 1373468932, 'portfolio_id': 25259819}, {'photo_id': 1373468931, 'portfolio_id': 25259819}, {'photo_id': 1373468926, 'portfolio_id': 25259819}] map_portfolio_id_photo_id: {25259819: [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974, 1373470855, 1373470844, 1373470837, 1373470832, 1373470829, 1373470816, 1373470432, 1373470405, 1373470385, 1373470382, 1373470371, 1373470355, 1373470177, 1373470143, 1373470116, 1373470108, 1373470102, 1373470099, 1373469953, 1373469926, 1373469897, 1373469839, 1373469804, 1373469768, 1373469333, 1373469304, 1373469286, 1373469276, 1373469274, 1373469272, 1373469175, 1373469117, 1373469099, 1373469097, 1373469095, 1373469093, 1373469090, 1373469086, 1373469076, 1373469073, 1373469070, 1373469068, 1373469066, 1373469063, 1373468997, 1373468996, 1373468994, 1373468991, 1373468985, 1373468980, 1373468940, 1373468937, 1373468934, 1373468932, 1373468931, 1373468926]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.01660776138305664 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 24 07:58:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25259819) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 25259819 get user id for portfolio 25259819 get sub ptf for main ptf 25259819, type 3726 and hashtags ['flou', 'mal_croppe', 'kraft', 'papier', 'metal', 'Carton_brun', 'plastique', 'cartonnette', 'autre_refus', 'Teint_Dans_La_Masse', 'Carton_gris', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259819 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','kraft','papier','metal','Carton_brun','plastique','cartonnette','autre_refus','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259819 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','kraft','papier','metal','Carton_brun','plastique','cartonnette','autre_refus','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25259819, 'sub_port_id': 25259825, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039557, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'Carton_brun': {'main_port_id': 25259819, 'sub_port_id': 25259826, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039558, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'plastique': {'main_port_id': 25259819, 'sub_port_id': 25259827, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039559, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'environnement': {'main_port_id': 25259819, 'sub_port_id': 25259828, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039560, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'mal_croppe': {'main_port_id': 25259819, 'sub_port_id': 25259829, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039561, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'cartonnette': {'main_port_id': 25259819, 'sub_port_id': 25259830, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039562, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'papier': {'main_port_id': 25259819, 'sub_port_id': 25259831, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039563, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'flou': {'main_port_id': 25259819, 'sub_port_id': 25259832, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039564, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'kraft': {'main_port_id': 25259819, 'sub_port_id': 25259833, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039565, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'autre_refus': {'main_port_id': 25259819, 'sub_port_id': 25259834, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039566, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'metal': {'main_port_id': 25259819, 'sub_port_id': 25259835, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039567, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25259819, 'sub_port_id': 25259836, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039568, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259825 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259825) result : ((1373469798,), (1373469800,), (1373470420,), (1373470422,), (1373470425,), (1373470427,), (1373470429,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259826 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259826) result : ((1373469288,), (1373469824,), (1373469826,), (1373469828,), (1373469830,), (1373469832,), (1373470115,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259827 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259827) result : ((1373469292,), (1373469294,), (1373469296,), (1373469298,), (1373469845,), (1373469848,), (1373470117,), (1373470118,), (1373470119,), (1373470120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259828 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259828) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259829 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259829) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259830 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259830) result : ((1373469282,), (1373469283,), (1373469284,), (1373469285,), (1373469287,), (1373469809,), (1373469811,), (1373469813,), (1373470110,), (1373470111,), (1373470112,), (1373470113,), (1373470114,), (1373470437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259831 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259831) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259832 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259832) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259833 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259833) result : ((1373469312,), (1373469314,), (1373469316,), (1373469318,), (1373469320,), (1373469870,), (1373469873,), (1373470127,), (1373470129,), (1373470131,), (1373470133,), (1373470135,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259834 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259834) result : ((1373469277,), (1373469278,), (1373469279,), (1373469281,), (1373469786,), (1373469788,), (1373469790,), (1373470104,), (1373470105,), (1373470106,), (1373470107,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259835 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259835) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25259836 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=25259819 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259836) result : ((1373469772,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25259819) result : ((1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259819 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','kraft','papier','metal','Carton_brun','plastique','cartonnette','autre_refus','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259819 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','kraft','papier','metal','Carton_brun','plastique','cartonnette','autre_refus','Teint_Dans_La_Masse','Carton_gris','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 25259819, 'sub_port_id': 25259837, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039569, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'Carton_brun': {'main_port_id': 25259819, 'sub_port_id': 25259838, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039570, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'plastique': {'main_port_id': 25259819, 'sub_port_id': 25259839, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039571, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'environnement': {'main_port_id': 25259819, 'sub_port_id': 25259840, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039572, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'mal_croppe': {'main_port_id': 25259819, 'sub_port_id': 25259841, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039573, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'cartonnette': {'main_port_id': 25259819, 'sub_port_id': 25259842, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039574, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'papier': {'main_port_id': 25259819, 'sub_port_id': 25259843, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039575, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'flou': {'main_port_id': 25259819, 'sub_port_id': 25259844, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039576, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'kraft': {'main_port_id': 25259819, 'sub_port_id': 25259845, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039577, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'autre_refus': {'main_port_id': 25259819, 'sub_port_id': 25259846, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039578, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'metal': {'main_port_id': 25259819, 'sub_port_id': 25259847, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039579, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 49), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 25259819, 'sub_port_id': 25259848, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17039580, 'last_updated_at': datetime.datetime(2025, 7, 24, 7, 56, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 7, 56, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 7, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25259848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25259836 lien utilise dans velours : https://www.fotonower.com/velours/25259837,25259838,25259839,25259840,25259841,25259842,25259843,25259844,25259845,25259846,25259847,25259848?tags=Carton_gris,Carton_brun,plastique,environnement,mal_croppe,cartonnette,papier,flou,kraft,autre_refus,metal,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25259819]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] map_info['map_portfolio_photo'] : {25259819: [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974, 1373470855, 1373470844, 1373470837, 1373470832, 1373470829, 1373470816, 1373470432, 1373470405, 1373470385, 1373470382, 1373470371, 1373470355, 1373470177, 1373470143, 1373470116, 1373470108, 1373470102, 1373470099, 1373469953, 1373469926, 1373469897, 1373469839, 1373469804, 1373469768, 1373469333, 1373469304, 1373469286, 1373469276, 1373469274, 1373469272, 1373469175, 1373469117, 1373469099, 1373469097, 1373469095, 1373469093, 1373469090, 1373469086, 1373469076, 1373469073, 1373469070, 1373469068, 1373469066, 1373469063, 1373468997, 1373468996, 1373468994, 1373468991, 1373468985, 1373468980, 1373468940, 1373468937, 1373468934, 1373468932, 1373468931, 1373468926]} final : False mtd_id 4302 list_pids : [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] Looping around the photos to save general results len do output : 1 /25259819. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25259819', "{'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836}", None, None, None, None, '3335439'), ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439')] time used for this insertion : 0.04600787162780762 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.598954200744629 time spend to save output : 0.04627203941345215 total time spend for step 1 : 1.645226240158081 step2:final Thu Jul 24 07:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25259819) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 25259819 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373468940,1373468937,1373468934,1373468932,1373468931,1373468926,1373468997,1373468996,1373468994,1373468991,1373468985,1373468980,1373469076,1373469073,1373469070,1373469068,1373469066,1373469063,1373469099,1373469097,1373469095,1373469093,1373469090,1373469086,1373469117,1373469175,1373469333,1373469304,1373469286,1373469276,1373469274,1373469272,1373469953,1373469926,1373469897,1373469839,1373469804,1373469768,1373470177,1373470143,1373470116,1373470108,1373470102,1373470099,1373470432,1373470405,1373470385,1373470382,1373470371,1373470355,1373470855,1373470844,1373470837,1373470832,1373470829,1373470816,1373471054,1373471006,1373470981,1373470980,1373470977,1373470974,1373471421,1373471374,1373471351,1373471325,1373471301,1373471275); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25259819]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} new output for save of step final : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] map_info['map_portfolio_photo'] : {25259819: [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974, 1373470855, 1373470844, 1373470837, 1373470832, 1373470829, 1373470816, 1373470432, 1373470405, 1373470385, 1373470382, 1373470371, 1373470355, 1373470177, 1373470143, 1373470116, 1373470108, 1373470102, 1373470099, 1373469953, 1373469926, 1373469897, 1373469839, 1373469804, 1373469768, 1373469333, 1373469304, 1373469286, 1373469276, 1373469274, 1373469272, 1373469175, 1373469117, 1373469099, 1373469097, 1373469095, 1373469093, 1373469090, 1373469086, 1373469076, 1373469073, 1373469070, 1373469068, 1373469066, 1373469063, 1373468997, 1373468996, 1373468994, 1373468991, 1373468985, 1373468980, 1373468940, 1373468937, 1373468934, 1373468932, 1373468931, 1373468926]} final : False mtd_id 4302 list_pids : [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] Looping around the photos to save general results len do output : 12 /1373471421.Didn't retrieve data . /1373471374.Didn't retrieve data . /1373471351.Didn't retrieve data . /1373471325.Didn't retrieve data . /1373471301.Didn't retrieve data . /1373471275.Didn't retrieve data . /1373471054.Didn't retrieve data . /1373471006.Didn't retrieve data . /1373470981.Didn't retrieve data . /1373470980.Didn't retrieve data . /1373470977.Didn't retrieve data . /1373470974.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25259819', '1373471421', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471374', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471351', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471325', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471301', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471275', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471054', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373471006', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373470981', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373470980', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373470977', '0.041552474773887065', None, None, None, None, '3335439'), ('4302', '25259819', '1373470974', '0.041552474773887065', None, None, None, None, '3335439')] time used for this insertion : 0.01927804946899414 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0616910457611084 time spend to save output : 0.01988506317138672 total time spend for step 2 : 0.08157610893249512 step3:velours_tree Thu Jul 24 07:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25259819: [{'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836}]} input_args_next_step : {25259819: ()} output_args : {25259819: [{'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836}]} args : 25259819 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25259819) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25259819]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.3101930618286133 time spend to save output : 6.246566772460938e-05 total time spend for step 3 : 0.3102555274963379 step4:send_mail_cod Thu Jul 24 07:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} input_args_next_step : {1373471421: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471421 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471374 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471351 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471325 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471301 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471275 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471054 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373471006 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373470981 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373470980 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373470977 depend.output_id : 0 input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ()} output_args : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',)} args : 1373470974 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25259819: [{'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836}]} input_args_next_step : {1373471421: ('0.041552474773887065',), 1373471374: ('0.041552474773887065',), 1373471351: ('0.041552474773887065',), 1373471325: ('0.041552474773887065',), 1373471301: ('0.041552474773887065',), 1373471275: ('0.041552474773887065',), 1373471054: ('0.041552474773887065',), 1373471006: ('0.041552474773887065',), 1373470981: ('0.041552474773887065',), 1373470980: ('0.041552474773887065',), 1373470977: ('0.041552474773887065',), 1373470974: ('0.041552474773887065',), 25259819: ()} output_args : {25259819: [{'Carton_gris': 25259825, 'Carton_brun': 25259826, 'plastique': 25259827, 'environnement': 25259828, 'mal_croppe': 25259829, 'cartonnette': 25259830, 'papier': 25259831, 'flou': 25259832, 'kraft': 25259833, 'autre_refus': 25259834, 'metal': 25259835, 'Teint_Dans_La_Masse': 25259836}]} args : 25259819 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.041552474773887065',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25259819) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1373471421,1373471374,1373471351,1373471325,1373471301,1373471275,1373471054,1373471006,1373470981,1373470980,1373470977,1373470974) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373470974 begin to download photo : 1373470981 begin to download photo : 1373471275 begin to download photo : 1373471351 download finish for photo 1373471275 begin to download photo : 1373471301 download finish for photo 1373471351 begin to download photo : 1373471374 download finish for photo 1373470981 begin to download photo : 1373471006 download finish for photo 1373470974 begin to download photo : 1373470977 download finish for photo 1373471374 begin to download photo : 1373471421 download finish for photo 1373471006 begin to download photo : 1373471054 download finish for photo 1373471301 begin to download photo : 1373471325 download finish for photo 1373470977 begin to download photo : 1373470980 download finish for photo 1373471421 download finish for photo 1373471054 download finish for photo 1373471325 download finish for photo 1373470980 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25259819_24-07-2025_07_58_58.pdf 25259827 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469292: '1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200700_0.png', 1373469294: '1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200709_0.png', 1373469296: '1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200716_0.png', 1373469298: '1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200721_0.png', 1373469845: '1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201449_0.png', 1373469848: '1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201452_0.png', 1373470117: '1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200700_0.png', 1373470118: '1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200709_0.png', 1373470119: '1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200716_0.png', 1373470120: '1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200721_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f789666f4cfd85bec00d360f0e87164e_7494339.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7f0a1ddb46eb95076a64b75f893c99f9_71627359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/67af1e239051d3c2df864bf1650af12b_52441567.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/749d8cb62d869daf294dd7817afa0dc0_22031421.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8c9c4d5fcd6cec822bf9e4ce0dd625b8_26172656.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/ae6187abcc6dfc2b696fbdb20c1960e1_34870288.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f789666f4cfd85bec00d360f0e87164e_25329155.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7f0a1ddb46eb95076a64b75f893c99f9_36911765.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/67af1e239051d3c2df864bf1650af12b_99281234.png change filename to text .imagette252598271753336738/ imagette252598271753336738/1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200709_0.png.png imagette252598271753336738/1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200716_0.png.png imagette252598271753336738/1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201449_0.png.png imagette252598271753336738/1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200700_0.png.png imagette252598271753336738/1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200721_0.png.png imagette252598271753336738/1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201452_0.png.png imagette252598271753336738/1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200700_0.png.png imagette252598271753336738/1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200709_0.png.png imagette252598271753336738/1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200716_0.png.png imagette252598271753336738/1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200721_0.png.png imagette252598291753336739/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/749d8cb62d869daf294dd7817afa0dc0_97734433.png imagette252598271753336738 25259829 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259829 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252598291753336739 25259830 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259830 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469282: '1753336287_2650479_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200626_0.png', 1373469283: '1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200637_0.png', 1373469284: '1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200657_0.png', 1373469285: '1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200704_0.png', 1373469287: '1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200723_0.png', 1373469809: '1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201451_0.png', 1373469811: '1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201478_0.png', 1373469813: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201516_0.png', 1373470110: '1753336406_2653928_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200626_0.png', 1373470111: '1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200637_0.png', 1373470112: '1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200657_0.png', 1373470113: '1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200704_0.png', 1373470114: '1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200723_0.png', 1373470437: '1753336466_2657217_1373469276_4f778bffa914dcb2616d17d2a18fe425_rle_crop_3892203384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a35d11b581d4bd5c43af7da45b5a975a_73009631.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3132ba925d387650ca575956249cd821_84311752.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/40bcc966483bd414476c62e71cf70ce5_94731600.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/e938763048aac1d3ee03d4c23a506601_36606086.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3d19af2b49d5da8841517a3620581950_47116700.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c0557f3050fbf5a4daf004307e5173df_99607097.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c72c03a582971e9a08d77b560039fa33_90178262.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7aaa0559aa1112e5e1b9edef21409883_2377591.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a35d11b581d4bd5c43af7da45b5a975a_16249484.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3132ba925d387650ca575956249cd821_20717148.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/40bcc966483bd414476c62e71cf70ce5_86840227.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/e938763048aac1d3ee03d4c23a506601_8977235.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3d19af2b49d5da8841517a3620581950_29353531.png change filename to text .imagette252598301753336739/ imagette252598301753336739/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201516_0.png.png imagette252598301753336739/1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200637_0.png.png imagette252598301753336739/1753336466_2657217_1373469276_4f778bffa914dcb2616d17d2a18fe425_rle_crop_3892203384_0.png.png imagette252598301753336739/1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200723_0.png.png imagette252598301753336739/1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200637_0.png.png imagette252598301753336739/1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201478_0.png.png imagette252598301753336739/1753336406_2653928_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200626_0.png.png imagette252598301753336739/1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200704_0.png.png imagette252598301753336739/1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200723_0.png.png imagette252598301753336739/1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200657_0.png.png imagette252598301753336739/1753336287_2650479_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200626_0.png.png imagette252598301753336739/1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200657_0.png.png imagette252598301753336739/1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200704_0.png.png imagette252598301753336739/1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201451_0.png.png imagette252598321753336740/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3e6742de2e10056a427a72d2bee7dc93_12279444.png imagette252598301753336739 25259832 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252598321753336740 25259833 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469312: '1753336287_2650479_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200625_0.png', 1373469314: '1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200642_0.png', 1373469316: '1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200659_0.png', 1373469318: '1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200707_0.png', 1373469320: '1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200725_0.png', 1373469870: '1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201455_0.png', 1373469873: '1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201480_0.png', 1373470127: '1753336406_2653928_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200625_0.png', 1373470129: '1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200642_0.png', 1373470131: '1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200659_0.png', 1373470133: '1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200707_0.png', 1373470135: '1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/e0df1b29dbc95f45675082fe61810248_29916233.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/1ea965ba404e776de3e36318aac3c975_1552763.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b0f2f8acaf9c1386b53057b6d41dbfa3_99534590.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/324303a184ef830f60205ebdc57247ff_71711772.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/1bd507324277ca47f0f6427d47e7402a_37199883.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a8d7c0c7d829741fdd29d25d81ad5f29_70171219.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/69eba8829e29c20bec819b1d62957eeb_89685360.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/e0df1b29dbc95f45675082fe61810248_23864567.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/1ea965ba404e776de3e36318aac3c975_17614360.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b0f2f8acaf9c1386b53057b6d41dbfa3_66692521.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/324303a184ef830f60205ebdc57247ff_29301153.png change filename to text .imagette252598331753336740/ imagette252598331753336740/1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200725_0.png.png imagette252598331753336740/1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201480_0.png.png imagette252598331753336740/1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200725_0.png.png imagette252598331753336740/1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200659_0.png.png imagette252598331753336740/1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200642_0.png.png imagette252598331753336740/1753336345_2653256_1373469099_e55ca64dd165368e612be3b39db03dc0_rle_crop_3892201455_0.png.png imagette252598331753336740/1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200707_0.png.png imagette252598331753336740/1753336406_2653928_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200625_0.png.png imagette252598331753336740/1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200659_0.png.png imagette252598331753336740/1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200642_0.png.png imagette252598331753336740/1753336287_2650479_1373469073_490d238350ad597420095667b455d52f_rle_crop_3892200625_0.png.png imagette252598331753336740/1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200707_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/1bd507324277ca47f0f6427d47e7402a_67305697.png imagette252598331753336740 25259834 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469277: '1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200633_0.png', 1373469278: '1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200651_0.png', 1373469279: '1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200702_0.png', 1373469281: '1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200717_0.png', 1373469786: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201524_0.png', 1373469788: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201519_0.png', 1373469790: '1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201538_0.png', 1373470104: '1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200633_0.png', 1373470105: '1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200651_0.png', 1373470106: '1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200702_0.png', 1373470107: '1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200717_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8f5eb9ddd90566f0d7c4119b8d0e9bb2_58825858.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a9e6648ba9797926c466586e7db2a990_47936017.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7ee7cba6486e8a00512c804a2156996e_16762178.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8640436b4f554523f34617a9473f9840_68676350.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/9551c7a3a947ccd7958e221c868f70f8_52769344.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d25119e807dfa3a01863501bc5d6bfc6_96542602.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/4346387fa50a5e579fdaf2df2e5249a3_25576721.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8f5eb9ddd90566f0d7c4119b8d0e9bb2_13293853.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a9e6648ba9797926c466586e7db2a990_55617024.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7ee7cba6486e8a00512c804a2156996e_27638699.png change filename to text .imagette252598341753336741/ imagette252598341753336741/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201524_0.png.png imagette252598341753336741/1753336287_2650479_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200702_0.png.png imagette252598341753336741/1753336406_2653928_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200651_0.png.png imagette252598341753336741/1753336287_2650479_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200717_0.png.png imagette252598341753336741/1753336406_2653928_1373469063_c0d3fa172e84bcbf7706b8cc0a3341de_rle_crop_3892200717_0.png.png imagette252598341753336741/1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200633_0.png.png imagette252598341753336741/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201519_0.png.png imagette252598341753336741/1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201538_0.png.png imagette252598341753336741/1753336287_2650479_1373469068_1e6fd4eca7f6abfe40826a1e52d769eb_rle_crop_3892200651_0.png.png imagette252598341753336741/1753336406_2653928_1373469066_9b4bb2bc9daf2ddc98f7bf98148ba683_rle_crop_3892200702_0.png.png imagette252598341753336741/1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200633_0.png.png imagette252598351753336741/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8640436b4f554523f34617a9473f9840_91578171.png imagette252598341753336741 25259835 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252598351753336741 25259825 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469798: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201518_0.png', 1373469800: '1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201534_0.png', 1373470420: '1753336466_2657217_1373469333_486375a2dd2e86a58dd66e5b951e1909_rle_crop_3892202899_0.png', 1373470422: '1753336466_2657217_1373469304_5f98ebe2fd3a86c95aa8674b12d8e4b1_rle_crop_3892203368_0.png', 1373470425: '1753336466_2657217_1373469286_803e5d33cd8b698ccf8069e296123e51_rle_crop_3892203378_0.png', 1373470427: '1753336466_2657217_1373469274_5b113dc1a69d3b18a42fd2301f0279e3_rle_crop_3892203393_0.png', 1373470429: '1753336466_2657217_1373469272_6eb6cdac9b608791f28b1c05a333e938_rle_crop_3892203402_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/2f0eb57ad00281d983dfbc39dd4d0416_55772278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d2ebe82c4527e7c69d3e8ae0d37a8411_91936813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f540319c4f121776414d72f7da6cf71a_74631260.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/29dac4da262d4d4f99ed067d758f201f_64156123.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7470bb674076d357a66d742010725976_88237022.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/0bb6f71060d713fde61ccf7fee63513c_70742356.png change filename to text .imagette252598251753336741/ imagette252598251753336741/1753336466_2657217_1373469286_803e5d33cd8b698ccf8069e296123e51_rle_crop_3892203378_0.png.png imagette252598251753336741/1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201534_0.png.png imagette252598251753336741/1753336466_2657217_1373469274_5b113dc1a69d3b18a42fd2301f0279e3_rle_crop_3892203393_0.png.png imagette252598251753336741/1753336466_2657217_1373469333_486375a2dd2e86a58dd66e5b951e1909_rle_crop_3892202899_0.png.png imagette252598251753336741/1753336466_2657217_1373469304_5f98ebe2fd3a86c95aa8674b12d8e4b1_rle_crop_3892203368_0.png.png imagette252598251753336741/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201518_0.png.png imagette252598251753336741/1753336466_2657217_1373469272_6eb6cdac9b608791f28b1c05a333e938_rle_crop_3892203402_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/4b54ab11b2b67329ebf3eedc4172d304_47824856.png imagette252598251753336741 25259826 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469288: '1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200638_0.png', 1373469824: '1753336345_2653256_1373469095_25ca903116124397e91da9f45fbea885_rle_crop_3892201488_0.png', 1373469826: '1753336345_2653256_1373469093_bd0a1c7c1fae3e4b8c8f0d5a7b07aa9f_rle_crop_3892201501_0.png', 1373469828: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201521_0.png', 1373469830: '1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201528_0.png', 1373469832: '1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201543_0.png', 1373470115: '1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200638_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/759dfd432767fc2c8c5d7de7e08a290f_13174679.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/5e775f102a45cc86c61b0efa0d15b99b_17842737.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a29bf9e2e0a9a66baa7cd8195f9dd17c_68901785.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/63a2d7e36c5d61f50adac1edbf6ac761_77998191.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/68fb92a9f9a7113f476412e3a72fab8c_6354859.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/aa2dac99046ae5bef5850a8b881a8231_34320472.png change filename to text .imagette252598261753336742/ imagette252598261753336742/1753336406_2653928_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200638_0.png.png imagette252598261753336742/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201521_0.png.png imagette252598261753336742/1753336345_2653256_1373469095_25ca903116124397e91da9f45fbea885_rle_crop_3892201488_0.png.png imagette252598261753336742/1753336345_2653256_1373469093_bd0a1c7c1fae3e4b8c8f0d5a7b07aa9f_rle_crop_3892201501_0.png.png imagette252598261753336742/1753336287_2650479_1373469070_50fd42b5384c5fd3f2633b55ffe54ce0_rle_crop_3892200638_0.png.png imagette252598261753336742/1753336345_2653256_1373469086_e4e50ad6713a8c91340c276f0c94eef7_rle_crop_3892201543_0.png.png imagette252598261753336742/1753336345_2653256_1373469090_edf2f153a17e0d67915a94877fae28ae_rle_crop_3892201528_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/759dfd432767fc2c8c5d7de7e08a290f_58308234.png imagette252598261753336742 25259836 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373469772: '1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201479_0.png'} change filename to text .imagette252598361753336742/ imagette252598361753336742/1753336345_2653256_1373469097_5a112201ca94f62ac572ba1b8ff87e23_rle_crop_3892201479_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/651447b97f4ca5e9bf6f5baecd990fe2_29307654.png imagette252598361753336742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25259819 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25259837,25259838,25259839,25259840,25259841,25259842,25259843,25259844,25259845,25259846,25259847,25259848?tags=Carton_gris,Carton_brun,plastique,environnement,mal_croppe,cartonnette,papier,flou,kraft,autre_refus,metal,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1373471421] : ('0.041552474773887065',) no score found for photo 1373471421 We are sending mail with results at report@fotonower.com args[1373471374] : ('0.041552474773887065',) no score found for photo 1373471374 We are sending mail with results at report@fotonower.com args[1373471351] : ('0.041552474773887065',) no score found for photo 1373471351 We are sending mail with results at report@fotonower.com args[1373471325] : ('0.041552474773887065',) no score found for photo 1373471325 We are sending mail with results at report@fotonower.com args[1373471301] : ('0.041552474773887065',) no score found for photo 1373471301 We are sending mail with results at report@fotonower.com args[1373471275] : ('0.041552474773887065',) no score found for photo 1373471275 We are sending mail with results at report@fotonower.com args[1373471054] : ('0.041552474773887065',) no score found for photo 1373471054 We are sending mail with results at report@fotonower.com args[1373471006] : ('0.041552474773887065',) no score found for photo 1373471006 We are sending mail with results at report@fotonower.com args[1373470981] : ('0.041552474773887065',) no score found for photo 1373470981 We are sending mail with results at report@fotonower.com args[1373470980] : ('0.041552474773887065',) no score found for photo 1373470980 We are sending mail with results at report@fotonower.com args[1373470977] : ('0.041552474773887065',) no score found for photo 1373470977 We are sending mail with results at report@fotonower.com args[1373470974] : ('0.041552474773887065',) no score found for photo 1373470974 We are sending mail with results at report@fotonower.com refus_total : 0.041552474773887065 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259819 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf results_Auto_P25259819_24-07-2025_07_58_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25259819','results_Auto_P25259819_24-07-2025_07_58_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf','pdf','','0.2','0.041552474773887065') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25259819]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] map_info['map_portfolio_photo'] : {25259819: [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974, 1373470855, 1373470844, 1373470837, 1373470832, 1373470829, 1373470816, 1373470432, 1373470405, 1373470385, 1373470382, 1373470371, 1373470355, 1373470177, 1373470143, 1373470116, 1373470108, 1373470102, 1373470099, 1373469953, 1373469926, 1373469897, 1373469839, 1373469804, 1373469768, 1373469333, 1373469304, 1373469286, 1373469276, 1373469274, 1373469272, 1373469175, 1373469117, 1373469099, 1373469097, 1373469095, 1373469093, 1373469090, 1373469086, 1373469076, 1373469073, 1373469070, 1373469068, 1373469066, 1373469063, 1373468997, 1373468996, 1373468994, 1373468991, 1373468985, 1373468980, 1373468940, 1373468937, 1373468934, 1373468932, 1373468931, 1373468926]} final : False mtd_id 4302 list_pids : [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25259819', '1373471421', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439')] time used for this insertion : 0.0349583625793457 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.224302291870117 time spend to save output : 0.03518509864807129 total time spend for step 4 : 5.2594873905181885 step5:split_time_score Thu Jul 24 07:59:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25259819'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('25259819',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25259819) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373471351: {'path': 'temp/1753336738_732067_1373471351_6c6ed18ef3ec562fc5b1b243a8f5c011.jpg', 'extension': 'jpg'}, 1373471374: {'path': 'temp/1753336738_732067_1373471374_5fbe3abec0a76d87b277768a7e20ec40.jpg', 'extension': 'jpg'}, 1373471421: {'path': 'temp/1753336738_732067_1373471421_f6033d9636d1a8f9dc5c0e68cc0fef88.jpg', 'extension': 'jpg'}, 1373470981: {'path': 'temp/1753336738_732067_1373470981_765a3dd6cd19b560c99aa6cb0661f8bd.jpg', 'extension': 'jpg'}, 1373471006: {'path': 'temp/1753336738_732067_1373471006_a61e5642f37f6f6d08ba064b354f571d.jpg', 'extension': 'jpg'}, 1373471054: {'path': 'temp/1753336738_732067_1373471054_70c3e20e12d3ac1eb7a6242be58af059.jpg', 'extension': 'jpg'}, 1373471275: {'path': 'temp/1753336738_732067_1373471275_44dda9c07c44ed36050a879ab0168658.jpg', 'extension': 'jpg'}, 1373471301: {'path': 'temp/1753336738_732067_1373471301_dd187874364d95e3c1ea9bb422d3acca.jpg', 'extension': 'jpg'}, 1373471325: {'path': 'temp/1753336738_732067_1373471325_e3404ee386e4411e51562faed8d772d4.jpg', 'extension': 'jpg'}, 1373470974: {'path': 'temp/1753336738_732067_1373470974_626c8da35c74fe3f7231668f977fd033.jpg', 'extension': 'jpg'}, 1373470977: {'path': 'temp/1753336738_732067_1373470977_ee306b43310b43b41a4809aedbb10ee4.jpg', 'extension': 'jpg'}, 1373470980: {'path': 'temp/1753336738_732067_1373470980_b068783d20f0059ef814c7630bda50ca.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 25259819; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25259819 group by h (('07', 68),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25259819 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (25259819) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (25259819) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24072025 25259819 Nombre de photos uploadées : 68 / 23040 (0%) 24072025 25259819 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 24072025 25259819 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1373468940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/14ae2ce880f3aea321a25158bc346d8f.jpg', 'username': None, 'uploaded_at': 1753335963, 'text': 'image_24072025_07_45_04_10141.jpg'}, {'photo_id': 1373468937, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/665762b3672f34f074426d8805eeab91.jpg', 'username': None, 'uploaded_at': 1753335963, 'text': 'image_24072025_07_45_14_10134.jpg'}, {'photo_id': 1373468934, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/e26970b194496033ffd622725c3fc786.jpg', 'username': None, 'uploaded_at': 1753335963, 'text': 'image_24072025_07_45_24_10134.jpg'}, {'photo_id': 1373468932, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/75759b402cd252d7dc369982c2cfbdcf.jpg', 'username': None, 'uploaded_at': 1753335963, 'text': 'image_24072025_07_45_33_9124.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032172203063964844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25259819, '2025-07-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2002734,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.036724090576171875 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2002734 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25245820, 'dashboard_result_id': 12999655, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25246316, 'dashboard_result_id': 12999656, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25246632, 'dashboard_result_id': 12999657, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25246996, 'dashboard_result_id': 12999658, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25247263, 'dashboard_result_id': 12999659, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25247788, 'dashboard_result_id': 12999660, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25248336, 'dashboard_result_id': 12999661, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25248727, 'dashboard_result_id': 12999662, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25249105, 'dashboard_result_id': 12999663, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25249748, 'dashboard_result_id': 12999664, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25250094, 'dashboard_result_id': 12999665, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25250494, 'dashboard_result_id': 12999666, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25250838, 'dashboard_result_id': 12999667, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25251371, 'dashboard_result_id': 12999668, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25251822, 'dashboard_result_id': 12999669, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25252281, 'dashboard_result_id': 12999670, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25252752, 'dashboard_result_id': 12999671, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25253150, 'dashboard_result_id': 12999672, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25253504, 'dashboard_result_id': 12999673, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25253932, 'dashboard_result_id': 12999674, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25254261, 'dashboard_result_id': 12999675, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25254804, 'dashboard_result_id': 12999676, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25255177, 'dashboard_result_id': 12999677, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25255497, 'dashboard_result_id': 12999678, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25255885, 'dashboard_result_id': 12999679, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25256351, 'dashboard_result_id': 12999680, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25256792, 'dashboard_result_id': 12999681, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25257228, 'dashboard_result_id': 12999682, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_06_59_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25257684, 'dashboard_result_id': 12999683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25258386, 'dashboard_result_id': 12999684, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25259037, 'dashboard_result_id': 12999685, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011212, 'mtr_portfolio_id': 25259819, 'dashboard_result_id': 12999686, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_56_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25245820 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334263, 'mtr_portfolio_id': 25245820, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 40), 'result': '0.038215598605625845', 'result_long': None, 'result_double': None}] Qualite : 0.038215598605625845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25245820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25245820 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}" where mtr_portfolio_id = 25245820 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25245820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999655, 0.038215598605625845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25246316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334264, 'mtr_portfolio_id': 25246316, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 30), 'result': '0.03126112302470875', 'result_long': None, 'result_double': None}] Qualite : 0.03126112302470875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246316 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}" where mtr_portfolio_id = 25246316 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25246316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999656, 0.03126112302470875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25246632 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334265, 'mtr_portfolio_id': 25246632, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 59), 'result': '0.04209888580772617', 'result_long': None, 'result_double': None}] Qualite : 0.04209888580772617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246632 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}" where mtr_portfolio_id = 25246632 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25246632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999657, 0.04209888580772617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25246996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334266, 'mtr_portfolio_id': 25246996, 'created_at': datetime.datetime(2025, 7, 24, 6, 32, 29), 'result': '0.037362390466138935', 'result_long': None, 'result_double': None}] Qualite : 0.037362390466138935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}" where mtr_portfolio_id = 25246996 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25246996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999658, 0.037362390466138935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247263 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334267, 'mtr_portfolio_id': 25247263, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247263 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}" where mtr_portfolio_id = 25247263 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25247263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999659, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25247788 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334268, 'mtr_portfolio_id': 25247788, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247788 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}" where mtr_portfolio_id = 25247788 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25247788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999660, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25248336 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334269, 'mtr_portfolio_id': 25248336, 'created_at': datetime.datetime(2025, 7, 24, 6, 34, 29), 'result': '0.04550434624396371', 'result_long': None, 'result_double': None}] Qualite : 0.04550434624396371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248336 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}" where mtr_portfolio_id = 25248336 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25248336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999661, 0.04550434624396371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25248727 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334270, 'mtr_portfolio_id': 25248727, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 29), 'result': '0.041544677557399705', 'result_long': None, 'result_double': None}] Qualite : 0.041544677557399705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248727 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}" where mtr_portfolio_id = 25248727 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25248727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999662, 0.041544677557399705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25249105 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334271, 'mtr_portfolio_id': 25249105, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 40), 'result': '0.027287981725041512', 'result_long': None, 'result_double': None}] Qualite : 0.027287981725041512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249105 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}" where mtr_portfolio_id = 25249105 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25249105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999663, 0.027287981725041512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25249748 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334272, 'mtr_portfolio_id': 25249748, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 59), 'result': '0.04867910375967595', 'result_long': None, 'result_double': None}] Qualite : 0.04867910375967595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249748 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}" where mtr_portfolio_id = 25249748 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25249748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999664, 0.04867910375967595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25250094 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334273, 'mtr_portfolio_id': 25250094, 'created_at': datetime.datetime(2025, 7, 24, 6, 36, 59), 'result': '0.05408474235416055', 'result_long': None, 'result_double': None}] Qualite : 0.05408474235416055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250094 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}" where mtr_portfolio_id = 25250094 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25250094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999665, 0.05408474235416055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25250494 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334274, 'mtr_portfolio_id': 25250494, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 27), 'result': '0.03219262700891156', 'result_long': None, 'result_double': None}] Qualite : 0.03219262700891156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250494 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}" where mtr_portfolio_id = 25250494 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25250494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999666, 0.03219262700891156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25250838 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334275, 'mtr_portfolio_id': 25250838, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 58), 'result': '0.019977432830331845', 'result_long': None, 'result_double': None}] Qualite : 0.019977432830331845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250838 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}" where mtr_portfolio_id = 25250838 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25250838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999667, 0.019977432830331845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25251371 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334276, 'mtr_portfolio_id': 25251371, 'created_at': datetime.datetime(2025, 7, 24, 6, 38, 29), 'result': '0.03179996240797819', 'result_long': None, 'result_double': None}] Qualite : 0.03179996240797819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251371 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}" where mtr_portfolio_id = 25251371 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25251371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999668, 0.03179996240797819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25251822 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334277, 'mtr_portfolio_id': 25251822, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 28), 'result': '0.038330996235407075', 'result_long': None, 'result_double': None}] Qualite : 0.038330996235407075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251822 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}" where mtr_portfolio_id = 25251822 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25251822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999669, 0.038330996235407075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25252281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334278, 'mtr_portfolio_id': 25252281, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 59), 'result': '0.04638451755557565', 'result_long': None, 'result_double': None}] Qualite : 0.04638451755557565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}" where mtr_portfolio_id = 25252281 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25252281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999670, 0.04638451755557565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25252752 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334279, 'mtr_portfolio_id': 25252752, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 32), 'result': '0.032941466003342634', 'result_long': None, 'result_double': None}] Qualite : 0.032941466003342634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252752 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}" where mtr_portfolio_id = 25252752 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25252752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999671, 0.032941466003342634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25253150 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334280, 'mtr_portfolio_id': 25253150, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 40), 'result': '0.03518817691242381', 'result_long': None, 'result_double': None}] Qualite : 0.03518817691242381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253150 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}" where mtr_portfolio_id = 25253150 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25253150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999672, 0.03518817691242381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25253504 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334281, 'mtr_portfolio_id': 25253504, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 27), 'result': '0.04192457870721397', 'result_long': None, 'result_double': None}] Qualite : 0.04192457870721397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253504 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}" where mtr_portfolio_id = 25253504 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25253504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999673, 0.04192457870721397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25253932 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334282, 'mtr_portfolio_id': 25253932, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 58), 'result': '0.06409231738904918', 'result_long': None, 'result_double': None}] Qualite : 0.06409231738904918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253932 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}" where mtr_portfolio_id = 25253932 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25253932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999674, 0.06409231738904918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25254261 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334283, 'mtr_portfolio_id': 25254261, 'created_at': datetime.datetime(2025, 7, 24, 6, 42, 30), 'result': '0.03719769099501056', 'result_long': None, 'result_double': None}] Qualite : 0.03719769099501056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254261 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}" where mtr_portfolio_id = 25254261 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25254261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999675, 0.03719769099501056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25254804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334284, 'mtr_portfolio_id': 25254804, 'created_at': datetime.datetime(2025, 7, 24, 5, 40, 39), 'result': '0.042868024995077914', 'result_long': None, 'result_double': None}] Qualite : 0.042868024995077914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254804 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}" where mtr_portfolio_id = 25254804 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25254804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999676, 0.042868024995077914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25255177 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334163, 'mtr_portfolio_id': 25255177, 'created_at': datetime.datetime(2025, 7, 24, 5, 46, 58), 'result': '0.03262217189807922', 'result_long': None, 'result_double': None}] Qualite : 0.03262217189807922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255177 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}" where mtr_portfolio_id = 25255177 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25255177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999677, 0.03262217189807922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25255497 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334356, 'mtr_portfolio_id': 25255497, 'created_at': datetime.datetime(2025, 7, 24, 6, 0, 58), 'result': '0.04344951070728682', 'result_long': None, 'result_double': None}] Qualite : 0.04344951070728682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255497 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}" where mtr_portfolio_id = 25255497 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25255497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999678, 0.04344951070728682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25255885 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334478, 'mtr_portfolio_id': 25255885, 'created_at': datetime.datetime(2025, 7, 24, 6, 16, 30), 'result': '0.031837923502929036', 'result_long': None, 'result_double': None}] Qualite : 0.031837923502929036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255885 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}" where mtr_portfolio_id = 25255885 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25255885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999679, 0.031837923502929036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25256351 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334574, 'mtr_portfolio_id': 25256351, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 59), 'result': '0.026085246051546402', 'result_long': None, 'result_double': None}] Qualite : 0.026085246051546402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256351 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}" where mtr_portfolio_id = 25256351 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25256351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999680, 0.026085246051546402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25256792 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334691, 'mtr_portfolio_id': 25256792, 'created_at': datetime.datetime(2025, 7, 24, 6, 46, 29), 'result': '0.0367596715937518', 'result_long': None, 'result_double': None}] Qualite : 0.0367596715937518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256792 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}" where mtr_portfolio_id = 25256792 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25256792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999681, 0.0367596715937518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25257228 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334799, 'mtr_portfolio_id': 25257228, 'created_at': datetime.datetime(2025, 7, 24, 7, 0, 59), 'result': '0.03855012418397147', 'result_long': None, 'result_double': None}] Qualite : 0.03855012418397147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257228 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}" where mtr_portfolio_id = 25257228 and dashboard_run_id = 2011212 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25257228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999682, 0.03855012418397147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_07_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25257684 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334933, 'mtr_portfolio_id': 25257684, 'created_at': datetime.datetime(2025, 7, 24, 7, 18, 57), 'result': '0.025329693137802284', 'result_long': None, 'result_double': None}] Qualite : 0.025329693137802284 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257684 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}" where mtr_portfolio_id = 25257684 and dashboard_run_id = 2011214 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25257684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999683, 0.025329693137802284, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257684_24-07-2025_07_18_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257699, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257703, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257705, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25258386 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3335113, 'mtr_portfolio_id': 25258386, 'created_at': datetime.datetime(2025, 7, 24, 7, 31), 'result': '0.04008529662083538', 'result_long': None, 'result_double': None}] Qualite : 0.04008529662083538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25258386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25258386 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}" where mtr_portfolio_id = 25258386 and dashboard_run_id = 2011214 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25258386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999684, 0.04008529662083538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25258386_24-07-2025_07_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25258485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25258486, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25258487, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25258488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25258489, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25258490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25258491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25258492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25258493, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25258494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25258495, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25258496, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25259037 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3335261, 'mtr_portfolio_id': 25259037, 'created_at': datetime.datetime(2025, 7, 24, 7, 46, 58), 'result': '0.07597098378790093', 'result_long': None, 'result_double': None}] Qualite : 0.07597098378790093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259037 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}" where mtr_portfolio_id = 25259037 and dashboard_run_id = 2011214 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999685, 0.07597098378790093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259037_24-07-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259052, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259057, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25259819 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3335439, 'mtr_portfolio_id': 25259819, 'created_at': datetime.datetime(2025, 7, 24, 7, 58, 58), 'result': '0.041552474773887065', 'result_long': None, 'result_double': None}] Qualite : 0.041552474773887065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25259819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25259819 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}" where mtr_portfolio_id = 25259819 and dashboard_run_id = 2011214 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25259819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12999686, 0.041552474773887065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25259819_24-07-2025_07_58_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25259825, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25259826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25259827, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25259828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25259829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25259830, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25259831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25259832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25259833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25259834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25259835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25259836, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25245820,25246316,25246632,25246996,25247263,25247788,25248336,25248727,25249105,25249748,25250094,25250494,25250838,25251371,25251822,25252281,25252752,25253150,25253504,25253932,25254261,25254804,25255177,25255497,25255885,25256351,25256792,25257228,25257684,25258386,25259037,25259819) result : ((1373433356,), (1373433609,), (1373433797,), (1373433798,), (1373433820,), (1373433832,), (1373433834,), (1373433840,), (1373434211,), (1373434234,), (1373434276,), (1373434320,), (1373434355,), (1373434386,), (1373434551,), (1373434562,), (1373434599,), (1373434624,), (1373434649,), (1373434685,), (1373434819,), (1373434822,), (1373434827,), (1373434828,), (1373434831,), (1373434835,), (1373435006,), (1373435350,), (1373435352,), (1373435354,), (1373435355,), (1373435357,), (1373435359,), (1373435531,), (1373435532,), (1373435553,), (1373435561,), (1373435563,), (1373435565,), (1373435583,), (1373435585,), (1373435590,), (1373435596,), (1373435607,), (1373435610,), (1373435637,), (1373435643,), (1373435649,), (1373435650,), (1373435652,), (1373435655,), (1373435658,), (1373435676,), (1373435677,), (1373435678,), (1373435679,), (1373435681,), (1373435683,), (1373435696,), (1373435701,), (1373435702,), (1373435703,), (1373435705,), (1373435708,), (1373435747,), (1373435751,), (1373435753,), (1373435754,), (1373435756,), (1373435760,), (1373435847,), (1373435875,), (1373435905,), (1373435926,), (1373435929,), (1373435931,), (1373436010,), (1373436011,), (1373436012,), (1373436014,), (1373436016,), (1373436019,), (1373436107,), (1373436113,), (1373436116,), (1373436117,), (1373436120,), (1373436123,), (1373436134,), (1373436137,), (1373436140,), (1373436142,), (1373436144,), (1373436146,), (1373436163,), (1373436168,), (1373436173,), (1373436174,), (1373436176,), (1373436179,), (1373436206,), (1373436222,), (1373436233,), (1373436234,), (1373436235,), (1373436237,), (1373436240,), (1373436243,), (1373436263,), (1373436265,), (1373436267,), (1373436268,), (1373436270,), (1373436272,), (1373436286,), (1373436289,), (1373436290,), (1373436293,), (1373436296,), (1373436297,), (1373436304,), (1373436305,), (1373436314,), (1373436317,), (1373436319,), (1373436321,), (1373436335,), (1373436350,), (1373436352,), (1373436359,), (1373436363,), (1373436366,), (1373436367,), (1373436377,), (1373436380,), (1373436382,), (1373436383,), (1373436385,), (1373436386,), (1373436404,), (1373436424,), (1373436425,), (1373436426,), (1373436427,), (1373436429,), (1373436431,), (1373436445,), (1373436627,), (1373436652,), (1373436674,), (1373436694,), (1373436695,), (1373436697,), (1373436774,), (1373436779,), (1373436780,), (1373436781,), (1373436783,), (1373436784,), (1373436797,), (1373436798,), (1373436799,), (1373436800,), (1373436802,), (1373436803,), (1373436823,), (1373436824,), (1373436825,), (1373436826,), (1373436827,), (1373436829,), (1373436843,), (1373436844,), (1373436845,), (1373436846,), (1373436848,), (1373436849,), (1373436856,), (1373436863,), (1373436869,), (1373436871,), (1373436874,), (1373436878,), (1373436886,), (1373436889,), (1373436892,), (1373436893,), (1373436895,), (1373436899,), (1373436909,), (1373436911,), (1373436915,), (1373436924,), (1373436933,), (1373436935,), (1373436945,), (1373436955,), (1373436958,), (1373436960,), (1373436962,), (1373436963,), (1373436964,), (1373436975,), (1373436977,), (1373436978,), (1373436979,), (1373436981,), (1373436983,), (1373437003,), (1373437006,), (1373437007,), (1373437008,), (1373437011,), (1373437013,), (1373437023,), (1373437602,), (1373437625,), (1373437059,), (1373437076,), (1373437078,), (1373437080,), (1373437082,), (1373437085,), (1373437089,), (1373437100,), (1373437103,), (1373437105,), (1373437107,), (1373437109,), (1373437112,), (1373437133,), (1373437139,), (1373437141,), (1373437143,), (1373437145,), (1373437147,), (1373437156,), (1373437161,), (1373437168,), (1373437170,), (1373437173,), (1373437176,), (1373437202,), (1373437204,), (1373437206,), (1373437208,), (1373437211,), (1373437213,), (1373437219,), (1373437233,), (1373437234,), (1373437235,), (1373437236,), (1373437237,), (1373437239,), (1373437257,), (1373437267,), (1373437270,), (1373437271,), (1373437273,), (1373437275,), (1373437283,), (1373437285,), (1373437297,), (1373437308,), (1373437311,), (1373437314,), (1373437323,), (1373437326,), (1373437329,), (1373437331,), (1373437334,), (1373437338,), (1373437342,), (1373437343,), (1373437345,), (1373437347,), (1373437348,), (1373437352,), (1373437369,), (1373437371,), (1373437373,), (1373437375,), (1373437377,), (1373437380,), (1373437551,), (1373437576,), (1373438191,), (1373439020,), (1373439077,), (1373439119,), (1373439140,), (1373439164,), (1373439197,), (1373439420,), (1373439440,), (1373439443,), (1373439444,), (1373439451,), (1373439477,), (1373439715,), (1373439726,), (1373439744,), (1373439747,), (1373439750,), (1373439762,), (1373439813,), (1373439816,), (1373439818,), (1373439820,), (1373439823,), (1373439824,), (1373439832,), (1373439834,), (1373439836,), (1373439837,), (1373439839,), (1373439840,), (1373439845,), (1373439847,), (1373439849,), (1373439850,), (1373439851,), (1373439853,), (1373439867,), (1373439869,), (1373439872,), (1373439874,), (1373439876,), (1373439878,), (1373439883,), (1373439886,), (1373439888,), (1373439890,), (1373439893,), (1373439895,), (1373439904,), (1373439920,), (1373439923,), (1373439926,), (1373439928,), (1373439930,), (1373439933,), (1373439941,), (1373439962,), (1373439967,), (1373439974,), (1373439977,), (1373439980,), (1373439983,), (1373439995,), (1373439997,), (1373440000,), (1373440002,), (1373440005,), (1373440008,), (1373440019,), (1373440026,), (1373440032,), (1373440034,), (1373440037,), (1373440040,), (1373440077,), (1373440078,), (1373440079,), (1373440080,), (1373440082,), (1373440085,), (1373440228,), (1373440247,), (1373440272,), (1373440277,), (1373440283,), (1373440286,), (1373440314,), (1373440326,), (1373440351,), (1373440373,), (1373440399,), (1373440416,), (1373440428,), (1373440431,), (1373440436,), (1373440437,), (1373440439,), (1373440440,), (1373440450,), (1373440452,), (1373440453,), (1373440455,), (1373440458,), (1373440461,), (1373440474,), (1373440476,), (1373440479,), (1373440482,), (1373440485,), (1373440488,), (1373440504,), (1373440518,), (1373440520,), (1373440522,), (1373440524,), (1373440526,), (1373440529,), (1373440540,), (1373440541,), (1373440544,), (1373440547,), (1373440550,), (1373440552,), (1373440568,), (1373440569,), (1373440570,), (1373440571,), (1373440573,), (1373440576,), (1373440587,), (1373440589,), (1373440592,), (1373440594,), (1373440597,), (1373440599,), (1373440618,), (1373440623,), (1373440624,), (1373440626,), (1373440627,), (1373440630,), (1373440639,), (1373440640,), (1373440642,), (1373440644,), (1373440645,), (1373440649,), (1373440660,), (1373440661,), (1373440662,), (1373440663,), (1373440664,), (1373440667,), (1373440677,), (1373440679,), (1373440681,), (1373440682,), (1373440684,), (1373440686,), (1373440708,), (1373440709,), (1373440711,), (1373440713,), (1373440716,), (1373440719,), (1373440747,), (1373440761,), (1373440763,), (1373440766,), (1373440771,), (1373440775,), (1373440777,), (1373440787,), (1373440789,), (1373440791,), (1373440794,), (1373440798,), (1373440802,), (1373440815,), (1373440817,), (1373440819,), (1373440820,), (1373440822,), (1373440823,), (1373440842,), (1373440845,), (1373440847,), (1373440849,), (1373440852,), (1373440854,), (1373440874,), (1373440876,), (1373440878,), (1373440881,), (1373440884,), (1373440887,), (1373440894,), (1373440896,), (1373440898,), (1373440900,), (1373440902,), (1373440906,), (1373440919,), (1373440943,), (1373440975,), (1373440977,), (1373440979,), (1373440981,), (1373440983,), (1373440986,), (1373441011,), (1373441029,), (1373441031,), (1373441035,), (1373441039,), (1373441042,), (1373441045,), (1373441051,), (1373441053,), (1373441055,), (1373441058,), (1373441061,), (1373441063,), (1373441069,), (1373441071,), (1373441072,), (1373441074,), (1373441076,), (1373441078,), (1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,), (1373441334,), (1373441336,), (1373441337,), (1373441338,), (1373441340,), (1373441341,), (1373441349,), (1373441352,), (1373441354,), (1373441356,), (1373441359,), (1373441363,), (1373441384,), (1373441386,), (1373441388,), (1373441390,), (1373441394,), (1373441398,), (1373441414,), (1373441416,), (1373441417,), (1373441418,), (1373441420,), (1373441423,), (1373441915,), (1373441971,), (1373442014,), (1373442045,), (1373442069,), (1373442093,), (1373442457,), (1373442489,), (1373442536,), (1373442563,), (1373442581,), (1373442582,), (1373442727,), (1373443239,), (1373443263,), (1373443288,), (1373443315,), (1373443339,), (1373443366,), (1373443539,), (1373443551,), (1373443582,), (1373443615,), (1373443643,), (1373443671,), (1373444092,), (1373444115,), (1373444159,), (1373444188,), (1373444213,), (1373444242,), (1373444491,), (1373444516,), (1373444528,), (1373444529,), (1373444536,), (1373444560,), (1373444614,), (1373444880,), (1373444908,), (1373444937,), (1373444962,), (1373444985,), (1373445010,), (1373445258,), (1373445283,), (1373445291,), (1373445293,), (1373445295,), (1373445299,), (1373445603,), (1373445654,), (1373445706,), (1373445730,), (1373445755,), (1373445783,), (1373446058,), (1373446060,), (1373446063,), (1373446069,), (1373446096,), (1373446121,), (1373446276,), (1373446302,), (1373446305,), (1373446307,), (1373446311,), (1373446315,), (1373446316,), (1373446325,), (1373446337,), (1373446340,), (1373446341,), (1373446343,), (1373446345,), (1373446356,), (1373446357,), (1373446359,), (1373446361,), (1373446364,), (1373446368,), (1373446378,), (1373446384,), (1373446391,), (1373446397,), (1373446399,), (1373446401,), (1373446415,), (1373446416,), (1373446418,), (1373446420,), (1373446422,), (1373446425,), (1373446445,), (1373446448,), (1373446449,), (1373446451,), (1373446453,), (1373446455,), (1373446464,), (1373446466,), (1373446468,), (1373446470,), (1373446473,), (1373446476,), (1373446483,), (1373446485,), (1373446487,), (1373446488,), (1373446491,), (1373446494,), (1373446502,), (1373446516,), (1373446517,), (1373446519,), (1373446521,), (1373446523,), (1373446527,), (1373446535,), (1373446555,), (1373446557,), (1373446560,), (1373446562,), (1373446563,), (1373446566,), (1373446577,), (1373446580,), (1373446582,), (1373446585,), (1373446587,), (1373446590,), (1373446597,), (1373446600,), (1373446602,), (1373446604,), (1373446607,), (1373446610,), (1373446618,), (1373446621,), (1373446624,), (1373446627,), (1373446630,), (1373446633,), (1373446641,), (1373446644,), (1373446646,), (1373446648,), (1373446651,), (1373446653,), (1373446729,), (1373446733,), (1373446734,), (1373446736,), (1373446737,), (1373446739,), (1373446870,), (1373446908,), (1373446914,), (1373446916,), (1373446918,), (1373446919,), (1373446923,), (1373446953,), (1373446967,), (1373446969,), (1373446971,), (1373446972,), (1373446974,), (1373446977,), (1373446995,), (1373446997,), (1373446998,), (1373447000,), (1373447002,), (1373447009,), (1373447045,), (1373447054,), (1373447065,), (1373447073,), (1373447082,), (1373447107,), (1373447119,), (1373447121,), (1373447123,), (1373447124,), (1373447126,), (1373447127,), (1373447141,), (1373447142,), (1373447143,), (1373447144,), (1373447146,), (1373447149,), (1373447156,), (1373447157,), (1373447159,), (1373447160,), (1373447163,), (1373447166,), (1373447174,), (1373447177,), (1373447180,), (1373447182,), (1373447186,), (1373447190,), (1373447207,), (1373447218,), (1373447226,), (1373447229,), (1373447233,), (1373447237,), (1373447298,), (1373447318,), (1373447323,), (1373447325,), (1373447326,), (1373447329,), (1373447332,), (1373447370,), (1373447372,), (1373447379,), (1373447406,), (1373447408,), (1373447410,), (1373447418,), (1373447429,), (1373447436,), (1373447438,), (1373447442,), (1373447445,), (1373447454,), (1373447457,), (1373447459,), (1373447476,), (1373447497,), (1373447502,), (1373447520,), (1373447523,), (1373447525,), (1373447527,), (1373447530,), (1373447533,), (1373447551,), (1373447558,), (1373447561,), (1373447563,), (1373447565,), (1373447568,), (1373447575,), (1373447578,), (1373447580,), (1373447581,), (1373447584,), (1373447587,), (1373447597,), (1373447609,), (1373447613,), (1373447616,), (1373447618,), (1373447623,), (1373447702,), (1373447710,), (1373447716,), (1373447720,), (1373447722,), (1373447725,), (1373447750,), (1373447752,), (1373447753,), (1373447754,), (1373447756,), (1373447759,), (1373447783,), (1373447820,), (1373447821,), (1373447822,), (1373447861,), (1373447864,), (1373447866,), (1373447875,), (1373447884,), (1373447889,), (1373447891,), (1373447893,), (1373447896,), (1373447906,), (1373447907,), (1373447909,), (1373447911,), (1373447914,), (1373447916,), (1373447930,), (1373447931,), (1373447932,), (1373447933,), (1373447935,), (1373447937,), (1373447951,), (1373447952,), (1373447953,), (1373447954,), (1373447955,), (1373447957,), (1373448000,), (1373448025,), (1373448050,), (1373448076,), (1373448102,), (1373448126,), (1373449103,), (1373449180,), (1373449251,), (1373449312,), (1373449345,), (1373449387,), (1373449748,), (1373449978,), (1373449988,), (1373449990,), (1373449999,), (1373450024,), (1373450037,), (1373450050,), (1373450073,), (1373450078,), (1373450079,), (1373450081,), (1373450083,), (1373450085,), (1373450096,), (1373450117,), (1373450122,), (1373450125,), (1373450127,), (1373450130,), (1373450133,), (1373450150,), (1373450157,), (1373450159,), (1373450161,), (1373450163,), (1373450166,), (1373450176,), (1373450184,), (1373450187,), (1373450188,), (1373450189,), (1373450191,), (1373450201,), (1373450204,), (1373450206,), (1373450208,), (1373450210,), (1373450212,), (1373450222,), (1373450232,), (1373450235,), (1373450238,), (1373450240,), (1373450243,), (1373450259,), (1373450313,), (1373450331,), (1373450353,), (1373450405,), (1373450408,), (1373450411,), (1373450465,), (1373450486,), (1373450489,), (1373450490,), (1373450493,), (1373450496,), (1373450501,), (1373450503,), (1373450505,), (1373450507,), (1373450509,), (1373450510,), (1373450528,), (1373450530,), (1373450532,), (1373450533,), (1373450535,), (1373450539,), (1373450558,), (1373450561,), (1373450564,), (1373450565,), (1373450567,), (1373450569,), (1373450586,), (1373450589,), (1373450590,), (1373450592,), (1373450593,), (1373450594,), (1373450604,), (1373450605,), (1373450607,), (1373450609,), (1373450611,), (1373450612,), (1373450624,), (1373450626,), (1373450628,), (1373450629,), (1373450632,), (1373450634,), (1373450646,), (1373450648,), (1373450650,), (1373450651,), (1373450654,), (1373450657,), (1373450677,), (1373450678,), (1373450685,), (1373450686,), (1373450688,), (1373450690,), (1373450781,), (1373450790,), (1373450791,), (1373450792,), (1373450793,), (1373450795,), (1373450796,), (1373450811,), (1373450818,), (1373450821,), (1373450822,), (1373450824,), (1373450827,), (1373450838,), (1373450842,), (1373450846,), (1373450848,), (1373450849,), (1373450853,), (1373450904,), (1373450910,), (1373450913,), (1373450914,), (1373450917,), (1373450920,), (1373450928,), (1373450931,), (1373450932,), (1373451003,), (1373451006,), (1373451009,), (1373451099,), (1373451103,), (1373451104,), (1373451105,), (1373451121,), (1373451136,), (1373451174,), (1373451181,), (1373451185,), (1373451213,), (1373451222,), (1373451226,), (1373451252,), (1373451275,), (1373451276,), (1373451277,), (1373451278,), (1373451280,), (1373451282,), (1373451304,), (1373451335,), (1373451369,), (1373451370,), (1373451371,), (1373451373,), (1373451376,), (1373451379,), (1373451397,), (1373451398,), (1373451407,), (1373451409,), (1373451411,), (1373451414,), (1373451446,), (1373451448,), (1373451449,), (1373451460,), (1373451467,), (1373451469,), (1373451507,), (1373451513,), (1373451527,), (1373451531,), (1373451534,), (1373451537,), (1373451601,), (1373451604,), (1373451607,), (1373451609,), (1373451612,), (1373451616,), (1373451625,), (1373451627,), (1373451629,), (1373451630,), (1373451633,), (1373451635,), (1373451644,), (1373451651,), (1373451654,), (1373451656,), (1373451658,), (1373451659,), (1373451673,), (1373451692,), (1373451698,), (1373451700,), (1373451701,), (1373451704,), (1373451706,), (1373451715,), (1373451716,), (1373451718,), (1373451721,), (1373451724,), (1373451727,), (1373451737,), (1373451744,), (1373451750,), (1373451752,), (1373451769,), (1373451772,), (1373451819,), (1373451821,), (1373451822,), (1373451823,), (1373451826,), (1373451830,), (1373451845,), (1373451852,), (1373451854,), (1373451857,), (1373451859,), (1373451862,), (1373451870,), (1373451872,), (1373451874,), (1373451876,), (1373451879,), (1373451881,), (1373451898,), (1373451900,), (1373451901,), (1373451902,), (1373451904,), (1373451906,), (1373451910,), (1373451918,), (1373451921,), (1373451922,), (1373451925,), (1373451930,), (1373451942,), (1373451946,), (1373451949,), (1373451952,), (1373451954,), (1373451955,), (1373451961,), (1373451977,), (1373451983,), (1373451984,), (1373451985,), (1373451987,), (1373451991,), (1373452016,), (1373452019,), (1373452025,), (1373452027,), (1373452029,), (1373452032,), (1373452046,), (1373452054,), (1373452059,), (1373452061,), (1373452065,), (1373452069,), (1373452077,), (1373452078,), (1373452113,), (1373452123,), (1373452125,), (1373452127,), (1373452161,), (1373452163,), (1373452165,), (1373452167,), (1373452169,), (1373452171,), (1373452265,), (1373452266,), (1373452269,), (1373452271,), (1373452273,), (1373452277,), (1373452289,), (1373452292,), (1373452295,), (1373452297,), (1373452300,), (1373452306,), (1373453132,), (1373453137,), (1373453155,), (1373453181,), (1373453198,), (1373453213,), (1373453281,), (1373453310,), (1373453312,), (1373453314,), (1373453316,), (1373453318,), (1373453321,), (1373453338,), (1373453355,), (1373453359,), (1373453360,), (1373453361,), (1373453363,), (1373453366,), (1373453380,), (1373453383,), (1373453386,), (1373453388,), (1373453390,), (1373453392,), (1373453404,), (1373453408,), (1373453411,), (1373453422,), (1373453429,), (1373453437,), (1373453457,), (1373453460,), (1373453463,), (1373453466,), (1373453469,), (1373453472,), (1373453481,), (1373453499,), (1373453503,), (1373453504,), (1373453507,), (1373453510,), (1373453524,), (1373453536,), (1373453543,), (1373453544,), (1373453546,), (1373453548,), (1373453569,), (1373453586,), (1373453590,), (1373453594,), (1373453597,), (1373453599,), (1373453602,), (1373453623,), (1373453637,), (1373453640,), (1373453642,), (1373453643,), (1373453645,), (1373453647,), (1373453663,), (1373453667,), (1373453672,), (1373453673,), (1373453674,), (1373453677,), (1373453693,), (1373453699,), (1373453706,), (1373453708,), (1373453712,), (1373453716,), (1373453732,), (1373453735,), (1373453737,), (1373453739,), (1373453741,), (1373453744,), (1373453761,), (1373453765,), (1373453768,), (1373453769,), (1373453771,), (1373453773,), (1373453787,), (1373453790,), (1373453792,), (1373453794,), (1373453796,), (1373453799,), (1373453813,), (1373453815,), (1373453816,), (1373453817,), (1373453819,), (1373453820,), (1373453842,), (1373453852,), (1373453855,), (1373453857,), (1373453860,), (1373453862,), (1373453874,), (1373453890,), (1373453898,), (1373453906,), (1373453908,), (1373453910,), (1373453912,), (1373453927,), (1373453931,), (1373453934,), (1373453936,), (1373453938,), (1373453941,), (1373453949,), (1373453959,), (1373453964,), (1373453966,), (1373453968,), (1373453971,), (1373453991,), (1373453998,), (1373454010,), (1373454012,), (1373454015,), (1373454018,), (1373454041,), (1373454049,), (1373454054,), (1373454058,), (1373454062,), (1373454065,), (1373454091,), (1373454116,), (1373454118,), (1373454120,), (1373454121,), (1373454123,), (1373454125,), (1373454146,), (1373454149,), (1373454151,), (1373454153,), (1373454154,), (1373454156,), (1373454200,), (1373454251,), (1373454253,), (1373454256,), (1373454258,), (1373454261,), (1373454264,), (1373454280,), (1373454302,), (1373454309,), (1373454312,), (1373454314,), (1373454318,), (1373454322,), (1373454334,), (1373454337,), (1373454339,), (1373454340,), (1373454343,), (1373454346,), (1373454359,), (1373454366,), (1373454370,), (1373454373,), (1373454376,), (1373454379,), (1373454397,), (1373454401,), (1373454404,), (1373454407,), (1373454409,), (1373454411,), (1373454424,), (1373454427,), (1373454430,), (1373454432,), (1373454435,), (1373454438,), (1373454449,), (1373454455,), (1373454458,), (1373454459,), (1373454463,), (1373454467,), (1373454478,), (1373454482,), (1373454485,), (1373454487,), (1373454491,), (1373454495,), (1373454509,), (1373454514,), (1373454518,), (1373454521,), (1373454526,), (1373454531,), (1373454542,), (1373454546,), (1373454549,), (1373454551,), (1373454555,), (1373454559,), (1373454574,), (1373454591,), (1373454596,), (1373454598,), (1373454600,), (1373454601,), (1373454603,), (1373454617,), (1373454620,), (1373454621,), (1373454622,), (1373454624,), (1373454626,), (1373454642,), (1373454646,), (1373454656,), (1373454662,), (1373454664,), (1373454666,), (1373454678,), (1373454682,), (1373454684,), (1373454685,), (1373454688,), (1373454690,), (1373454699,), (1373454710,), (1373454716,), (1373454718,), (1373454720,), (1373454722,), (1373454742,), (1373454743,), (1373454745,), (1373454746,), (1373454747,), (1373454749,), (1373454762,), (1373454766,), (1373454770,), (1373454772,), (1373454776,), (1373454779,), (1373454792,), (1373454801,), (1373454809,), (1373454811,), (1373454812,), (1373454814,), (1373454831,), (1373454833,), (1373454835,), (1373454836,), (1373454839,), (1373454841,), (1373454872,), (1373454902,), (1373454910,), (1373454918,), (1373454919,), (1373454921,), (1373454923,), (1373454939,), (1373454946,), (1373454949,), (1373454952,), (1373454955,), (1373454958,), (1373454972,), (1373454973,), (1373454974,), (1373454975,), (1373454976,), (1373454978,), (1373454993,), (1373454994,), (1373454995,), (1373454996,), (1373454998,), (1373454999,), (1373455013,), (1373455021,), (1373455027,), (1373455028,), (1373455030,), (1373455032,), (1373455044,), (1373455045,), (1373455052,), (1373455060,), (1373455062,), (1373455064,), (1373455082,), (1373455087,), (1373455090,), (1373455093,), (1373455096,), (1373455103,), (1373455368,), (1373455616,), (1373455632,), (1373455634,), (1373455658,), (1373455660,), (1373455662,), (1373455677,), (1373455695,), (1373455719,), (1373455743,), (1373455771,), (1373455795,), (1373456026,), (1373456029,), (1373456032,), (1373456035,), (1373456037,), (1373456055,), (1373456610,), (1373456672,), (1373456742,), (1373456815,), (1373456866,), (1373456868,), (1373457031,), (1373457042,), (1373457102,), (1373457104,), (1373457133,), (1373457136,), (1373457149,), (1373457150,), (1373457153,), (1373457156,), (1373457159,), (1373457161,), (1373457177,), (1373457188,), (1373457189,), (1373457191,), (1373457192,), (1373457193,), (1373457213,), (1373457218,), (1373457220,), (1373457223,), (1373457225,), (1373457228,), (1373457247,), (1373457252,), (1373457254,), (1373457257,), (1373457260,), (1373457262,), (1373457273,), (1373457293,), (1373457299,), (1373457307,), (1373457314,), (1373457316,), (1373457319,), (1373457341,), (1373457347,), (1373457350,), (1373457352,), (1373457353,), (1373457355,), (1373457374,), (1373457377,), (1373457379,), (1373457381,), (1373457382,), (1373457383,), (1373457397,), (1373457403,), (1373457404,), (1373457406,), (1373457408,), (1373457410,), (1373457420,), (1373457427,), (1373457433,), (1373457440,), (1373457442,), (1373457444,), (1373457462,), (1373457483,), (1373457486,), (1373457488,), (1373457489,), (1373457491,), (1373457493,), (1373457507,), (1373457526,), (1373457528,), (1373457530,), (1373457531,), (1373457533,), (1373457535,), (1373457562,), (1373457577,), (1373457579,), (1373457580,), (1373457582,), (1373457584,), (1373457585,), (1373457602,), (1373457604,), (1373457605,), (1373457607,), (1373457609,), (1373457611,), (1373457619,), (1373457627,), (1373457634,), (1373457638,), (1373457641,), (1373457644,), (1373457656,), (1373457658,), (1373457659,), (1373457660,), (1373457662,), (1373457664,), (1373457686,), (1373457690,), (1373457692,), (1373457694,), (1373457696,), (1373457698,), (1373457708,), (1373457733,), (1373457735,), (1373457738,), (1373457740,), (1373457743,), (1373457744,), (1373457756,), (1373457765,), (1373457773,), (1373457776,), (1373457778,), (1373457780,), (1373457788,), (1373457792,), (1373457795,), (1373457798,), (1373457801,), (1373457804,), (1373457821,), (1373457823,), (1373457824,), (1373457826,), (1373457828,), (1373457829,), (1373457849,), (1373457852,), (1373457854,), (1373457855,), (1373457857,), (1373457859,), (1373457866,), (1373457873,), (1373457877,), (1373457881,), (1373457884,), (1373457887,), (1373457893,), (1373457897,), (1373457901,), (1373457903,), (1373457904,), (1373457906,), (1373457916,), (1373457917,), (1373457919,), (1373457920,), (1373457922,), (1373457924,), (1373457944,), (1373457964,), (1373457972,), (1373457975,), (1373457977,), (1373457979,), (1373457981,), (1373457992,), (1373457995,), (1373457996,), (1373457999,), (1373458001,), (1373458003,), (1373458014,), (1373458017,), (1373458019,), (1373458022,), (1373458024,), (1373458026,), (1373458036,), (1373458048,), (1373458057,), (1373458058,), (1373458060,), (1373458063,), (1373458075,), (1373458077,), (1373458079,), (1373458080,), (1373458082,), (1373458084,), (1373458099,), (1373458104,), (1373458106,), (1373458107,), (1373458109,), (1373458111,), (1373458116,), (1373458117,), (1373458119,), (1373458121,), (1373458122,), (1373458124,), (1373458128,), (1373458136,), (1373458143,), (1373458144,), (1373458146,), (1373458148,), (1373458160,), (1373458164,), (1373458166,), (1373458167,), (1373458170,), (1373458173,), (1373458190,), (1373458199,), (1373458202,), (1373458204,), (1373458206,), (1373458208,), (1373458211,), (1373458213,), (1373458215,), (1373458216,), (1373458219,), (1373458222,), (1373458228,), (1373458230,), (1373458232,), (1373458233,), (1373458236,), (1373458239,), (1373458244,), (1373458249,), (1373458255,), (1373458256,), (1373458259,), (1373458262,), (1373458280,), (1373458297,), (1373458305,), (1373458308,), (1373458310,), (1373458311,), (1373458314,), (1373458330,), (1373458338,), (1373458341,), (1373458343,), (1373458344,), (1373458347,), (1373458360,), (1373458362,), (1373458364,), (1373458365,), (1373458367,), (1373458368,), (1373458395,), (1373458399,), (1373458400,), (1373458401,), (1373458403,), (1373458405,), (1373458419,), (1373458420,), (1373458422,), (1373458424,), (1373458427,), (1373458430,), (1373458446,), (1373458448,), (1373458450,), (1373458451,), (1373458454,), (1373458456,), (1373458477,), (1373458700,), (1373458743,), (1373458787,), (1373458819,), (1373458854,), (1373458889,), (1373459578,), (1373459639,), (1373459653,), (1373459659,), (1373459664,), (1373459665,), (1373459667,), (1373459669,), (1373459678,), (1373459684,), (1373459686,), (1373459688,), (1373459691,), (1373459694,), (1373459711,), (1373459716,), (1373459721,), (1373459722,), (1373459723,), (1373459724,), (1373459739,), (1373459740,), (1373459741,), (1373459742,), (1373459744,), (1373459746,), (1373459768,), (1373459776,), (1373459779,), (1373459782,), (1373459783,), (1373459785,), (1373459805,), (1373459809,), (1373459811,), (1373459813,), (1373459815,), (1373459817,), (1373459829,), (1373459835,), (1373459842,), (1373459843,), (1373459845,), (1373459847,), (1373459860,), (1373459863,), (1373459867,), (1373459869,), (1373459871,), (1373459873,), (1373459882,), (1373459890,), (1373459902,), (1373459905,), (1373459909,), (1373459912,), (1373459917,), (1373459925,), (1373459930,), (1373459932,), (1373459934,), (1373459937,), (1373459953,), (1373459955,), (1373459957,), (1373459960,), (1373459965,), (1373459969,), (1373459979,), (1373459981,), (1373459983,), (1373459985,), (1373459988,), (1373459989,), (1373460012,), (1373460014,), (1373460016,), (1373460017,), (1373460019,), (1373460021,), (1373460036,), (1373460037,), (1373460039,), (1373460042,), (1373460043,), (1373460045,), (1373460054,), (1373460057,), (1373460068,), (1373460074,), (1373460076,), (1373460078,), (1373460092,), (1373460094,), (1373460095,), (1373460097,), (1373460099,), (1373460100,), (1373460120,), (1373460127,), (1373460131,), (1373460133,), (1373460135,), (1373460136,), (1373460149,), (1373460157,), (1373460161,), (1373460163,), (1373460167,), (1373460170,), (1373460178,), (1373460185,), (1373460190,), (1373460192,), (1373460196,), (1373460201,), (1373460210,), (1373460213,), (1373460215,), (1373460216,), (1373460219,), (1373460222,), (1373460237,), (1373460240,), (1373460242,), (1373460244,), (1373460245,), (1373460247,), (1373460264,), (1373460267,), (1373460268,), (1373460269,), (1373460271,), (1373460273,), (1373460286,), (1373460293,), (1373460298,), (1373460301,), (1373460303,), (1373460306,), (1373460323,), (1373460325,), (1373460326,), (1373460328,), (1373460330,), (1373460333,), (1373460356,), (1373460363,), (1373460366,), (1373460368,), (1373460371,), (1373460374,), (1373460385,), (1373460394,), (1373460399,), (1373460401,), (1373460403,), (1373460405,), (1373460426,), (1373460429,), (1373460430,), (1373460432,), (1373460435,), (1373460439,), (1373460455,), (1373460458,), (1373460460,), (1373460461,), (1373460464,), (1373460467,), (1373460485,), (1373460531,), (1373460533,), (1373460534,), (1373460535,), (1373460537,), (1373460539,), (1373460567,), (1373460576,), (1373460577,), (1373460579,), (1373460580,), (1373460582,), (1373460602,), (1373460605,), (1373460608,), (1373460612,), (1373460615,), (1373460618,), (1373460634,), (1373460638,), (1373460642,), (1373460644,), (1373460646,), (1373460648,), (1373460679,), (1373460683,), (1373460686,), (1373460689,), (1373460691,), (1373460693,), (1373460711,), (1373460720,), (1373460725,), (1373460727,), (1373460731,), (1373460736,), (1373460752,), (1373460758,), (1373460764,), (1373460766,), (1373460769,), (1373460770,), (1373460788,), (1373460790,), (1373460793,), (1373460796,), (1373460800,), (1373460804,), (1373460818,), (1373460827,), (1373460832,), (1373460834,), (1373460835,), (1373460838,), (1373460858,), (1373460861,), (1373460863,), (1373460865,), (1373460866,), (1373460869,), (1373460879,), (1373460881,), (1373460882,), (1373460884,), (1373460885,), (1373460888,), (1373460894,), (1373460902,), (1373460905,), (1373460907,), (1373460908,), (1373460911,), (1373460930,), (1373460934,), (1373460937,), (1373460938,), (1373460941,), (1373460944,), (1373460956,), (1373460964,), (1373460973,), (1373460974,), (1373460977,), (1373460979,), (1373460990,), (1373460991,), (1373460993,), (1373460996,), (1373460999,), (1373461000,), (1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,), (1373461247,), (1373461249,), (1373461256,), (1373461261,), (1373461262,), (1373461265,), (1373461280,), (1373461283,), (1373461284,), (1373461286,), (1373461287,), (1373461289,), (1373461308,), (1373461311,), (1373461314,), (1373461315,), (1373461318,), (1373461321,), (1373461333,), (1373461335,), (1373461338,), (1373461339,), (1373461342,), (1373461346,), (1373461804,), (1373461822,), (1373461828,), (1373461830,), (1373461834,), (1373461838,), (1373462055,), (1373462392,), (1373462419,), (1373462443,), (1373462467,), (1373462483,), (1373462484,), (1373462741,), (1373462787,), (1373462842,), (1373462890,), (1373462936,), (1373462984,), (1373463364,), (1373463393,), (1373463416,), (1373463449,), (1373463477,), (1373463505,), (1373463699,), (1373463702,), (1373463704,), (1373463711,), (1373463718,), (1373463723,), (1373463900,), (1373463914,), (1373463916,), (1373463918,), (1373463940,), (1373463964,), (1373464012,), (1373464014,), (1373464016,), (1373464018,), (1373464020,), (1373464023,), (1373464038,), (1373464045,), (1373464057,), (1373464062,), (1373464065,), (1373464067,), (1373464147,), (1373464148,), (1373464150,), (1373464152,), (1373464153,), (1373464156,), (1373464313,), (1373464315,), (1373464316,), (1373464317,), (1373464319,), (1373464323,), (1373464332,), (1373464337,), (1373464341,), (1373464343,), (1373464346,), (1373464347,), (1373464457,), (1373464484,), (1373464496,), (1373464499,), (1373464501,), (1373464505,), (1373464603,), (1373464611,), (1373464620,), (1373464623,), (1373464625,), (1373464628,), (1373464670,), (1373464687,), (1373464695,), (1373464704,), (1373464707,), (1373464710,), (1373464739,), (1373464747,), (1373464753,), (1373464757,), (1373464758,), (1373464762,), (1373465015,), (1373465044,), (1373465067,), (1373465095,), (1373465120,), (1373465151,), (1373465179,), (1373465182,), (1373465185,), (1373465186,), (1373465188,), (1373465195,), (1373465440,), (1373465469,), (1373465476,), (1373465523,), (1373465587,), (1373465633,), (1373465752,), (1373465853,), (1373465878,), (1373465899,), (1373465901,), (1373465905,), (1373465909,), (1373465934,), (1373466003,), (1373466011,), (1373466022,), (1373466026,), (1373466040,), (1373466052,), (1373466103,), (1373466106,), (1373466111,), (1373466114,), (1373466117,), (1373466123,), (1373466378,), (1373466404,), (1373466416,), (1373466418,), (1373466425,), (1373466430,), (1373466513,), (1373466517,), (1373466527,), (1373466530,), (1373466541,), (1373466546,), (1373466604,), (1373466605,), (1373466608,), (1373466610,), (1373466612,), (1373466615,), (1373466718,), (1373466740,), (1373466767,), (1373466798,), (1373466821,), (1373466830,), (1373466883,), (1373466884,), (1373466891,), (1373466892,), (1373466894,), (1373466898,), (1373466933,), (1373466935,), (1373466936,), (1373466937,), (1373466938,), (1373466940,), (1373466956,), (1373466959,), (1373466966,), (1373466970,), (1373466971,), (1373466973,), (1373466996,), (1373466997,), (1373467001,), (1373467005,), (1373467016,), (1373467020,), (1373467039,), (1373467048,), (1373467049,), (1373467050,), (1373467051,), (1373467055,), (1373467108,), (1373467115,), (1373467123,), (1373467129,), (1373467141,), (1373467142,), (1373467163,), (1373467165,), (1373467167,), (1373467192,), (1373467217,), (1373467241,), (1373467396,), (1373467427,), (1373467453,), (1373467479,), (1373467520,), (1373467569,), (1373467770,), (1373467783,), (1373467796,), (1373467798,), (1373467806,), (1373467819,), (1373467845,), (1373467847,), (1373467849,), (1373467858,), (1373467864,), (1373467866,), (1373467883,), (1373467886,), (1373467890,), (1373467914,), (1373467920,), (1373467923,), (1373467945,), (1373467992,), (1373467998,), (1373468002,), (1373468003,), (1373468004,), (1373468007,), (1373468074,), (1373468102,), (1373468131,), (1373468142,), (1373468144,), (1373468146,), (1373468161,), (1373468182,), (1373468221,), (1373468240,), (1373468248,), (1373468304,), (1373468410,), (1373468415,), (1373468416,), (1373468418,), (1373468420,), (1373468422,), (1373468688,), (1373468691,), (1373468709,), (1373468711,), (1373468718,), (1373468737,), (1373468794,), (1373468797,), (1373468806,), (1373468810,), (1373468827,), (1373468852,), (1373468926,), (1373468931,), (1373468932,), (1373468934,), (1373468937,), (1373468940,), (1373468980,), (1373468985,), (1373468991,), (1373468994,), (1373468996,), (1373468997,), (1373469063,), (1373469066,), (1373469068,), (1373469070,), (1373469073,), (1373469076,), (1373469086,), (1373469090,), (1373469093,), (1373469095,), (1373469097,), (1373469099,), (1373469117,), (1373469175,), (1373469272,), (1373469274,), (1373469276,), (1373469286,), (1373469304,), (1373469333,), (1373469768,), (1373469804,), (1373469839,), (1373469897,), (1373469926,), (1373469953,), (1373470099,), (1373470102,), (1373470108,), (1373470116,), (1373470143,), (1373470177,), (1373470355,), (1373470371,), (1373470382,), (1373470385,), (1373470405,), (1373470432,), (1373470816,), (1373470829,), (1373470832,), (1373470837,), (1373470844,), (1373470855,), (1373470974,), (1373470977,), (1373470980,), (1373470981,), (1373471006,), (1373471054,), (1373471275,), (1373471301,), (1373471325,), (1373471351,), (1373471374,), (1373471421,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24072025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25259819]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] map_info['map_portfolio_photo'] : {25259819: [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974, 1373470855, 1373470844, 1373470837, 1373470832, 1373470829, 1373470816, 1373470432, 1373470405, 1373470385, 1373470382, 1373470371, 1373470355, 1373470177, 1373470143, 1373470116, 1373470108, 1373470102, 1373470099, 1373469953, 1373469926, 1373469897, 1373469839, 1373469804, 1373469768, 1373469333, 1373469304, 1373469286, 1373469276, 1373469274, 1373469272, 1373469175, 1373469117, 1373469099, 1373469097, 1373469095, 1373469093, 1373469090, 1373469086, 1373469076, 1373469073, 1373469070, 1373469068, 1373469066, 1373469063, 1373468997, 1373468996, 1373468994, 1373468991, 1373468985, 1373468980, 1373468940, 1373468937, 1373468934, 1373468932, 1373468931, 1373468926]} final : True mtd_id 4302 list_pids : [1373471421, 1373471374, 1373471351, 1373471325, 1373471301, 1373471275, 1373471054, 1373471006, 1373470981, 1373470980, 1373470977, 1373470974] Looping around the photos to save general results len do output : 1 /25259819Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439') ('4302', None, None, None, None, None, None, None, '3335439') ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25259819', 'None', None, None, None, None, '3335439'), ('4302', '25259819', '1373471421', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471374', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471351', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471325', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471301', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471275', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471054', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373471006', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470981', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470980', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470977', None, None, None, None, None, '3335439'), ('4302', '25259819', '1373470974', None, None, None, None, None, '3335439')] time used for this insertion : 0.018662691116333008 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4161744117736816 time spend to save output : 0.018887996673583984 total time spend for step 5 : 2.4350624084472656 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (3335439) 2.25user 2.61system 0:11.55elapsed 42%CPU (0avgtext+0avgdata 161028maxresident)k 368inputs+13520outputs (4major+75137minor)pagefaults 0swaps