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 : 392689 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 (2663923) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2663923) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365400 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2663923'] with mtr_portfolio_ids : ['21365400'] and first list_photo_ids : [] new path : /proc/392689/ Name: python3 Umask: 0002 State: R (running) Tgid: 392689 Ngid: 0 Pid: 392689 PPid: 392688 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 392689 NSpid: 392689 NSpgid: 389808 NSsid: 389808 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98988 kB VmRSS: 98988 kB RssAnon: 59760 kB RssFile: 39228 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 119 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '392689', 'Ngid': '0', 'Pid': '392689', 'PPid': '392688', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '392689', 'NSpid': '392689', 'NSpgid': '389808', 'NSsid': '389808', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98988 kB', 'VmRSS': '98988 kB', 'RssAnon': '59760 kB', 'RssFile': '39228 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '119', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '392689', '1106844', '0', '1106844', '865592', '98988', b'', 'marlene', '2663923') 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 (21365400) 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 (2663923 ) ) 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 (21365400) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343565560, 'portfolio_id': 21365400}, {'photo_id': 1343565475, 'portfolio_id': 21365400}, {'photo_id': 1343565447, 'portfolio_id': 21365400}, {'photo_id': 1343565320, 'portfolio_id': 21365400}, {'photo_id': 1343565280, 'portfolio_id': 21365400}, {'photo_id': 1343565263, 'portfolio_id': 21365400}, {'photo_id': 1343565223, 'portfolio_id': 21365400}, {'photo_id': 1343565182, 'portfolio_id': 21365400}, {'photo_id': 1343565143, 'portfolio_id': 21365400}, {'photo_id': 1343565129, 'portfolio_id': 21365400}, {'photo_id': 1343565093, 'portfolio_id': 21365400}, {'photo_id': 1343565038, 'portfolio_id': 21365400}, {'photo_id': 1343565034, 'portfolio_id': 21365400}, {'photo_id': 1343565033, 'portfolio_id': 21365400}, {'photo_id': 1343565031, 'portfolio_id': 21365400}, {'photo_id': 1343565026, 'portfolio_id': 21365400}, {'photo_id': 1343565025, 'portfolio_id': 21365400}, {'photo_id': 1343565018, 'portfolio_id': 21365400}, {'photo_id': 1343565014, 'portfolio_id': 21365400}, {'photo_id': 1343565005, 'portfolio_id': 21365400}, {'photo_id': 1343564999, 'portfolio_id': 21365400}, {'photo_id': 1343564990, 'portfolio_id': 21365400}, {'photo_id': 1343564984, 'portfolio_id': 21365400}, {'photo_id': 1343564497, 'portfolio_id': 21365400}, {'photo_id': 1343564485, 'portfolio_id': 21365400}, {'photo_id': 1343564478, 'portfolio_id': 21365400}, {'photo_id': 1343564475, 'portfolio_id': 21365400}, {'photo_id': 1343564472, 'portfolio_id': 21365400}, {'photo_id': 1343564470, 'portfolio_id': 21365400}, {'photo_id': 1343564452, 'portfolio_id': 21365400}, {'photo_id': 1343564447, 'portfolio_id': 21365400}, {'photo_id': 1343564438, 'portfolio_id': 21365400}, {'photo_id': 1343564437, 'portfolio_id': 21365400}, {'photo_id': 1343564433, 'portfolio_id': 21365400}, {'photo_id': 1343564432, 'portfolio_id': 21365400}, {'photo_id': 1343564417, 'portfolio_id': 21365400}, {'photo_id': 1343564409, 'portfolio_id': 21365400}, {'photo_id': 1343564408, 'portfolio_id': 21365400}, {'photo_id': 1343564403, 'portfolio_id': 21365400}, {'photo_id': 1343564402, 'portfolio_id': 21365400}, {'photo_id': 1343564401, 'portfolio_id': 21365400}, {'photo_id': 1343564392, 'portfolio_id': 21365400}, {'photo_id': 1343564389, 'portfolio_id': 21365400}, {'photo_id': 1343564380, 'portfolio_id': 21365400}, {'photo_id': 1343564377, 'portfolio_id': 21365400}, {'photo_id': 1343564376, 'portfolio_id': 21365400}, {'photo_id': 1343564375, 'portfolio_id': 21365400}, {'photo_id': 1343564374, 'portfolio_id': 21365400}, {'photo_id': 1343564369, 'portfolio_id': 21365400}, {'photo_id': 1343564368, 'portfolio_id': 21365400}, {'photo_id': 1343564366, 'portfolio_id': 21365400}, {'photo_id': 1343564362, 'portfolio_id': 21365400}, {'photo_id': 1343564357, 'portfolio_id': 21365400}, {'photo_id': 1343564353, 'portfolio_id': 21365400}, {'photo_id': 1343564344, 'portfolio_id': 21365400}, {'photo_id': 1343564341, 'portfolio_id': 21365400}, {'photo_id': 1343564340, 'portfolio_id': 21365400}, {'photo_id': 1343564339, 'portfolio_id': 21365400}, {'photo_id': 1343564338, 'portfolio_id': 21365400}, {'photo_id': 1343564334, 'portfolio_id': 21365400}, {'photo_id': 1343564332, 'portfolio_id': 21365400}, {'photo_id': 1343564329, 'portfolio_id': 21365400}, {'photo_id': 1343564326, 'portfolio_id': 21365400}, {'photo_id': 1343564319, 'portfolio_id': 21365400}, {'photo_id': 1343564318, 'portfolio_id': 21365400}, {'photo_id': 1343564315, 'portfolio_id': 21365400}, {'photo_id': 1343564314, 'portfolio_id': 21365400}, {'photo_id': 1343564305, 'portfolio_id': 21365400}, {'photo_id': 1343564304, 'portfolio_id': 21365400}, {'photo_id': 1343564302, 'portfolio_id': 21365400}, {'photo_id': 1343564300, 'portfolio_id': 21365400}, {'photo_id': 1343564294, 'portfolio_id': 21365400}, {'photo_id': 1343564293, 'portfolio_id': 21365400}, {'photo_id': 1343564291, 'portfolio_id': 21365400}, {'photo_id': 1343564288, 'portfolio_id': 21365400}, {'photo_id': 1343564287, 'portfolio_id': 21365400}, {'photo_id': 1343564281, 'portfolio_id': 21365400}, {'photo_id': 1343564277, 'portfolio_id': 21365400}, {'photo_id': 1343564274, 'portfolio_id': 21365400}, {'photo_id': 1343564261, 'portfolio_id': 21365400}, {'photo_id': 1343564259, 'portfolio_id': 21365400}, {'photo_id': 1343564258, 'portfolio_id': 21365400}, {'photo_id': 1343564255, 'portfolio_id': 21365400}, {'photo_id': 1343564253, 'portfolio_id': 21365400}, {'photo_id': 1343564252, 'portfolio_id': 21365400}, {'photo_id': 1343564246, 'portfolio_id': 21365400}, {'photo_id': 1343564243, 'portfolio_id': 21365400}, {'photo_id': 1343564241, 'portfolio_id': 21365400}, {'photo_id': 1343564239, 'portfolio_id': 21365400}, {'photo_id': 1343564236, 'portfolio_id': 21365400}, {'photo_id': 1343564231, 'portfolio_id': 21365400}, {'photo_id': 1343564229, 'portfolio_id': 21365400}, {'photo_id': 1343564224, 'portfolio_id': 21365400}, {'photo_id': 1343564219, 'portfolio_id': 21365400}, {'photo_id': 1343564215, 'portfolio_id': 21365400}, {'photo_id': 1343564212, 'portfolio_id': 21365400}, {'photo_id': 1343564207, 'portfolio_id': 21365400}, {'photo_id': 1343564206, 'portfolio_id': 21365400}, {'photo_id': 1343564202, 'portfolio_id': 21365400}, {'photo_id': 1343564197, 'portfolio_id': 21365400}, {'photo_id': 1343564196, 'portfolio_id': 21365400}, {'photo_id': 1343564192, 'portfolio_id': 21365400}, {'photo_id': 1343564182, 'portfolio_id': 21365400}, {'photo_id': 1343564179, 'portfolio_id': 21365400}, {'photo_id': 1343564176, 'portfolio_id': 21365400}, {'photo_id': 1343564173, 'portfolio_id': 21365400}, {'photo_id': 1343564168, 'portfolio_id': 21365400}, {'photo_id': 1343564162, 'portfolio_id': 21365400}, {'photo_id': 1343564155, 'portfolio_id': 21365400}, {'photo_id': 1343564151, 'portfolio_id': 21365400}, {'photo_id': 1343564149, 'portfolio_id': 21365400}, {'photo_id': 1343564148, 'portfolio_id': 21365400}, {'photo_id': 1343564142, 'portfolio_id': 21365400}, {'photo_id': 1343564140, 'portfolio_id': 21365400}, {'photo_id': 1343564139, 'portfolio_id': 21365400}, {'photo_id': 1343564135, 'portfolio_id': 21365400}, {'photo_id': 1343564121, 'portfolio_id': 21365400}, {'photo_id': 1343564119, 'portfolio_id': 21365400}, {'photo_id': 1343564117, 'portfolio_id': 21365400}, {'photo_id': 1343564112, 'portfolio_id': 21365400}, {'photo_id': 1343564102, 'portfolio_id': 21365400}, {'photo_id': 1343564090, 'portfolio_id': 21365400}, {'photo_id': 1343564089, 'portfolio_id': 21365400}, {'photo_id': 1343564086, 'portfolio_id': 21365400}, {'photo_id': 1343564079, 'portfolio_id': 21365400}, {'photo_id': 1343564076, 'portfolio_id': 21365400}, {'photo_id': 1343564064, 'portfolio_id': 21365400}, {'photo_id': 1343564052, 'portfolio_id': 21365400}, {'photo_id': 1343564047, 'portfolio_id': 21365400}, {'photo_id': 1343564044, 'portfolio_id': 21365400}, {'photo_id': 1343564023, 'portfolio_id': 21365400}] map_portfolio_id_photo_id: {21365400: [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984, 1343564497, 1343564485, 1343564478, 1343564475, 1343564472, 1343564470, 1343564452, 1343564447, 1343564438, 1343564437, 1343564433, 1343564432, 1343564417, 1343564409, 1343564408, 1343564403, 1343564402, 1343564401, 1343564392, 1343564389, 1343564380, 1343564377, 1343564376, 1343564375, 1343564374, 1343564369, 1343564368, 1343564366, 1343564362, 1343564357, 1343564353, 1343564344, 1343564341, 1343564340, 1343564339, 1343564338, 1343564334, 1343564332, 1343564329, 1343564326, 1343564319, 1343564318, 1343564315, 1343564314, 1343564305, 1343564304, 1343564302, 1343564300, 1343564294, 1343564293, 1343564291, 1343564288, 1343564287, 1343564281, 1343564277, 1343564274, 1343564261, 1343564259, 1343564258, 1343564255, 1343564253, 1343564252, 1343564246, 1343564243, 1343564241, 1343564239, 1343564236, 1343564231, 1343564229, 1343564224, 1343564219, 1343564215, 1343564212, 1343564207, 1343564206, 1343564202, 1343564197, 1343564196, 1343564192, 1343564182, 1343564179, 1343564176, 1343564173, 1343564168, 1343564162, 1343564155, 1343564151, 1343564149, 1343564148, 1343564142, 1343564140, 1343564139, 1343564135, 1343564121, 1343564119, 1343564117, 1343564112, 1343564102, 1343564090, 1343564089, 1343564086, 1343564079, 1343564076, 1343564064, 1343564052, 1343564047, 1343564044, 1343564023]} ##### 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.0244443416595459 #### 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 Mar 13 00:01: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365400) 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 : 21365400 get user id for portfolio 21365400 get sub ptf for main ptf 21365400, type 3726 and hashtags ['Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'Carton_brun', 'kraft', 'plastique', 'mal_croppe', 'cartonnette', 'metal', 'Carton_gris', 'papier', 'flou'] 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`=21365400 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun','kraft','plastique','mal_croppe','cartonnette','metal','Carton_gris','papier','flou')) 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`=21365400 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun','kraft','plastique','mal_croppe','cartonnette','metal','Carton_gris','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21365400, 'sub_port_id': 21365407, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943607, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'kraft': {'main_port_id': 21365400, 'sub_port_id': 21365408, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943608, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'flou': {'main_port_id': 21365400, 'sub_port_id': 21365409, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943609, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21365400, 'sub_port_id': 21365410, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943610, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'metal': {'main_port_id': 21365400, 'sub_port_id': 21365411, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943611, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'Carton_gris': {'main_port_id': 21365400, 'sub_port_id': 21365412, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943612, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'papier': {'main_port_id': 21365400, 'sub_port_id': 21365413, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943613, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'autre_refus': {'main_port_id': 21365400, 'sub_port_id': 21365414, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943614, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'cartonnette': {'main_port_id': 21365400, 'sub_port_id': 21365415, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943615, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'Carton_brun': {'main_port_id': 21365400, 'sub_port_id': 21365416, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943616, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'environnement': {'main_port_id': 21365400, 'sub_port_id': 21365417, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943617, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}, 'plastique': {'main_port_id': 21365400, 'sub_port_id': 21365418, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943618, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 35, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365407 , 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=21365400 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 (21365407) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365408 , 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=21365400 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 (21365408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365409 , 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=21365400 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 (21365409) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365410 , 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=21365400 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 (21365410) result : ((1343566847,), (1343567031,), (1343567033,), (1343568364,), (1343568365,), (1343568372,), (1343568373,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365411 , 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=21365400 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 (21365411) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365412 , 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=21365400 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 (21365412) result : ((1343568389,), (1343568390,), (1343568421,), (1343568422,), (1343568423,), (1343568424,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365413 , 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=21365400 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 (21365413) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365414 , 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=21365400 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 (21365414) result : ((1343566849,), (1343566850,), (1343567071,), (1343567072,), (1343567074,), (1343567075,), (1343568380,), (1343568381,), (1343568397,), (1343568406,), (1343568407,), (1343568408,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365415 , 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=21365400 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 (21365415) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365416 , 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=21365400 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 (21365416) result : ((1343566881,), (1343567090,), (1343567092,), (1343568427,), (1343568428,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365417 , 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=21365400 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 (21365417) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21365418 , 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=21365400 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 (21365418) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365400) result : ((1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,)) 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 (1343564300) and cspi.crop_hashtag_id = chi.id; 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`=21365400 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun','kraft','plastique','mal_croppe','cartonnette','metal','Carton_gris','papier','flou')) 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`=21365400 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','environnement','autre_refus','Carton_brun','kraft','plastique','mal_croppe','cartonnette','metal','Carton_gris','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21365400, 'sub_port_id': 21365420, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943619, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'kraft': {'main_port_id': 21365400, 'sub_port_id': 21365421, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943620, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'flou': {'main_port_id': 21365400, 'sub_port_id': 21365422, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943621, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 21365400, 'sub_port_id': 21365423, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943622, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'metal': {'main_port_id': 21365400, 'sub_port_id': 21365424, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943623, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'Carton_gris': {'main_port_id': 21365400, 'sub_port_id': 21365425, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943624, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'papier': {'main_port_id': 21365400, 'sub_port_id': 21365426, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943625, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'autre_refus': {'main_port_id': 21365400, 'sub_port_id': 21365427, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943626, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'cartonnette': {'main_port_id': 21365400, 'sub_port_id': 21365428, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943627, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'Carton_brun': {'main_port_id': 21365400, 'sub_port_id': 21365429, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943628, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'environnement': {'main_port_id': 21365400, 'sub_port_id': 21365430, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943629, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}, 'plastique': {'main_port_id': 21365400, 'sub_port_id': 21365431, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943630, 'last_updated_at': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 20, 55, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 20, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365408 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365422,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365409 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365423,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365410 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365424,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365411 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365425,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365412 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365413 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365415 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365418 lien utilise dans velours : https://www.fotonower.com/velours/21365420,21365421,21365422,21365423,21365424,21365425,21365426,21365427,21365428,21365429,21365430,21365431?tags=mal_croppe,kraft,flou,Teint_Dans_La_Masse,metal,Carton_gris,papier,autre_refus,cartonnette,Carton_brun,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21365400]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] map_info['map_portfolio_photo'] : {21365400: [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984, 1343564497, 1343564485, 1343564478, 1343564475, 1343564472, 1343564470, 1343564452, 1343564447, 1343564438, 1343564437, 1343564433, 1343564432, 1343564417, 1343564409, 1343564408, 1343564403, 1343564402, 1343564401, 1343564392, 1343564389, 1343564380, 1343564377, 1343564376, 1343564375, 1343564374, 1343564369, 1343564368, 1343564366, 1343564362, 1343564357, 1343564353, 1343564344, 1343564341, 1343564340, 1343564339, 1343564338, 1343564334, 1343564332, 1343564329, 1343564326, 1343564319, 1343564318, 1343564315, 1343564314, 1343564305, 1343564304, 1343564302, 1343564300, 1343564294, 1343564293, 1343564291, 1343564288, 1343564287, 1343564281, 1343564277, 1343564274, 1343564261, 1343564259, 1343564258, 1343564255, 1343564253, 1343564252, 1343564246, 1343564243, 1343564241, 1343564239, 1343564236, 1343564231, 1343564229, 1343564224, 1343564219, 1343564215, 1343564212, 1343564207, 1343564206, 1343564202, 1343564197, 1343564196, 1343564192, 1343564182, 1343564179, 1343564176, 1343564173, 1343564168, 1343564162, 1343564155, 1343564151, 1343564149, 1343564148, 1343564142, 1343564140, 1343564139, 1343564135, 1343564121, 1343564119, 1343564117, 1343564112, 1343564102, 1343564090, 1343564089, 1343564086, 1343564079, 1343564076, 1343564064, 1343564052, 1343564047, 1343564044, 1343564023]} final : False mtd_id 4302 list_pids : [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] Looping around the photos to save general results len do output : 1 /21365400. 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, '2663923') ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '21365400', "{'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418}", None, None, None, None, '2663923'), ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923')] time used for this insertion : 0.016628742218017578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47188401222229004 time spend to save output : 0.017009735107421875 total time spend for step 1 : 0.4888937473297119 step2:final Thu Mar 13 00:01: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 (21365400) 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 21365400 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343564052,1343564064,1343564079,1343564102,1343564173,1343564255,1343564287,1343565560,1343564023,1343564044,1343564047,1343564076,1343564148,1343564219,1343564236,1343565475,1343564121,1343564182,1343564196,1343564340,1343565447,1343564117,1343564139,1343564149,1343564304,1343565320,1343564086,1343564112,1343564119,1343564252,1343564314,1343564338,1343565280,1343564089,1343564090,1343564212,1343564274,1343564300,1343564362,1343565263,1343564168,1343564231,1343564246,1343564329,1343564366,1343565223,1343564140,1343564192,1343564206,1343564288,1343564332,1343565182,1343564155,1343564176,1343564239,1343564291,1343565129,1343564135,1343564142,1343564197,1343564258,1343565034,1343565143,1343564151,1343564224,1343564353,1343564374,1343564380,1343565031,1343565093,1343564179,1343564319,1343564334,1343564344,1343564377,1343565026,1343565038,1343564281,1343564294,1343564315,1343564341,1343564437,1343564447,1343564475,1343564485,1343565018,1343565033,1343564253,1343564261,1343564277,1343564305,1343564408,1343564417,1343564438,1343564452,1343564472,1343565014,1343565025,1343564215,1343564229,1343564243,1343564293,1343564376,1343564392,1343564401,1343564409,1343564433,1343564470,1343564999,1343565005,1343564162,1343564202,1343564207,1343564259,1343564339,1343564357,1343564375,1343564389,1343564403,1343564432,1343564497,1343564990,1343564241,1343564302,1343564318,1343564326,1343564368,1343564369,1343564402,1343564478,1343564984); 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([21365400]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} new output for save of step final : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] map_info['map_portfolio_photo'] : {21365400: [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984, 1343564497, 1343564485, 1343564478, 1343564475, 1343564472, 1343564470, 1343564452, 1343564447, 1343564438, 1343564437, 1343564433, 1343564432, 1343564417, 1343564409, 1343564408, 1343564403, 1343564402, 1343564401, 1343564392, 1343564389, 1343564380, 1343564377, 1343564376, 1343564375, 1343564374, 1343564369, 1343564368, 1343564366, 1343564362, 1343564357, 1343564353, 1343564344, 1343564341, 1343564340, 1343564339, 1343564338, 1343564334, 1343564332, 1343564329, 1343564326, 1343564319, 1343564318, 1343564315, 1343564314, 1343564305, 1343564304, 1343564302, 1343564300, 1343564294, 1343564293, 1343564291, 1343564288, 1343564287, 1343564281, 1343564277, 1343564274, 1343564261, 1343564259, 1343564258, 1343564255, 1343564253, 1343564252, 1343564246, 1343564243, 1343564241, 1343564239, 1343564236, 1343564231, 1343564229, 1343564224, 1343564219, 1343564215, 1343564212, 1343564207, 1343564206, 1343564202, 1343564197, 1343564196, 1343564192, 1343564182, 1343564179, 1343564176, 1343564173, 1343564168, 1343564162, 1343564155, 1343564151, 1343564149, 1343564148, 1343564142, 1343564140, 1343564139, 1343564135, 1343564121, 1343564119, 1343564117, 1343564112, 1343564102, 1343564090, 1343564089, 1343564086, 1343564079, 1343564076, 1343564064, 1343564052, 1343564047, 1343564044, 1343564023]} final : False mtd_id 4302 list_pids : [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] Looping around the photos to save general results len do output : 23 /1343565560.Didn't retrieve data . /1343565475.Didn't retrieve data . /1343565447.Didn't retrieve data . /1343565320.Didn't retrieve data . /1343565280.Didn't retrieve data . /1343565263.Didn't retrieve data . /1343565223.Didn't retrieve data . /1343565182.Didn't retrieve data . /1343565143.Didn't retrieve data . /1343565129.Didn't retrieve data . /1343565093.Didn't retrieve data . /1343565038.Didn't retrieve data . /1343565034.Didn't retrieve data . /1343565033.Didn't retrieve data . /1343565031.Didn't retrieve data . /1343565026.Didn't retrieve data . /1343565025.Didn't retrieve data . /1343565018.Didn't retrieve data . /1343565014.Didn't retrieve data . /1343565005.Didn't retrieve data . /1343564999.Didn't retrieve data . /1343564990.Didn't retrieve data . /1343564984.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, '2663923') ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 69 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', '21365400', '1343565560', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565475', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565447', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565320', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565280', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565263', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565223', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565182', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565143', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565129', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565093', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565038', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565034', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565033', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565031', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565026', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565025', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565018', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565014', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343565005', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343564999', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343564990', '0.08337135804634062', None, None, None, None, '2663923'), ('4302', '21365400', '1343564984', '0.08337135804634062', None, None, None, None, '2663923')] time used for this insertion : 0.01605820655822754 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0661630630493164 time spend to save output : 0.01703500747680664 total time spend for step 2 : 0.08319807052612305 step3:velours_tree Thu Mar 13 00:01: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 : {21365400: [{'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418}]} input_args_next_step : {21365400: ()} output_args : {21365400: [{'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418}]} args : 21365400 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 : ({'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365400) 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([21365400]) 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.6785054206848145 time spend to save output : 4.7206878662109375e-05 total time spend for step 3 : 0.6785526275634766 step4:send_mail_cod Thu Mar 13 00:01:59 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 : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} input_args_next_step : {1343565560: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565560 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565475 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565447 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565320 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565280 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565263 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565223 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565182 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565143 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565129 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565093 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565038 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565034 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565033 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565031 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565026 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565025 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565018 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565014 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343565005 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343564999 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343564990 depend.output_id : 0 input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ()} output_args : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',)} args : 1343564984 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 : {21365400: [{'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418}]} input_args_next_step : {1343565560: ('0.08337135804634062',), 1343565475: ('0.08337135804634062',), 1343565447: ('0.08337135804634062',), 1343565320: ('0.08337135804634062',), 1343565280: ('0.08337135804634062',), 1343565263: ('0.08337135804634062',), 1343565223: ('0.08337135804634062',), 1343565182: ('0.08337135804634062',), 1343565143: ('0.08337135804634062',), 1343565129: ('0.08337135804634062',), 1343565093: ('0.08337135804634062',), 1343565038: ('0.08337135804634062',), 1343565034: ('0.08337135804634062',), 1343565033: ('0.08337135804634062',), 1343565031: ('0.08337135804634062',), 1343565026: ('0.08337135804634062',), 1343565025: ('0.08337135804634062',), 1343565018: ('0.08337135804634062',), 1343565014: ('0.08337135804634062',), 1343565005: ('0.08337135804634062',), 1343564999: ('0.08337135804634062',), 1343564990: ('0.08337135804634062',), 1343564984: ('0.08337135804634062',), 21365400: ()} output_args : {21365400: [{'mal_croppe': 21365407, 'kraft': 21365408, 'flou': 21365409, 'Teint_Dans_La_Masse': 21365410, 'metal': 21365411, 'Carton_gris': 21365412, 'papier': 21365413, 'autre_refus': 21365414, 'cartonnette': 21365415, 'Carton_brun': 21365416, 'environnement': 21365417, 'plastique': 21365418}]} args : 21365400 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 :24, first value : ('0.08337135804634062',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365400) 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 (1343565560,1343565475,1343565447,1343565320,1343565280,1343565263,1343565223,1343565182,1343565143,1343565129,1343565093,1343565038,1343565034,1343565033,1343565031,1343565026,1343565025,1343565018,1343565014,1343565005,1343564999,1343564990,1343564984) Found this number of photos: 23 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343564984 begin to download photo : 1343565018 begin to download photo : 1343565034 begin to download photo : 1343565182 begin to download photo : 1343565447 download finish for photo 1343564984 begin to download photo : 1343564990 download finish for photo 1343565447 begin to download photo : 1343565475 download finish for photo 1343565034 begin to download photo : 1343565038 download finish for photo 1343565182 begin to download photo : 1343565223 download finish for photo 1343565018 begin to download photo : 1343565025 download finish for photo 1343565475 begin to download photo : 1343565560 download finish for photo 1343565223 begin to download photo : 1343565263 download finish for photo 1343564990 begin to download photo : 1343564999 download finish for photo 1343565025 begin to download photo : 1343565026 download finish for photo 1343565038 begin to download photo : 1343565093 download finish for photo 1343564999 begin to download photo : 1343565005 download finish for photo 1343565560 download finish for photo 1343565026 begin to download photo : 1343565031 download finish for photo 1343565093 begin to download photo : 1343565129 download finish for photo 1343565005 begin to download photo : 1343565014 download finish for photo 1343565263 begin to download photo : 1343565280 download finish for photo 1343565031 begin to download photo : 1343565033 download finish for photo 1343565014 download finish for photo 1343565280 begin to download photo : 1343565320 download finish for photo 1343565129 begin to download photo : 1343565143 download finish for photo 1343565033 download finish for photo 1343565143 download finish for photo 1343565320 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213654071741820520/ imagette213654081741820520/ imagette213654091741820520/ imagette213654111741820520/ length of list_filenames : 23 ; length of list_pids : 23 ; length of list_args : 23 results_Auto_P21365400_13-03-2025_00_02_00.pdf 21365407 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=21365407 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654071741820520 21365408 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=21365408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654081741820520 21365409 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=21365409 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654091741820520 21365411 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=21365411 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654111741820520 21365414 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=21365414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343566849: '1741810945_275381_1343564990_3bcc10cb0fbeb3869b129812fa7ee377_rle_crop_3708631928_0.png', 1343566850: '1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632205_0.png', 1343567071: '1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632187_0.png', 1343567072: '1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632482_0.png', 1343567074: '1741810952_3178448_1343565005_845371e5b8ce0042e9b3a5e23ccd3b8e_rle_crop_3708632778_0.png', 1343567075: '1741810952_3178448_1343564999_cb18f8c65a6d15b111217d8cc5656c6a_rle_crop_3708632819_0.png', 1343568380: '1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636921_0.png', 1343568381: '1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636934_0.png', 1343568397: '1741811030_3179335_1343565143_1848841c292cc7c60fb480c7f4542cf1_rle_crop_3708636864_0.png', 1343568406: '1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636883_0.png', 1343568407: '1741811030_3179335_1343565034_c4e1a4d9d40b74b0fd4b8ff64fcbef6e_rle_crop_3708636904_0.png', 1343568408: '1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/826253d0a7e5e9cdc2c8b513cbec6bfc_22699772.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/58cf76f2576356bb63b761a742db9945_9512347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4db1f4d3bd8d3015213741d9537ad05d_30086413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4db1f4d3bd8d3015213741d9537ad05d_70002287.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/96a6c030be11d34083f8b414ff1be972_81455448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/96a6c030be11d34083f8b414ff1be972_81217892.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/882367fa4f66343e1a16b8272bdc9ef9_15076680.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/882367fa4f66343e1a16b8272bdc9ef9_70777269.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b43f56ec75b4c669f25bfcae875aab92_98447750.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0f799c6f29ca90248039654d78e1673c_22240216.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b43f56ec75b4c669f25bfcae875aab92_30518319.png change filename to text .imagette213654141741820520/ imagette213654141741820520/1741811030_3179335_1343565143_1848841c292cc7c60fb480c7f4542cf1_rle_crop_3708636864_0.png.png imagette213654141741820520/1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632482_0.png.png imagette213654141741820520/1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636934_0.png.png imagette213654141741820520/1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636949_0.png.png imagette213654141741820520/1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632187_0.png.png imagette213654141741820520/1741810952_3178448_1343565005_845371e5b8ce0042e9b3a5e23ccd3b8e_rle_crop_3708632778_0.png.png imagette213654141741820520/1741810952_3178448_1343564999_cb18f8c65a6d15b111217d8cc5656c6a_rle_crop_3708632819_0.png.png imagette213654141741820520/1741811030_3179335_1343565034_c4e1a4d9d40b74b0fd4b8ff64fcbef6e_rle_crop_3708636904_0.png.png imagette213654141741820520/1741810945_275381_1343564990_3bcc10cb0fbeb3869b129812fa7ee377_rle_crop_3708631928_0.png.png imagette213654141741820520/1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636921_0.png.png imagette213654141741820520/1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632205_0.png.png imagette213654141741820520/1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636883_0.png.png imagette213654151741820521/ imagette213654181741820521/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0f799c6f29ca90248039654d78e1673c_31075568.png imagette213654141741820520 21365415 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=21365415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654151741820521 21365418 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=21365418 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213654181741820521 21365410 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=21365410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343566847: '1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632202_0.png', 1343567031: '1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632190_0.png', 1343567033: '1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632485_0.png', 1343568364: '1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636924_0.png', 1343568365: '1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636937_0.png', 1343568372: '1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636884_0.png', 1343568373: '1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636950_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/07203fb4f709e707c72298d30f31abef_52595063.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/344069006b64c18ad03d4240cda2b354_27276592.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/344069006b64c18ad03d4240cda2b354_8315906.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/70a36e7e18637580a59fd309bfac3624_59761452.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/70a36e7e18637580a59fd309bfac3624_9224414.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e782dffdda3951fb0fb6e00e002f01d7_70869949.png change filename to text .imagette213654101741820521/ imagette213654101741820521/1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632190_0.png.png imagette213654101741820521/1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632202_0.png.png imagette213654101741820521/1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636937_0.png.png imagette213654101741820521/1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636924_0.png.png imagette213654101741820521/1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636950_0.png.png imagette213654101741820521/1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632485_0.png.png imagette213654101741820521/1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636884_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e782dffdda3951fb0fb6e00e002f01d7_55564225.png imagette213654101741820521 21365412 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=21365412 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343568389: '1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636915_0.png', 1343568390: '1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636928_0.png', 1343568421: '1741811030_3179335_1343565143_1848841c292cc7c60fb480c7f4542cf1_rle_crop_3708636859_0.png', 1343568422: '1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636879_0.png', 1343568423: '1741811030_3179335_1343565034_c4e1a4d9d40b74b0fd4b8ff64fcbef6e_rle_crop_3708636899_0.png', 1343568424: '1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636945_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/776bf0bfcc5594d56fa1c0b293e6f729_78781934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/776bf0bfcc5594d56fa1c0b293e6f729_70186825.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9387914a474ab95f947ab0dd9288f47d_96463322.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8b8f3269009fd13bf7da6ca21185d640_50959849.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9387914a474ab95f947ab0dd9288f47d_89071435.png change filename to text .imagette213654121741820521/ imagette213654121741820521/1741811054_3179632_1343565026_167fb536f75f80e6c5f4a1db3910149c_rle_crop_3708636928_0.png.png imagette213654121741820521/1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636945_0.png.png imagette213654121741820521/1741811030_3179335_1343565143_1848841c292cc7c60fb480c7f4542cf1_rle_crop_3708636859_0.png.png imagette213654121741820521/1741811054_3179632_1343565038_a95f66b146efb02082734c29662c1a1b_rle_crop_3708636915_0.png.png imagette213654121741820521/1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636879_0.png.png imagette213654121741820521/1741811030_3179335_1343565034_c4e1a4d9d40b74b0fd4b8ff64fcbef6e_rle_crop_3708636899_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8b8f3269009fd13bf7da6ca21185d640_84283887.png imagette213654121741820521 21365416 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=21365416 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343566881: '1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632201_0.png', 1343567090: '1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632182_0.png', 1343567092: '1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632477_0.png', 1343568427: '1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636890_0.png', 1343568428: '1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636956_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/afbd1ac24a78857b8b06a093f1f2f3e3_60219629.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/723d15290e513507e4d4508fd9bc5c6c_49926816.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/723d15290e513507e4d4508fd9bc5c6c_58993214.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/93c69a3d54c9645b2eae53003c79ae82_64130201.png change filename to text .imagette213654161741820522/ imagette213654161741820522/1741810952_3178448_1343565014_a84d9e9e5051fddfe5717fc9c89adb36_rle_crop_3708632477_0.png.png imagette213654161741820522/1741810952_3178448_1343565025_0a2b326f402ab4b0d4dfa83d08007101_rle_crop_3708632182_0.png.png imagette213654161741820522/1741811030_3179335_1343565031_85268facb004d3384158d9b8ba249d48_rle_crop_3708636956_0.png.png imagette213654161741820522/1741810945_275381_1343564984_66684856a01e11cc4b23485d0345c399_rle_crop_3708632201_0.png.png imagette213654161741820522/1741811030_3179335_1343565093_c6687d11da67d747c72947c13d2f1d3e_rle_crop_3708636890_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/93c69a3d54c9645b2eae53003c79ae82_44284151.png imagette213654161741820522 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21365400 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21365420,21365421,21365422,21365423,21365424,21365425,21365426,21365427,21365428,21365429,21365430,21365431?tags=mal_croppe,kraft,flou,Teint_Dans_La_Masse,metal,Carton_gris,papier,autre_refus,cartonnette,Carton_brun,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1343565560] : ('0.08337135804634062',) no score found for photo 1343565560 We are sending mail with results at report@fotonower.com args[1343565475] : ('0.08337135804634062',) no score found for photo 1343565475 We are sending mail with results at report@fotonower.com args[1343565447] : ('0.08337135804634062',) no score found for photo 1343565447 We are sending mail with results at report@fotonower.com args[1343565320] : ('0.08337135804634062',) no score found for photo 1343565320 We are sending mail with results at report@fotonower.com args[1343565280] : ('0.08337135804634062',) no score found for photo 1343565280 We are sending mail with results at report@fotonower.com args[1343565263] : ('0.08337135804634062',) no score found for photo 1343565263 We are sending mail with results at report@fotonower.com args[1343565223] : ('0.08337135804634062',) no score found for photo 1343565223 We are sending mail with results at report@fotonower.com args[1343565182] : ('0.08337135804634062',) no score found for photo 1343565182 We are sending mail with results at report@fotonower.com args[1343565143] : ('0.08337135804634062',) no score found for photo 1343565143 We are sending mail with results at report@fotonower.com args[1343565129] : ('0.08337135804634062',) no score found for photo 1343565129 We are sending mail with results at report@fotonower.com args[1343565093] : ('0.08337135804634062',) no score found for photo 1343565093 We are sending mail with results at report@fotonower.com args[1343565038] : ('0.08337135804634062',) no score found for photo 1343565038 We are sending mail with results at report@fotonower.com args[1343565034] : ('0.08337135804634062',) no score found for photo 1343565034 We are sending mail with results at report@fotonower.com args[1343565033] : ('0.08337135804634062',) no score found for photo 1343565033 We are sending mail with results at report@fotonower.com args[1343565031] : ('0.08337135804634062',) no score found for photo 1343565031 We are sending mail with results at report@fotonower.com args[1343565026] : ('0.08337135804634062',) no score found for photo 1343565026 We are sending mail with results at report@fotonower.com args[1343565025] : ('0.08337135804634062',) no score found for photo 1343565025 We are sending mail with results at report@fotonower.com args[1343565018] : ('0.08337135804634062',) no score found for photo 1343565018 We are sending mail with results at report@fotonower.com args[1343565014] : ('0.08337135804634062',) no score found for photo 1343565014 We are sending mail with results at report@fotonower.com args[1343565005] : ('0.08337135804634062',) no score found for photo 1343565005 We are sending mail with results at report@fotonower.com args[1343564999] : ('0.08337135804634062',) no score found for photo 1343564999 We are sending mail with results at report@fotonower.com args[1343564990] : ('0.08337135804634062',) no score found for photo 1343564990 We are sending mail with results at report@fotonower.com args[1343564984] : ('0.08337135804634062',) no score found for photo 1343564984 We are sending mail with results at report@fotonower.com refus_total : 0.08337135804634062 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=21365400 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_P21365400_13-03-2025_00_02_00.pdf results_Auto_P21365400_13-03-2025_00_02_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365400_13-03-2025_00_02_00.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','21365400','results_Auto_P21365400_13-03-2025_00_02_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365400_13-03-2025_00_02_00.pdf','pdf','','0.25','0.08337135804634062') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21365400]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] map_info['map_portfolio_photo'] : {21365400: [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984, 1343564497, 1343564485, 1343564478, 1343564475, 1343564472, 1343564470, 1343564452, 1343564447, 1343564438, 1343564437, 1343564433, 1343564432, 1343564417, 1343564409, 1343564408, 1343564403, 1343564402, 1343564401, 1343564392, 1343564389, 1343564380, 1343564377, 1343564376, 1343564375, 1343564374, 1343564369, 1343564368, 1343564366, 1343564362, 1343564357, 1343564353, 1343564344, 1343564341, 1343564340, 1343564339, 1343564338, 1343564334, 1343564332, 1343564329, 1343564326, 1343564319, 1343564318, 1343564315, 1343564314, 1343564305, 1343564304, 1343564302, 1343564300, 1343564294, 1343564293, 1343564291, 1343564288, 1343564287, 1343564281, 1343564277, 1343564274, 1343564261, 1343564259, 1343564258, 1343564255, 1343564253, 1343564252, 1343564246, 1343564243, 1343564241, 1343564239, 1343564236, 1343564231, 1343564229, 1343564224, 1343564219, 1343564215, 1343564212, 1343564207, 1343564206, 1343564202, 1343564197, 1343564196, 1343564192, 1343564182, 1343564179, 1343564176, 1343564173, 1343564168, 1343564162, 1343564155, 1343564151, 1343564149, 1343564148, 1343564142, 1343564140, 1343564139, 1343564135, 1343564121, 1343564119, 1343564117, 1343564112, 1343564102, 1343564090, 1343564089, 1343564086, 1343564079, 1343564076, 1343564064, 1343564052, 1343564047, 1343564044, 1343564023]} final : False mtd_id 4302 list_pids : [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] 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, '2663923') ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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', '21365400', '1343565560', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923')] time used for this insertion : 0.01471090316772461 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.076640367507935 time spend to save output : 0.015123605728149414 total time spend for step 4 : 5.091763973236084 step5:split_time_score Thu Mar 13 00:02:04 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 : ['21365400'] 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 : [('21365400',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365400) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343565447: {'path': 'temp/1741820519_392689_1343565447_5b0d07539504dd6258d02ba264c08228.jpg', 'extension': 'jpg'}, 1343565475: {'path': 'temp/1741820519_392689_1343565475_a3c982770dea3464bfdd55da13eebba9.jpg', 'extension': 'jpg'}, 1343565560: {'path': 'temp/1741820519_392689_1343565560_413334112de9a4be5b00418b68604466.jpg', 'extension': 'jpg'}, 1343564984: {'path': 'temp/1741820519_392689_1343564984_66684856a01e11cc4b23485d0345c399.jpg', 'extension': 'jpg'}, 1343564990: {'path': 'temp/1741820519_392689_1343564990_3bcc10cb0fbeb3869b129812fa7ee377.jpg', 'extension': 'jpg'}, 1343564999: {'path': 'temp/1741820519_392689_1343564999_cb18f8c65a6d15b111217d8cc5656c6a.jpg', 'extension': 'jpg'}, 1343565005: {'path': 'temp/1741820519_392689_1343565005_845371e5b8ce0042e9b3a5e23ccd3b8e.jpg', 'extension': 'jpg'}, 1343565014: {'path': 'temp/1741820519_392689_1343565014_a84d9e9e5051fddfe5717fc9c89adb36.jpg', 'extension': 'jpg'}, 1343565018: {'path': 'temp/1741820519_392689_1343565018_11e07d600abcd049997957e60a1159bc.jpg', 'extension': 'jpg'}, 1343565025: {'path': 'temp/1741820519_392689_1343565025_0a2b326f402ab4b0d4dfa83d08007101.jpg', 'extension': 'jpg'}, 1343565026: {'path': 'temp/1741820519_392689_1343565026_167fb536f75f80e6c5f4a1db3910149c.jpg', 'extension': 'jpg'}, 1343565031: {'path': 'temp/1741820519_392689_1343565031_85268facb004d3384158d9b8ba249d48.jpg', 'extension': 'jpg'}, 1343565033: {'path': 'temp/1741820519_392689_1343565033_abcdb886a54548bfb12fc3a61567c452.jpg', 'extension': 'jpg'}, 1343565034: {'path': 'temp/1741820519_392689_1343565034_c4e1a4d9d40b74b0fd4b8ff64fcbef6e.jpg', 'extension': 'jpg'}, 1343565038: {'path': 'temp/1741820519_392689_1343565038_a95f66b146efb02082734c29662c1a1b.jpg', 'extension': 'jpg'}, 1343565093: {'path': 'temp/1741820519_392689_1343565093_c6687d11da67d747c72947c13d2f1d3e.jpg', 'extension': 'jpg'}, 1343565129: {'path': 'temp/1741820519_392689_1343565129_75aafbb25f73ccddba659edffce689d3.jpg', 'extension': 'jpg'}, 1343565143: {'path': 'temp/1741820519_392689_1343565143_1848841c292cc7c60fb480c7f4542cf1.jpg', 'extension': 'jpg'}, 1343565182: {'path': 'temp/1741820519_392689_1343565182_b0b646654c259ed4c9add3f160d814f8.jpg', 'extension': 'jpg'}, 1343565223: {'path': 'temp/1741820519_392689_1343565223_52c51a410a44b4eb330edbecdf5c5474.jpg', 'extension': 'jpg'}, 1343565263: {'path': 'temp/1741820519_392689_1343565263_37434ff488ea6c2061cb07da5d4da915.jpg', 'extension': 'jpg'}, 1343565280: {'path': 'temp/1741820519_392689_1343565280_c6a35332169c2676b243b7b8cab071ba.jpg', 'extension': 'jpg'}, 1343565320: {'path': 'temp/1741820519_392689_1343565320_2668985096a45aaa157aa7abbb6f08d2.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 = 21365400; (('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 = 21365400 group by h (('20', 131),) 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=21365400 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 (21365400) 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 (21365400) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21365400 Nombre de photos uploadées : 131 / 23040 (0%) 12032025 21365400 Nombre de photos taguées (types de déchets): 0 / 131 (0%) 12032025 21365400 Nombre de photos taguées (volume) : 0 / 131 (0%) [{'photo_id': 1343564052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/00328c3deaa0fba30e41e2441c929144.jpg', 'username': None, 'uploaded_at': 1741807121, 'text': 'image_12032025_20_15_45_10133.jpg'}, {'photo_id': 1343564064, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f4555344ba6838ad23927dfaac238c52.jpg', 'username': None, 'uploaded_at': 1741807186, 'text': 'image_12032025_20_15_45_10133.jpg'}, {'photo_id': 1343564079, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/208a6ba109f90f09ac555b37f2465e15.jpg', 'username': None, 'uploaded_at': 1741807252, 'text': 'image_12032025_20_15_45_10133.jpg'}, {'photo_id': 1343564102, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4d8cbfeb09acc122758f8655ef3cdae6.jpg', 'username': None, 'uploaded_at': 1741807317, 'text': 'image_12032025_20_15_45_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004086017608642578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21365400, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021956443786621094 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21319746, 'dashboard_result_id': 9408521, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21320320, 'dashboard_result_id': 9408522, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21320594, 'dashboard_result_id': 9408523, '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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21321194, 'dashboard_result_id': 9408524, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21321951, 'dashboard_result_id': 9408525, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21322455, 'dashboard_result_id': 9408526, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21323087, 'dashboard_result_id': 9408527, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21323564, 'dashboard_result_id': 9408528, '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_P21323564_12-03-2025_02_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21324044, 'dashboard_result_id': 9408529, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324056, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21324538, 'dashboard_result_id': 9408530, '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_P21324538_12-03-2025_02_49_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324550, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21325059, 'dashboard_result_id': 9408531, '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_P21325059_12-03-2025_03_19_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325071, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21325713, 'dashboard_result_id': 9408532, '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_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21326309, 'dashboard_result_id': 9408533, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21326595, 'dashboard_result_id': 9408534, '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_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21327104, 'dashboard_result_id': 9408535, '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_P21327104_12-03-2025_04_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327117, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21327624, 'dashboard_result_id': 9408536, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327638, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21328160, 'dashboard_result_id': 9408537, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328208, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21328927, 'dashboard_result_id': 9408538, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328963, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21329339, 'dashboard_result_id': 9408539, '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_P21329339_12-03-2025_05_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329354, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21329766, 'dashboard_result_id': 9408540, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329779, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21330052, 'dashboard_result_id': 9408541, '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_P21330052_12-03-2025_06_04_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330088, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21330390, 'dashboard_result_id': 9408542, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330420, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21330953, 'dashboard_result_id': 9408543, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330967, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21331343, 'dashboard_result_id': 9408544, '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_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21331770, 'dashboard_result_id': 9408545, '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_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21332333, 'dashboard_result_id': 9408546, '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_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21332849, 'dashboard_result_id': 9408547, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21333933, 'dashboard_result_id': 9408548, '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_P21333933_12-03-2025_07_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21333934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21333935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21333936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21333937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21333938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21333939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21333940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21333941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21333942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21333943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21333944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21333945, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21334302, 'dashboard_result_id': 9408549, '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_P21334302_12-03-2025_07_57_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21334327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21334328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21334329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21334330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21334331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21334332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21334333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21334334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21334335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21334336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21334337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21334338, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21335008, 'dashboard_result_id': 9408550, '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_P21335008_12-03-2025_08_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335036, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21335752, 'dashboard_result_id': 9408551, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335802, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21336640, 'dashboard_result_id': 9408552, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21336660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21336661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21336662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21336663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21336664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21336665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21336666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21336667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21336668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21336669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21336670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21336671, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21337307, 'dashboard_result_id': 9408553, '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_P21337307_12-03-2025_08_50_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21337309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21337310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21337311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21337312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21337313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21337314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21337315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21337316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21337317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21337318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21337319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21337320, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21338731, 'dashboard_result_id': 9408554, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21338732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21338733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21338734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21338735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21338736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21338737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21338738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21338739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21338740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21338741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21338742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21338743, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21339305, 'dashboard_result_id': 9408555, '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_P21339305_12-03-2025_09_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339320, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21339774, 'dashboard_result_id': 9408556, '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_P21339774_12-03-2025_10_27_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339789, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21340563, 'dashboard_result_id': 9408557, '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_P21340563_12-03-2025_10_28_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340577, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21340957, 'dashboard_result_id': 9408558, '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_P21340957_12-03-2025_10_49_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340993, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21341651, 'dashboard_result_id': 9408559, '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_P21341651_12-03-2025_10_52_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21341688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21341689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21341691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21341692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21341693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21341694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21341695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21341696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21341697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21341698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21341699, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21342896, 'dashboard_result_id': 9408560, '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_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21343529, 'dashboard_result_id': 9408561, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21343530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21343531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21343532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21343533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21343534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21343535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21343536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21343537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21343538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21343539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21343540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21343541, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21344044, 'dashboard_result_id': 9408562, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344056, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21344908, 'dashboard_result_id': 9408563, '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_P21344908_12-03-2025_12_21_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344921, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21345643, 'dashboard_result_id': 9408564, '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_P21345643_12-03-2025_12_35_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21345660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21345661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21345662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21345663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21345664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21345665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21345667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21345668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21345669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21345670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21345671, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21347428, 'dashboard_result_id': 9408565, '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_P21347428_12-03-2025_13_20_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21347431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21347432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21347433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21347434, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21347435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21347436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21347437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21347438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21347439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21347440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21347441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21347442, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21348262, 'dashboard_result_id': 9408566, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348298, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21348399, 'dashboard_result_id': 9408567, '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_P21348399_12-03-2025_13_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348447, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21349274, 'dashboard_result_id': 9408568, '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_P21349274_12-03-2025_14_19_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21349299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21349300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21349301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21349302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21349303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21349304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21349305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21349306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21349307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21349308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21349309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21349310, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21350003, 'dashboard_result_id': 9408569, '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_P21350003_12-03-2025_14_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350094, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21350916, 'dashboard_result_id': 9408570, '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_P21350916_12-03-2025_14_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350952, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21351663, 'dashboard_result_id': 9408571, '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_P21351663_12-03-2025_14_51_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21351736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21351737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21351738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21351739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21351740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21351741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21351742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21351743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21351744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21351745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21351746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21351747, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21352402, 'dashboard_result_id': 9408572, '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_P21352402_12-03-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21352403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21352404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21352405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21352406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21352407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21352408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21352409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21352410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21352411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21352412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21352413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21352414, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21353310, 'dashboard_result_id': 9408573, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353322, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21353763, 'dashboard_result_id': 9408574, '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_P21353763_12-03-2025_15_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353799, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21354833, 'dashboard_result_id': 9408575, '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_P21354833_12-03-2025_15_51_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21354918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21354919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21354920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21354921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21354922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21354923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21354924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21354925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21354926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21354927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21354928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21354929, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21355531, 'dashboard_result_id': 9408576, '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_P21355531_12-03-2025_16_07_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21355605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21355606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21355607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21355608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21355609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21355610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21355611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21355612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21355613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21355614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21355615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21355616, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21357923, 'dashboard_result_id': 9408577, '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_P21357923_12-03-2025_16_53_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21357957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21357958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21357959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21357960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21357961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21357962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21357963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21357964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21357965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21357966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21357967, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21358714, 'dashboard_result_id': 9408578, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21358720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21358721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21358722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21358723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21358724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21358725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21358726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21358727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21358728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21358729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21358730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21358731, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21359336, 'dashboard_result_id': 9408579, '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_P21359336_12-03-2025_17_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21359429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21359430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21359431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21359432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21359433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21359434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21359435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21359436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21359437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21359438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21359439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21359440, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21362461, 'dashboard_result_id': 9408580, '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_P21362461_12-03-2025_18_24_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21362484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21362486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21362487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21362489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21362490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21362492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21362493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21362494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21362496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21362497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21362498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21362500, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365035, 'dashboard_result_id': 9408581, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365047, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365113, 'dashboard_result_id': 9408582, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365125, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365273, 'dashboard_result_id': 9408583, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365320, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365275, 'dashboard_result_id': 9408584, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365292, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365400, 'dashboard_result_id': 9408585, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365418, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365522, 'dashboard_result_id': 9408586, '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_P21365522_12-03-2025_21_17_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365534, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365670, 'dashboard_result_id': 9408587, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365682, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21365713, 'dashboard_result_id': 9408588, '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_P21365713_12-03-2025_21_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365725, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21367623, 'dashboard_result_id': 9408589, '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_P21367623_12-03-2025_22_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21367625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21367626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21367627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21367628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21367629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21367630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21367631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21367632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21367633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21367634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21367635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21367636, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21368576, 'dashboard_result_id': 9408590, '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_P21368576_12-03-2025_22_44_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21368613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21368614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21368615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21368616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21368617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21368618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21368619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21368620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21368621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21368622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21368623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21368624, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21369933, 'dashboard_result_id': 9408591, '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_P21369933_12-03-2025_23_33_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21369958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21369959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21369960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21369961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21369962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21369963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21369964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21369965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21369966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21369967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21369968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21369969, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1671951, 'mtr_portfolio_id': 21370148, 'dashboard_result_id': 9408592, '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_P21370148_12-03-2025_23_48_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21370149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21370150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21370151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21370152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21370153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21370154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21370155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21370156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21370157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21370158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21370159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21370160, '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 = 21319746 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': 2660222, 'mtr_portfolio_id': 21319746, 'created_at': datetime.datetime(2025, 3, 12, 0, 23, 31), 'result': '0.07809161792567709', 'result_long': None, 'result_double': None}] Qualite : 0.07809161792567709 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21319746 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21319746%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21319746 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21319746 and dashboard_run_id = 1671951 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`=21319746 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408521, 0.07809161792567709, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21319753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21319754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21319755, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21319756, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21319757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21319758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21319759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21319760, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21319761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21319762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21319763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21319764, 'pht': 3726}, 'url_report': ''}") 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 = 21320320 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': 2660266, 'mtr_portfolio_id': 21320320, 'created_at': datetime.datetime(2025, 3, 12, 0, 33, 30), 'result': '0.08049526919943051', 'result_long': None, 'result_double': None}] Qualite : 0.08049526919943051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320320 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21320320%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320320 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21320320 and dashboard_run_id = 1671951 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`=21320320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408522, 0.08049526919943051, "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}") 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 = 21320594 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': 2660283, 'mtr_portfolio_id': 21320594, 'created_at': datetime.datetime(2025, 3, 12, 0, 49), 'result': '0.0784371336807547', 'result_long': None, 'result_double': None}] Qualite : 0.0784371336807547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320594 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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, 'pht': 3726}}" where mtr_portfolio_id = 21320594 and dashboard_run_id = 1671951 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`=21320594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408523, 0.0784371336807547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, '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 = 21321194 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': 2660321, 'mtr_portfolio_id': 21321194, 'created_at': datetime.datetime(2025, 3, 12, 1, 3), 'result': '0.06971826493354381', 'result_long': None, 'result_double': None}] Qualite : 0.06971826493354381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21321194 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21321194%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21321194 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21321194 and dashboard_run_id = 1671951 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`=21321194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408524, 0.06971826493354381, "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, 'pht': 3726}, 'url_report': ''}") 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 = 21321951 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': 2660401, 'mtr_portfolio_id': 21321951, 'created_at': datetime.datetime(2025, 3, 12, 1, 48, 59), 'result': '0.08098086963450103', 'result_long': None, 'result_double': None}] Qualite : 0.08098086963450103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21321951 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21321951%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21321951 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21321951 and dashboard_run_id = 1671951 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`=21321951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408525, 0.08098086963450103, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321977, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321987, 'pht': 3726}, 'url_report': ''}") 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 = 21322455 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': 2660430, 'mtr_portfolio_id': 21322455, 'created_at': datetime.datetime(2025, 3, 12, 2, 3, 1), 'result': '0.0863562880540628', 'result_long': None, 'result_double': None}] Qualite : 0.0863562880540628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21322455 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21322455%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21322455 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21322455 and dashboard_run_id = 1671951 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`=21322455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408526, 0.0863562880540628, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21322480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21322481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21322482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21322483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21322484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21322485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21322486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21322487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21322488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21322489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21322490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21322491, 'pht': 3726}, 'url_report': ''}") 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 = 21323087 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': 2660473, 'mtr_portfolio_id': 21323087, 'created_at': datetime.datetime(2025, 3, 12, 2, 17, 33), 'result': '0.09895309322765329', 'result_long': None, 'result_double': None}] Qualite : 0.09895309322765329 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21323087 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21323087%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21323087 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21323087 and dashboard_run_id = 1671951 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`=21323087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408527, 0.09895309322765329, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323096, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323101, 'pht': 3726}, 'url_report': ''}") 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 = 21323564 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': 2660500, 'mtr_portfolio_id': 21323564, 'created_at': datetime.datetime(2025, 3, 12, 2, 33, 27), 'result': '0.08226034773374041', 'result_long': None, 'result_double': None}] Qualite : 0.08226034773374041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21323564 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21323564_12-03-2025_02_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21323564 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_P21323564_12-03-2025_02_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, 'pht': 3726}}" where mtr_portfolio_id = 21323564 and dashboard_run_id = 1671951 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`=21323564 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408528, 0.08226034773374041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21323564_12-03-2025_02_33_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21323579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21323580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21323581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21323582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21323583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21323584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21323585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21323586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21323587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21323588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21323589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21323590, '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 = 21324044 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': 2660537, 'mtr_portfolio_id': 21324044, 'created_at': datetime.datetime(2025, 3, 12, 2, 49, 4), 'result': '0.07522840819359698', 'result_long': None, 'result_double': None}] Qualite : 0.07522840819359698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21324044 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21324044%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21324044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324056, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21324044 and dashboard_run_id = 1671951 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`=21324044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408529, 0.07522840819359698, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324056, 'pht': 3726}, 'url_report': ''}") 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 = 21324538 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': 2660565, 'mtr_portfolio_id': 21324538, 'created_at': datetime.datetime(2025, 3, 12, 3, 3, 2), 'result': '0.0740868051746692', 'result_long': None, 'result_double': None}] Qualite : 0.0740868051746692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21324538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21324538_12-03-2025_02_49_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21324538 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_P21324538_12-03-2025_02_49_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324550, 'pht': 3726}}" where mtr_portfolio_id = 21324538 and dashboard_run_id = 1671951 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`=21324538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408530, 0.0740868051746692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21324538_12-03-2025_02_49_38.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21324539, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21324540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21324541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21324542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21324543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21324544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21324545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21324546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21324547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21324548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21324549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21324550, '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 = 21325059 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': 2660611, 'mtr_portfolio_id': 21325059, 'created_at': datetime.datetime(2025, 3, 12, 3, 19, 3), 'result': '0.08130400389882042', 'result_long': None, 'result_double': None}] Qualite : 0.08130400389882042 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21325059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325059_12-03-2025_03_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21325059 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_P21325059_12-03-2025_03_19_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325071, 'pht': 3726}}" where mtr_portfolio_id = 21325059 and dashboard_run_id = 1671951 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`=21325059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408531, 0.08130400389882042, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325059_12-03-2025_03_19_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325071, '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 = 21325713 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': 2660639, 'mtr_portfolio_id': 21325713, 'created_at': datetime.datetime(2025, 3, 12, 3, 32, 58), 'result': '0.07128346317187652', 'result_long': None, 'result_double': None}] Qualite : 0.07128346317187652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21325713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325713_12-03-2025_03_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21325713 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_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, 'pht': 3726}}" where mtr_portfolio_id = 21325713 and dashboard_run_id = 1671951 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`=21325713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408532, 0.07128346317187652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21325713_12-03-2025_03_19_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21325775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21325776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21325777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21325778, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21325779, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21325780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21325781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21325782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21325783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21325784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21325785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21325786, '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 = 21326309 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': 2660682, 'mtr_portfolio_id': 21326309, 'created_at': datetime.datetime(2025, 3, 12, 3, 48, 7), 'result': '0.057940724705173315', 'result_long': None, 'result_double': None}] Qualite : 0.057940724705173315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21326309 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21326309%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21326309 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21326309 and dashboard_run_id = 1671951 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`=21326309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408533, 0.057940724705173315, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326389, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326394, 'pht': 3726}, 'url_report': ''}") 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 = 21326595 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': 2660705, 'mtr_portfolio_id': 21326595, 'created_at': datetime.datetime(2025, 3, 12, 4, 3), 'result': '0.08015330301259196', 'result_long': None, 'result_double': None}] Qualite : 0.08015330301259196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21326595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21326595_12-03-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21326595 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_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, 'pht': 3726}}" where mtr_portfolio_id = 21326595 and dashboard_run_id = 1671951 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`=21326595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408534, 0.08015330301259196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21326595_12-03-2025_04_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21326608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21326609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21326610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21326611, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21326612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21326613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21326614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21326615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21326616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21326617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21326618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21326619, '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 = 21327104 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': 2660753, 'mtr_portfolio_id': 21327104, 'created_at': datetime.datetime(2025, 3, 12, 4, 19, 1), 'result': '0.08365766476599105', 'result_long': None, 'result_double': None}] Qualite : 0.08365766476599105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21327104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21327104_12-03-2025_04_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21327104 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_P21327104_12-03-2025_04_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327117, 'pht': 3726}}" where mtr_portfolio_id = 21327104 and dashboard_run_id = 1671951 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`=21327104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408535, 0.08365766476599105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21327104_12-03-2025_04_19_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327108, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327110, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327112, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327114, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327117, '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 = 21327624 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': 2660781, 'mtr_portfolio_id': 21327624, 'created_at': datetime.datetime(2025, 3, 12, 4, 35, 26), 'result': '0.0947902138581716', 'result_long': None, 'result_double': None}] Qualite : 0.0947902138581716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21327624 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21327624%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21327624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327638, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21327624 and dashboard_run_id = 1671951 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`=21327624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408536, 0.0947902138581716, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21327627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21327628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21327629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21327630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21327631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21327632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21327633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21327634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21327635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21327636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21327637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21327638, 'pht': 3726}, 'url_report': ''}") 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 = 21328160 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': 2660818, 'mtr_portfolio_id': 21328160, 'created_at': datetime.datetime(2025, 3, 12, 5, 3, 29), 'result': '0.10682891929760675', 'result_long': None, 'result_double': None}] Qualite : 0.10682891929760675 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21328160 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21328160%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21328160 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328208, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21328160 and dashboard_run_id = 1671951 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`=21328160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408537, 0.10682891929760675, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328208, 'pht': 3726}, 'url_report': ''}") 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 = 21328927 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': 2660876, 'mtr_portfolio_id': 21328927, 'created_at': datetime.datetime(2025, 3, 12, 5, 18, 57), 'result': '0.10066663441482694', 'result_long': None, 'result_double': None}] Qualite : 0.10066663441482694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21328927 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21328927%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21328927 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328963, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21328927 and dashboard_run_id = 1671951 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`=21328927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408538, 0.10066663441482694, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21328952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21328953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21328954, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21328955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21328956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21328957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21328958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21328959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21328960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21328961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21328962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21328963, 'pht': 3726}, 'url_report': ''}") 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 = 21329339 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': 2660902, 'mtr_portfolio_id': 21329339, 'created_at': datetime.datetime(2025, 3, 12, 5, 35, 31), 'result': '0.0685023027157091', 'result_long': None, 'result_double': None}] Qualite : 0.0685023027157091 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21329339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21329339_12-03-2025_05_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21329339 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_P21329339_12-03-2025_05_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329354, 'pht': 3726}}" where mtr_portfolio_id = 21329339 and dashboard_run_id = 1671951 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`=21329339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408539, 0.0685023027157091, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21329339_12-03-2025_05_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329350, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329354, '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 = 21329766 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': 2661063, 'mtr_portfolio_id': 21329766, 'created_at': datetime.datetime(2025, 3, 12, 5, 47, 32), 'result': '0.08936045489399681', 'result_long': None, 'result_double': None}] Qualite : 0.08936045489399681 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21329766 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21329766%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21329766 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329779, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21329766 and dashboard_run_id = 1671951 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`=21329766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408540, 0.08936045489399681, "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21329768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21329769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21329770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21329771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21329772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21329773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21329774, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21329775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21329776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21329777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21329778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21329779, 'pht': 3726}, 'url_report': ''}") 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 = 21330052 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': 2661094, 'mtr_portfolio_id': 21330052, 'created_at': datetime.datetime(2025, 3, 12, 6, 3, 59), 'result': '0.07100954502328005', 'result_long': None, 'result_double': None}] Qualite : 0.07100954502328005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21330052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21330052_12-03-2025_06_04_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21330052 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_P21330052_12-03-2025_06_04_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330088, 'pht': 3726}}" where mtr_portfolio_id = 21330052 and dashboard_run_id = 1671951 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`=21330052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408541, 0.07100954502328005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21330052_12-03-2025_06_04_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330080, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330084, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330087, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330088, '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 = 21330390 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': 2661127, 'mtr_portfolio_id': 21330390, 'created_at': datetime.datetime(2025, 3, 12, 6, 17, 32), 'result': '0.07050413645977414', 'result_long': None, 'result_double': None}] Qualite : 0.07050413645977414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21330390 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21330390%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21330390 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330420, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21330390 and dashboard_run_id = 1671951 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`=21330390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408542, 0.07050413645977414, "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330416, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330419, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330420, 'pht': 3726}, 'url_report': ''}") 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 = 21330953 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': 2661156, 'mtr_portfolio_id': 21330953, 'created_at': datetime.datetime(2025, 3, 12, 6, 24, 58), 'result': '0.09311570008373836', 'result_long': None, 'result_double': None}] Qualite : 0.09311570008373836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21330953 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21330953%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21330953 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330967, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21330953 and dashboard_run_id = 1671951 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`=21330953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408543, 0.09311570008373836, "{'max_time_prod_two_photos': 0, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21330956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21330957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21330958, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21330959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21330960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21330961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21330962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21330963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21330964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21330965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21330966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21330967, 'pht': 3726}, 'url_report': ''}") 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 = 21331343 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': 2661186, 'mtr_portfolio_id': 21331343, 'created_at': datetime.datetime(2025, 3, 12, 6, 47, 57), 'result': '0.08693420372638028', 'result_long': None, 'result_double': None}] Qualite : 0.08693420372638028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21331343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331343_12-03-2025_06_47_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21331343 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_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, 'pht': 3726}}" where mtr_portfolio_id = 21331343 and dashboard_run_id = 1671951 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`=21331343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408544, 0.08693420372638028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331343_12-03-2025_06_47_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21331363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331366, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331367, '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 = 21331770 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': 2661221, 'mtr_portfolio_id': 21331770, 'created_at': datetime.datetime(2025, 3, 12, 6, 56, 58), 'result': '0.08122098901730798', 'result_long': None, 'result_double': None}] Qualite : 0.08122098901730798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21331770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331770_12-03-2025_06_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21331770 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_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, 'pht': 3726}}" where mtr_portfolio_id = 21331770 and dashboard_run_id = 1671951 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`=21331770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408545, 0.08122098901730798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21331770_12-03-2025_06_56_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21331812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21331813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21331814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21331815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21331816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21331817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21331818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21331819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21331820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21331821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21331822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21331823, '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 = 21332333 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': 2661317, 'mtr_portfolio_id': 21332333, 'created_at': datetime.datetime(2025, 3, 12, 7, 10), 'result': '0.06672863734111766', 'result_long': None, 'result_double': None}] Qualite : 0.06672863734111766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21332333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21332333_12-03-2025_07_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21332333 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_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, 'pht': 3726}}" where mtr_portfolio_id = 21332333 and dashboard_run_id = 1671951 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`=21332333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408546, 0.06672863734111766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21332333_12-03-2025_07_05_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332345, '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 = 21332849 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': 2661368, 'mtr_portfolio_id': 21332849, 'created_at': datetime.datetime(2025, 3, 12, 7, 33, 59), 'result': '0.06407906943756861', 'result_long': None, 'result_double': None}] Qualite : 0.06407906943756861 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21332849 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21332849%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21332849 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21332849 and dashboard_run_id = 1671951 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`=21332849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408547, 0.06407906943756861, "{'max_time_prod_two_photos': 0, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21332874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21332875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21332876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21332877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21332878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21332879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21332880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21332881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21332882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21332883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21332884, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21332885, 'pht': 3726}, 'url_report': ''}") 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 = 21333933 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': 2661419, 'mtr_portfolio_id': 21333933, 'created_at': datetime.datetime(2025, 3, 12, 7, 49, 59), 'result': '0.12058807054168419', 'result_long': None, 'result_double': None}] Qualite : 0.12058807054168419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21333933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21333933_12-03-2025_07_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21333933 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_P21333933_12-03-2025_07_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21333934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21333935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21333936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21333937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21333938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21333939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21333940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21333941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21333942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21333943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21333944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21333945, 'pht': 3726}}" where mtr_portfolio_id = 21333933 and dashboard_run_id = 1671951 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`=21333933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408548, 0.12058807054168419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21333933_12-03-2025_07_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21333934, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21333935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21333936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21333937, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21333938, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21333939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21333940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21333941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21333942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21333943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21333944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21333945, '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 = 21334302 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': 2661448, 'mtr_portfolio_id': 21334302, 'created_at': datetime.datetime(2025, 3, 12, 7, 56, 59), 'result': '0.08405857963880586', 'result_long': None, 'result_double': None}] Qualite : 0.08405857963880586 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21334302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21334302_12-03-2025_07_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21334302 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_P21334302_12-03-2025_07_57_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21334327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21334328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21334329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21334330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21334331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21334332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21334333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21334334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21334335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21334336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21334337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21334338, 'pht': 3726}}" where mtr_portfolio_id = 21334302 and dashboard_run_id = 1671951 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`=21334302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408549, 0.08405857963880586, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21334302_12-03-2025_07_57_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21334327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21334328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21334329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21334330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21334331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21334332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21334333, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21334334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21334335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21334336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21334337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21334338, '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 = 21335008 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': 2661501, 'mtr_portfolio_id': 21335008, 'created_at': datetime.datetime(2025, 3, 12, 8, 18), 'result': '0.08622844444394889', 'result_long': None, 'result_double': None}] Qualite : 0.08622844444394889 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21335008 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21335008_12-03-2025_08_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21335008 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_P21335008_12-03-2025_08_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335036, 'pht': 3726}}" where mtr_portfolio_id = 21335008 and dashboard_run_id = 1671951 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`=21335008 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408550, 0.08622844444394889, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21335008_12-03-2025_08_18_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335028, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335032, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335036, '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 = 21335752 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': 2661540, 'mtr_portfolio_id': 21335752, 'created_at': datetime.datetime(2025, 3, 12, 8, 32, 59), 'result': '0.09333535567076814', 'result_long': None, 'result_double': None}] Qualite : 0.09333535567076814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21335752 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21335752%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21335752 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335802, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21335752 and dashboard_run_id = 1671951 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`=21335752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408551, 0.09333535567076814, "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21335791, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21335792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21335793, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21335794, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21335795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21335796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21335797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21335798, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21335799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21335800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21335801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21335802, 'pht': 3726}, 'url_report': ''}") 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 = 21336640 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': 2661613, 'mtr_portfolio_id': 21336640, 'created_at': datetime.datetime(2025, 3, 12, 8, 50, 31), 'result': '0.09338098481232313', 'result_long': None, 'result_double': None}] Qualite : 0.09338098481232313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21336640 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21336640%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21336640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21336660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21336661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21336662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21336663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21336664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21336665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21336666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21336667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21336668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21336669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21336670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21336671, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21336640 and dashboard_run_id = 1671951 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`=21336640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408552, 0.09338098481232313, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21336660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21336661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21336662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21336663, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21336664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21336665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21336666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21336667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21336668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21336669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21336670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21336671, 'pht': 3726}, 'url_report': ''}") 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 = 21337307 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': 2661651, 'mtr_portfolio_id': 21337307, 'created_at': datetime.datetime(2025, 3, 12, 9, 19, 58), 'result': '0.07048841563800454', 'result_long': None, 'result_double': None}] Qualite : 0.07048841563800454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21337307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21337307_12-03-2025_08_50_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21337307 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_P21337307_12-03-2025_08_50_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21337309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21337310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21337311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21337312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21337313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21337314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21337315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21337316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21337317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21337318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21337319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21337320, 'pht': 3726}}" where mtr_portfolio_id = 21337307 and dashboard_run_id = 1671951 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`=21337307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408553, 0.07048841563800454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21337307_12-03-2025_08_50_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21337309, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21337310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21337311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21337312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21337313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21337314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21337315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21337316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21337317, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21337318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21337319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21337320, '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 = 21338731 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': 2661773, 'mtr_portfolio_id': 21338731, 'created_at': datetime.datetime(2025, 3, 12, 9, 48, 2), 'result': '0.06443000218113298', 'result_long': None, 'result_double': None}] Qualite : 0.06443000218113298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21338731 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21338731%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21338731 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21338732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21338733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21338734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21338735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21338736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21338737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21338738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21338739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21338740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21338741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21338742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21338743, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21338731 and dashboard_run_id = 1671951 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`=21338731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408554, 0.06443000218113298, "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21338732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21338733, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21338734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21338735, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21338736, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21338737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21338738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21338739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21338740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21338741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21338742, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21338743, 'pht': 3726}, 'url_report': ''}") 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 = 21339305 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': 2661811, 'mtr_portfolio_id': 21339305, 'created_at': datetime.datetime(2025, 3, 12, 10, 3), 'result': '0.07062827374508375', 'result_long': None, 'result_double': None}] Qualite : 0.07062827374508375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21339305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21339305_12-03-2025_09_50_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21339305 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_P21339305_12-03-2025_09_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339320, 'pht': 3726}}" where mtr_portfolio_id = 21339305 and dashboard_run_id = 1671951 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`=21339305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408555, 0.07062827374508375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21339305_12-03-2025_09_50_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339312, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339313, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339320, '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 = 21339774 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': 2661865, 'mtr_portfolio_id': 21339774, 'created_at': datetime.datetime(2025, 3, 12, 10, 27, 29), 'result': '0.06792092217569598', 'result_long': None, 'result_double': None}] Qualite : 0.06792092217569598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21339774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21339774_12-03-2025_10_27_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21339774 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_P21339774_12-03-2025_10_27_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339789, 'pht': 3726}}" where mtr_portfolio_id = 21339774 and dashboard_run_id = 1671951 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`=21339774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408556, 0.06792092217569598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21339774_12-03-2025_10_27_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21339778, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21339779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21339780, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21339781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21339782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21339783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21339784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21339785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21339786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21339787, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21339788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21339789, '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 = 21340563 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': 2661915, 'mtr_portfolio_id': 21340563, 'created_at': datetime.datetime(2025, 3, 12, 10, 33), 'result': '0.0809821823666654', 'result_long': None, 'result_double': None}] Qualite : 0.0809821823666654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21340563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21340563_12-03-2025_10_28_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21340563 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_P21340563_12-03-2025_10_28_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340577, 'pht': 3726}}" where mtr_portfolio_id = 21340563 and dashboard_run_id = 1671951 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`=21340563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408557, 0.0809821823666654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21340563_12-03-2025_10_28_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340577, '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 = 21340957 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': 2661958, 'mtr_portfolio_id': 21340957, 'created_at': datetime.datetime(2025, 3, 12, 10, 49, 37), 'result': '0.07272840566729234', 'result_long': None, 'result_double': None}] Qualite : 0.07272840566729234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21340957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21340957_12-03-2025_10_49_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21340957 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_P21340957_12-03-2025_10_49_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340993, 'pht': 3726}}" where mtr_portfolio_id = 21340957 and dashboard_run_id = 1671951 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`=21340957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408558, 0.07272840566729234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21340957_12-03-2025_10_49_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21340982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21340983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21340984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21340985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21340986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21340987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21340988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21340989, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21340990, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21340991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21340992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21340993, '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 = 21341651 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': 2661988, 'mtr_portfolio_id': 21341651, 'created_at': datetime.datetime(2025, 3, 12, 11, 32, 58), 'result': '0.07921977786298634', 'result_long': None, 'result_double': None}] Qualite : 0.07921977786298634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21341651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21341651_12-03-2025_10_52_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21341651 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_P21341651_12-03-2025_10_52_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21341688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21341689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21341691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21341692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21341693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21341694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21341695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21341696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21341697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21341698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21341699, 'pht': 3726}}" where mtr_portfolio_id = 21341651 and dashboard_run_id = 1671951 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`=21341651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408559, 0.07921977786298634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21341651_12-03-2025_10_52_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21341688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21341689, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21341690, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21341691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21341692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21341693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21341694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21341695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21341696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21341697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21341698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21341699, '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 = 21342896 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': 2662118, 'mtr_portfolio_id': 21342896, 'created_at': datetime.datetime(2025, 3, 12, 11, 47, 59), 'result': '0.07415376356906721', 'result_long': None, 'result_double': None}] Qualite : 0.07415376356906721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21342896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21342896_12-03-2025_11_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21342896 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_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, 'pht': 3726}}" where mtr_portfolio_id = 21342896 and dashboard_run_id = 1671951 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`=21342896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408560, 0.07415376356906721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, '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 = 21343529 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': 2662155, 'mtr_portfolio_id': 21343529, 'created_at': datetime.datetime(2025, 3, 12, 12, 2, 31), 'result': '0.07372850546320474', 'result_long': None, 'result_double': None}] Qualite : 0.07372850546320474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21343529 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21343529%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21343529 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21343530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21343531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21343532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21343533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21343534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21343535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21343536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21343537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21343538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21343539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21343540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21343541, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21343529 and dashboard_run_id = 1671951 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`=21343529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408561, 0.07372850546320474, "{'max_time_prod_two_photos': 0, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21343530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21343531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21343532, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21343533, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21343534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21343535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21343536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21343537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21343538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21343539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21343540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21343541, 'pht': 3726}, 'url_report': ''}") 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 = 21344044 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': 2662209, 'mtr_portfolio_id': 21344044, 'created_at': datetime.datetime(2025, 3, 12, 12, 19, 1), 'result': '0.0721694510631165', 'result_long': None, 'result_double': None}] Qualite : 0.0721694510631165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21344044 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21344044%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21344044 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344056, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21344044 and dashboard_run_id = 1671951 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`=21344044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408562, 0.0721694510631165, "{'max_time_prod_two_photos': 0, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344048, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344050, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344052, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344054, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344056, 'pht': 3726}, 'url_report': ''}") 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 = 21344908 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': 2662251, 'mtr_portfolio_id': 21344908, 'created_at': datetime.datetime(2025, 3, 12, 12, 35), 'result': '0.0762318771918065', 'result_long': None, 'result_double': None}] Qualite : 0.0762318771918065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21344908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21344908_12-03-2025_12_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21344908 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_P21344908_12-03-2025_12_21_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344921, 'pht': 3726}}" where mtr_portfolio_id = 21344908 and dashboard_run_id = 1671951 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`=21344908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408563, 0.0762318771918065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21344908_12-03-2025_12_21_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21344910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21344911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21344912, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21344913, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21344914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21344915, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21344916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21344917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21344918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21344919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21344920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21344921, '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 = 21345643 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': 2662321, 'mtr_portfolio_id': 21345643, 'created_at': datetime.datetime(2025, 3, 12, 12, 56, 59), 'result': '0.09425506132898659', 'result_long': None, 'result_double': None}] Qualite : 0.09425506132898659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21345643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21345643_12-03-2025_12_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21345643 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_P21345643_12-03-2025_12_35_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21345660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21345661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21345662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21345663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21345664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21345665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21345667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21345668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21345669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21345670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21345671, 'pht': 3726}}" where mtr_portfolio_id = 21345643 and dashboard_run_id = 1671951 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`=21345643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408564, 0.09425506132898659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21345643_12-03-2025_12_35_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21345660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21345661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21345662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21345663, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21345664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21345665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21345666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21345667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21345668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21345669, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21345670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21345671, '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 = 21347428 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': 2662430, 'mtr_portfolio_id': 21347428, 'created_at': datetime.datetime(2025, 3, 12, 13, 40, 58), 'result': '0.06913301943843227', 'result_long': None, 'result_double': None}] Qualite : 0.06913301943843227 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21347428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21347428_12-03-2025_13_20_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21347428 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_P21347428_12-03-2025_13_20_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21347431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21347432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21347433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21347434, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21347435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21347436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21347437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21347438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21347439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21347440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21347441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21347442, 'pht': 3726}}" where mtr_portfolio_id = 21347428 and dashboard_run_id = 1671951 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`=21347428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408565, 0.06913301943843227, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21347428_12-03-2025_13_20_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21347431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21347432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21347433, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21347434, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21347435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21347436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21347437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21347438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21347439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21347440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21347441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21347442, '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 = 21348262 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': 2662496, 'mtr_portfolio_id': 21348262, 'created_at': datetime.datetime(2025, 3, 12, 13, 49), 'result': '0.05266618516385211', 'result_long': None, 'result_double': None}] Qualite : 0.05266618516385211 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21348262 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21348262%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21348262 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348298, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21348262 and dashboard_run_id = 1671951 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`=21348262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408566, 0.05266618516385211, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348297, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348298, 'pht': 3726}, 'url_report': ''}") 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 = 21348399 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': 2662506, 'mtr_portfolio_id': 21348399, 'created_at': datetime.datetime(2025, 3, 12, 14, 3), 'result': '0.06617752534116332', 'result_long': None, 'result_double': None}] Qualite : 0.06617752534116332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21348399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21348399_12-03-2025_13_49_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21348399 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_P21348399_12-03-2025_13_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348447, 'pht': 3726}}" where mtr_portfolio_id = 21348399 and dashboard_run_id = 1671951 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`=21348399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408567, 0.06617752534116332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21348399_12-03-2025_13_49_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21348436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21348437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21348438, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21348439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21348440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21348441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21348442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21348443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21348444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21348445, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21348446, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21348447, '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 = 21349274 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': 2662582, 'mtr_portfolio_id': 21349274, 'created_at': datetime.datetime(2025, 3, 12, 14, 19, 59), 'result': '0.06832250576121157', 'result_long': None, 'result_double': None}] Qualite : 0.06832250576121157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21349274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21349274_12-03-2025_14_19_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21349274 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_P21349274_12-03-2025_14_19_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21349299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21349300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21349301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21349302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21349303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21349304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21349305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21349306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21349307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21349308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21349309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21349310, 'pht': 3726}}" where mtr_portfolio_id = 21349274 and dashboard_run_id = 1671951 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`=21349274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408568, 0.06832250576121157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21349274_12-03-2025_14_19_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21349299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21349300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21349301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21349302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21349303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21349304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21349305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21349306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21349307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21349308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21349309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21349310, '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 = 21350003 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': 2662617, 'mtr_portfolio_id': 21350003, 'created_at': datetime.datetime(2025, 3, 12, 14, 32, 57), 'result': '0.047570637401546725', 'result_long': None, 'result_double': None}] Qualite : 0.047570637401546725 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21350003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21350003_12-03-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21350003 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_P21350003_12-03-2025_14_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350094, 'pht': 3726}}" where mtr_portfolio_id = 21350003 and dashboard_run_id = 1671951 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`=21350003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408569, 0.047570637401546725, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21350003_12-03-2025_14_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350094, '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 = 21350916 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': 2662690, 'mtr_portfolio_id': 21350916, 'created_at': datetime.datetime(2025, 3, 12, 14, 48, 59), 'result': '0.06778009514656347', 'result_long': None, 'result_double': None}] Qualite : 0.06778009514656347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21350916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21350916_12-03-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21350916 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_P21350916_12-03-2025_14_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350952, 'pht': 3726}}" where mtr_portfolio_id = 21350916 and dashboard_run_id = 1671951 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`=21350916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408570, 0.06778009514656347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21350916_12-03-2025_14_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21350941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21350942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21350943, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21350944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21350945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21350946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21350947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21350948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21350949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21350950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21350951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21350952, '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 = 21351663 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': 2662730, 'mtr_portfolio_id': 21351663, 'created_at': datetime.datetime(2025, 3, 12, 15, 3), 'result': '0.07141287312139535', 'result_long': None, 'result_double': None}] Qualite : 0.07141287312139535 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21351663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21351663_12-03-2025_14_51_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21351663 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_P21351663_12-03-2025_14_51_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21351736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21351737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21351738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21351739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21351740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21351741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21351742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21351743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21351744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21351745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21351746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21351747, 'pht': 3726}}" where mtr_portfolio_id = 21351663 and dashboard_run_id = 1671951 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`=21351663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408571, 0.07141287312139535, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21351663_12-03-2025_14_51_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21351736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21351737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21351738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21351739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21351740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21351741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21351742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21351743, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21351744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21351745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21351746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21351747, '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 = 21352402 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': 2662798, 'mtr_portfolio_id': 21352402, 'created_at': datetime.datetime(2025, 3, 12, 15, 19), 'result': '0.07029724164544873', 'result_long': None, 'result_double': None}] Qualite : 0.07029724164544873 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21352402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21352402_12-03-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21352402 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_P21352402_12-03-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21352403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21352404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21352405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21352406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21352407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21352408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21352409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21352410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21352411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21352412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21352413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21352414, 'pht': 3726}}" where mtr_portfolio_id = 21352402 and dashboard_run_id = 1671951 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`=21352402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408572, 0.07029724164544873, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21352402_12-03-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21352403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21352404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21352405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21352406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21352407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21352408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21352409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21352410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21352411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21352412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21352413, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21352414, '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 = 21353310 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': 2662844, 'mtr_portfolio_id': 21353310, 'created_at': datetime.datetime(2025, 3, 12, 15, 33, 4), 'result': '0.058911077905909354', 'result_long': None, 'result_double': None}] Qualite : 0.058911077905909354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21353310 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21353310%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21353310 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353322, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21353310 and dashboard_run_id = 1671951 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`=21353310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408573, 0.058911077905909354, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353311, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353313, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353319, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353322, 'pht': 3726}, 'url_report': ''}") 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 = 21353763 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': 2662887, 'mtr_portfolio_id': 21353763, 'created_at': datetime.datetime(2025, 3, 12, 15, 51), 'result': '0.05743048668795151', 'result_long': None, 'result_double': None}] Qualite : 0.05743048668795151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21353763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21353763_12-03-2025_15_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21353763 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_P21353763_12-03-2025_15_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353799, 'pht': 3726}}" where mtr_portfolio_id = 21353763 and dashboard_run_id = 1671951 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`=21353763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408574, 0.05743048668795151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21353763_12-03-2025_15_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21353788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21353789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21353790, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21353791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21353792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21353793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21353794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21353795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21353796, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21353797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21353798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21353799, '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 = 21354833 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': 2662992, 'mtr_portfolio_id': 21354833, 'created_at': datetime.datetime(2025, 3, 12, 16, 5), 'result': '0.06673023488297455', 'result_long': None, 'result_double': None}] Qualite : 0.06673023488297455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21354833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21354833_12-03-2025_15_51_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21354833 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_P21354833_12-03-2025_15_51_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21354918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21354919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21354920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21354921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21354922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21354923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21354924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21354925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21354926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21354927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21354928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21354929, 'pht': 3726}}" where mtr_portfolio_id = 21354833 and dashboard_run_id = 1671951 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`=21354833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408575, 0.06673023488297455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21354833_12-03-2025_15_51_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21354918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21354919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21354920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21354921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21354922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21354923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21354924, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21354925, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21354926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21354927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21354928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21354929, '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 = 21355531 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': 2663060, 'mtr_portfolio_id': 21355531, 'created_at': datetime.datetime(2025, 3, 12, 16, 25), 'result': '0.060908375998419785', 'result_long': None, 'result_double': None}] Qualite : 0.060908375998419785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21355531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21355531_12-03-2025_16_07_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21355531 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_P21355531_12-03-2025_16_07_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21355605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21355606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21355607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21355608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21355609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21355610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21355611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21355612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21355613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21355614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21355615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21355616, 'pht': 3726}}" where mtr_portfolio_id = 21355531 and dashboard_run_id = 1671951 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`=21355531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408576, 0.060908375998419785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21355531_12-03-2025_16_07_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21355605, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21355606, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21355607, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21355608, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21355609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21355610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21355611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21355612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21355613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21355614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21355615, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21355616, '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 = 21357923 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': 2663192, 'mtr_portfolio_id': 21357923, 'created_at': datetime.datetime(2025, 3, 12, 17, 5, 58), 'result': '0.0654711378337374', 'result_long': None, 'result_double': None}] Qualite : 0.0654711378337374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21357923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21357923_12-03-2025_16_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21357923 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_P21357923_12-03-2025_16_53_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21357957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21357958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21357959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21357960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21357961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21357962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21357963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21357964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21357965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21357966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21357967, 'pht': 3726}}" where mtr_portfolio_id = 21357923 and dashboard_run_id = 1671951 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`=21357923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408577, 0.0654711378337374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21357923_12-03-2025_16_53_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21357956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21357957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21357958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21357959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21357960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21357961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21357962, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21357963, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21357964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21357965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21357966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21357967, '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 = 21358714 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': 2663257, 'mtr_portfolio_id': 21358714, 'created_at': datetime.datetime(2025, 3, 12, 17, 19, 30), 'result': '0.07752710119633743', 'result_long': None, 'result_double': None}] Qualite : 0.07752710119633743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21358714 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21358714%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21358714 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21358720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21358721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21358722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21358723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21358724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21358725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21358726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21358727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21358728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21358729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21358730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21358731, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21358714 and dashboard_run_id = 1671951 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`=21358714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408578, 0.07752710119633743, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21358720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21358721, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21358722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21358723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21358724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21358725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21358726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21358727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21358728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21358729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21358730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21358731, 'pht': 3726}, 'url_report': ''}") 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 = 21359336 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': 2663282, 'mtr_portfolio_id': 21359336, 'created_at': datetime.datetime(2025, 3, 12, 18, 5, 59), 'result': '0.06281527506780735', 'result_long': None, 'result_double': None}] Qualite : 0.06281527506780735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21359336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21359336_12-03-2025_17_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21359336 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_P21359336_12-03-2025_17_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21359429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21359430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21359431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21359432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21359433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21359434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21359435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21359436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21359437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21359438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21359439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21359440, 'pht': 3726}}" where mtr_portfolio_id = 21359336 and dashboard_run_id = 1671951 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`=21359336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408579, 0.06281527506780735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21359336_12-03-2025_17_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21359429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21359430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21359431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21359432, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21359433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21359434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21359435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21359436, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21359437, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21359438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21359439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21359440, '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 = 21362461 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': 2663455, 'mtr_portfolio_id': 21362461, 'created_at': datetime.datetime(2025, 3, 12, 18, 24, 32), 'result': '0.0716937135306196', 'result_long': None, 'result_double': None}] Qualite : 0.0716937135306196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21362461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21362461_12-03-2025_18_24_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21362461 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_P21362461_12-03-2025_18_24_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21362484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21362486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21362487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21362489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21362490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21362492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21362493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21362494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21362496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21362497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21362498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21362500, 'pht': 3726}}" where mtr_portfolio_id = 21362461 and dashboard_run_id = 1671951 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`=21362461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408580, 0.0716937135306196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21362461_12-03-2025_18_24_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21362484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21362486, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21362487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21362489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21362490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21362492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21362493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21362494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21362496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21362497, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21362498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21362500, '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 = 21365035 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 = 21365035 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365035 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21365035%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365036, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365043, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365047, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21365035 and dashboard_run_id = 1671951 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 = 21365113 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 = 21365113 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365113 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21365113%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365113 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365117, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365121, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365123, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365125, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21365113 and dashboard_run_id = 1671951 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 = 21365273 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 = 21365273 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365273 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21365273%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365273 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365309, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365314, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365320, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21365273 and dashboard_run_id = 1671951 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 = 21365275 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 = 21365275 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365275 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21365275%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365281, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365292, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21365275 and dashboard_run_id = 1671951 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 = 21365400 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': 2663923, 'mtr_portfolio_id': 21365400, 'created_at': datetime.datetime(2025, 3, 13, 0, 1, 58), 'result': '0.08337135804634062', 'result_long': None, 'result_double': None}] Qualite : 0.08337135804634062 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365400_13-03-2025_00_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365400 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365418, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365400_13-03-2025_00_02_00.pdf'}" where mtr_portfolio_id = 21365400 and dashboard_run_id = 1671951 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`=21365400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408585, 0.08337135804634062, "{'max_time_prod_two_photos': 0, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365407, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365413, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365416, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365418, 'pht': 3726}, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365400_13-03-2025_00_02_00.pdf'}") 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 = 21365522 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 = 21365522 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 = 21365522 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21365522 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 = 21365522 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365522_12-03-2025_21_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365522 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_P21365522_12-03-2025_21_17_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365531, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365534, 'pht': 3726}}" where mtr_portfolio_id = 21365522 and dashboard_run_id = 1671951 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 = 21365670 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 = 21365670 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365670 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21365670%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365670 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365673, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365677, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365682, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21365670 and dashboard_run_id = 1671951 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 = 21365713 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': 2664196, 'mtr_portfolio_id': 21365713, 'created_at': datetime.datetime(2025, 3, 12, 21, 19, 57), 'result': '0.120840046035653', 'result_long': None, 'result_double': None}] Qualite : 0.120840046035653 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21365713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365713_12-03-2025_21_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21365713 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_P21365713_12-03-2025_21_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365725, 'pht': 3726}}" where mtr_portfolio_id = 21365713 and dashboard_run_id = 1671951 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`=21365713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408588, 0.120840046035653, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21365713_12-03-2025_21_19_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21365714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21365715, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21365716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21365717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21365718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21365719, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21365720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21365721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21365722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21365723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21365724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21365725, '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 = 21367623 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': 2664382, 'mtr_portfolio_id': 21367623, 'created_at': datetime.datetime(2025, 3, 12, 22, 17, 32), 'result': '0.04635870134024752', 'result_long': None, 'result_double': None}] Qualite : 0.04635870134024752 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21367623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21367623_12-03-2025_22_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21367623 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_P21367623_12-03-2025_22_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21367625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21367626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21367627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21367628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21367629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21367630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21367631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21367632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21367633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21367634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21367635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21367636, 'pht': 3726}}" where mtr_portfolio_id = 21367623 and dashboard_run_id = 1671951 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`=21367623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408589, 0.04635870134024752, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21367623_12-03-2025_22_17_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21367625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21367626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21367627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21367628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21367629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21367630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21367631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21367632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21367633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21367634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21367635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21367636, '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 = 21368576 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': 2664403, 'mtr_portfolio_id': 21368576, 'created_at': datetime.datetime(2025, 3, 12, 22, 44, 34), 'result': '0.0487645087584702', 'result_long': None, 'result_double': None}] Qualite : 0.0487645087584702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21368576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21368576_12-03-2025_22_44_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21368576 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_P21368576_12-03-2025_22_44_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21368613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21368614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21368615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21368616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21368617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21368618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21368619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21368620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21368621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21368622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21368623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21368624, 'pht': 3726}}" where mtr_portfolio_id = 21368576 and dashboard_run_id = 1671951 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`=21368576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408590, 0.0487645087584702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21368576_12-03-2025_22_44_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21368613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21368614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21368615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21368616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21368617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21368618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21368619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21368620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21368621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21368622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21368623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21368624, '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 = 21369933 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': 2664483, 'mtr_portfolio_id': 21369933, 'created_at': datetime.datetime(2025, 3, 12, 23, 33, 33), 'result': '0.1261084035337976', 'result_long': None, 'result_double': None}] Qualite : 0.1261084035337976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21369933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21369933_12-03-2025_23_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21369933 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_P21369933_12-03-2025_23_33_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21369958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21369959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21369960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21369961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21369962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21369963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21369964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21369965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21369966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21369967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21369968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21369969, 'pht': 3726}}" where mtr_portfolio_id = 21369933 and dashboard_run_id = 1671951 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`=21369933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408591, 0.1261084035337976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21369933_12-03-2025_23_33_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21369958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21369959, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21369960, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21369961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21369962, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21369963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21369964, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21369965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21369966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21369967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21369968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21369969, '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 = 21370148 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': 2664507, 'mtr_portfolio_id': 21370148, 'created_at': datetime.datetime(2025, 3, 12, 23, 48, 1), 'result': '0.06476508977629683', 'result_long': None, 'result_double': None}] Qualite : 0.06476508977629683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21370148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21370148_12-03-2025_23_48_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21370148 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_P21370148_12-03-2025_23_48_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21370149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21370150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21370151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21370152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21370153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21370154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21370155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21370156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21370157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21370158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21370159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21370160, 'pht': 3726}}" where mtr_portfolio_id = 21370148 and dashboard_run_id = 1671951 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`=21370148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9408592, 0.06476508977629683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21370148_12-03-2025_23_48_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21370149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21370150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21370151, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21370152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21370153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21370154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21370155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21370156, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21370157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21370158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21370159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21370160, '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 (21319746,21320320,21320594,21321194,21321951,21322455,21323087,21323564,21324044,21324538,21325059,21325713,21326309,21326595,21327104,21327624,21328160,21328927,21329339,21329766,21330052,21330390,21330953,21331343,21331770,21332333,21332849,21333933,21334302,21335008,21335752,21336640,21337307,21338731,21339305,21339774,21340563,21340957,21341651,21342896,21343529,21344044,21344908,21345643,21347428,21348262,21348399,21349274,21350003,21350916,21351663,21352402,21353310,21353763,21354833,21355531,21357923,21358714,21359336,21362461,21365035,21365113,21365273,21365275,21365400,21365522,21365670,21365713,21367623,21368576,21369933,21370148) result : ((1343263052,), (1343263079,), (1343263460,), (1343263488,), (1343263522,), (1343263540,), (1343263757,), (1343263759,), (1343263765,), (1343263779,), (1343263810,), (1343263844,), (1343263964,), (1343263980,), (1343263987,), (1343263998,), (1343264011,), (1343264107,), (1343264109,), (1343264112,), (1343264114,), (1343264117,), (1343264265,), (1343264285,), (1343264405,), (1343264408,), (1343264411,), (1343264414,), (1343264418,), (1343264555,), (1343264583,), (1343264599,), (1343264610,), (1343264619,), (1343264625,), (1343264810,), (1343264814,), (1343264819,), (1343265123,), (1343266589,), (1343266801,), (1343266825,), (1343266829,), (1343266833,), (1343266837,), (1343266960,), (1343266986,), (1343266989,), (1343266995,), (1343267244,), (1343267259,), (1343267284,), (1343267312,), (1343267384,), (1343267454,), (1343267477,), (1343267499,), (1343267710,), (1343267754,), (1343267825,), (1343267842,), (1343267860,), (1343267869,), (1343267941,), (1343267954,), (1343267970,), (1343267983,), (1343268012,), (1343268024,), (1343268333,), (1343268372,), (1343268398,), (1343268402,), (1343268793,), (1343268842,), (1343268861,), (1343269085,), (1343269093,), (1343269110,), (1343269159,), (1343269261,), (1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,), (1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,), (1343277699,), (1343277700,), (1343277701,), (1343277890,), (1343277904,), (1343278034,), (1343278040,), (1343278070,), (1343278073,), (1343278075,), (1343278097,), (1343278099,), (1343278202,), (1343278212,), (1343278232,), (1343278237,), (1343278312,), (1343278327,), (1343278355,), (1343278383,), (1343278404,), (1343278732,), (1343278735,), (1343278757,), (1343278898,), (1343278910,), (1343278922,), (1343278925,), (1343278928,), (1343279134,), (1343279161,), (1343279186,), (1343279229,), (1343279232,), (1343279236,), (1343279241,), (1343279252,), (1343279289,), (1343279294,), (1343279307,), (1343279310,), (1343279334,), (1343279338,), (1343279342,), (1343279345,), (1343279459,), (1343279463,), (1343279467,), (1343279475,), (1343279567,), (1343279555,), (1343279679,), (1343279696,), (1343279706,), (1343279736,), (1343279940,), (1343279957,), (1343279975,), (1343279981,), (1343280046,), (1343280049,), (1343280052,), (1343280054,), (1343280196,), (1343280219,), (1343280247,), (1343280265,), (1343280358,), (1343280377,), (1343280387,), (1343280504,), (1343280525,), (1343280531,), (1343280631,), (1343280637,), (1343280641,), (1343280721,), (1343280725,), (1343280758,), (1343280762,), (1343280766,), (1343280770,), (1343280774,), (1343280799,), (1343280804,), (1343280844,), (1343280849,), (1343280854,), (1343280926,), (1343280935,), (1343280939,), (1343280952,), (1343280980,), (1343281809,), (1343281813,), (1343281818,), (1343281847,), (1343281858,), (1343281860,), (1343281864,), (1343281866,), (1343282056,), (1343282017,), (1343282045,), (1343282149,), (1343282234,), (1343282237,), (1343282240,), (1343282250,), (1343282264,), (1343282328,), (1343282346,), (1343282367,), (1343282372,), (1343282563,), (1343282587,), (1343282611,), (1343282627,), (1343282856,), (1343282879,), (1343282915,), (1343283329,), (1343283807,), (1343284169,), (1343284196,), (1343284230,), (1343284353,), (1343284356,), (1343284390,), (1343284601,), (1343284605,), (1343284608,), (1343284718,), (1343284753,), (1343284755,), (1343284767,), (1343284795,), (1343284798,), (1343284801,), (1343284817,), (1343284938,), (1343284942,), (1343284989,), (1343284993,), (1343284996,), (1343285035,), (1343285029,), (1343285032,), (1343285034,), (1343285085,), (1343285088,), (1343285095,), (1343285111,), (1343285115,), (1343285119,), (1343285132,), (1343285227,), (1343285260,), (1343285271,), (1343285296,), (1343285346,), (1343285356,), (1343285365,), (1343285375,), (1343285469,), (1343285472,), (1343285476,), (1343285480,), (1343285521,), (1343285524,), (1343285674,), (1343285678,), (1343285681,), (1343285684,), (1343285685,), (1343285742,), (1343285744,), (1343285746,), (1343285748,), (1343285752,), (1343285788,), (1343285812,), (1343285828,), (1343285904,), (1343285908,), (1343285910,), (1343285912,), (1343285913,), (1343285965,), (1343285978,), (1343285997,), (1343286005,), (1343286007,), (1343286024,), (1343286028,), (1343286032,), (1343286062,), (1343286065,), (1343286069,), (1343286072,), (1343286105,), (1343286109,), (1343286113,), (1343286160,), (1343286155,), (1343286158,), (1343286205,), (1343286209,), (1343286212,), (1343286226,), (1343286295,), (1343286298,), (1343286302,), (1343286330,), (1343286349,), (1343286367,), (1343286384,), (1343286437,), (1343286549,), (1343286615,), (1343286624,), (1343286643,), (1343286646,), (1343286648,), (1343286668,), (1343286694,), (1343286728,), (1343286730,), (1343286735,), (1343286738,), (1343286974,), (1343287042,), (1343287049,), (1343287052,), (1343287055,), (1343287185,), (1343287215,), (1343287227,), (1343287230,), (1343287246,), (1343287259,), (1343287285,), (1343287288,), (1343287295,), (1343287297,), (1343287337,), (1343287339,), (1343287343,), (1343287353,), (1343287533,), (1343287538,), (1343287541,), (1343287546,), (1343287559,), (1343287650,), (1343287655,), (1343287665,), (1343287780,), (1343287783,), (1343287786,), (1343287788,), (1343287790,), (1343287791,), (1343287821,), (1343287824,), (1343287833,), (1343287835,), (1343287973,), (1343287931,), (1343287934,), (1343287946,), (1343287962,), (1343288103,), (1343288131,), (1343288167,), (1343288307,), (1343288314,), (1343288317,), (1343288320,), (1343288337,), (1343288339,), (1343288344,), (1343288349,), (1343288355,), (1343288362,), (1343288380,), (1343288382,), (1343288386,), (1343288451,), (1343288452,), (1343288509,), (1343288530,), (1343288538,), (1343288546,), (1343288615,), (1343288618,), (1343288632,), (1343288661,), (1343288874,), (1343288895,), (1343288947,), (1343289066,), (1343289086,), (1343289097,), (1343289196,), (1343289885,), (1343289905,), (1343289945,), (1343290445,), (1343290349,), (1343290389,), (1343290422,), (1343290686,), (1343290717,), (1343290759,), (1343290800,), (1343291027,), (1343291079,), (1343291106,), (1343291264,), (1343291287,), (1343291318,), (1343291333,), (1343291354,), (1343291375,), (1343291656,), (1343291767,), (1343291809,), (1343291838,), (1343291997,), (1343292068,), (1343292107,), (1343292116,), (1343292141,), (1343292156,), (1343292160,), (1343292170,), (1343292188,), (1343292263,), (1343292267,), (1343292272,), (1343292306,), (1343292311,), (1343292314,), (1343292321,), (1343292408,), (1343292438,), (1343292544,), (1343292548,), (1343292551,), (1343292554,), (1343292586,), (1343292616,), (1343292662,), (1343292704,), (1343292734,), (1343292862,), (1343292869,), (1343292881,), (1343292903,), (1343292920,), (1343292922,), (1343292925,), (1343292979,), (1343292983,), (1343293163,), (1343293077,), (1343293116,), (1343293140,), (1343293154,), (1343293157,), (1343293196,), (1343293222,), (1343293243,), (1343293245,), (1343293256,), (1343293288,), (1343293290,), (1343293294,), (1343293299,), (1343293337,), (1343293343,), (1343293345,), (1343293457,), (1343293463,), (1343293503,), (1343293506,), (1343293510,), (1343293578,), (1343293580,), (1343293592,), (1343293595,), (1343293617,), (1343293619,), (1343293624,), (1343293625,), (1343293644,), (1343293646,), (1343293650,), (1343293656,), (1343293659,), (1343293678,), (1343293681,), (1343293684,), (1343293713,), (1343293717,), (1343293721,), (1343293723,), (1343293725,), (1343293741,), (1343293745,), (1343293748,), (1343293750,), (1343293754,), (1343293756,), (1343293769,), (1343293773,), (1343293777,), (1343293788,), (1343293790,), (1343293840,), (1343293845,), (1343293848,), (1343293850,), (1343293873,), (1343293876,), (1343293878,), (1343293884,), (1343293950,), (1343293937,), (1343293945,), (1343293947,), (1343293978,), (1343293989,), (1343294004,), (1343294007,), (1343294041,), (1343294045,), (1343294050,), (1343294052,), (1343294095,), (1343294107,), (1343294127,), (1343294235,), (1343294543,), (1343294574,), (1343294578,), (1343294582,), (1343294690,), (1343294693,), (1343294694,), (1343294734,), (1343294737,), (1343294757,), (1343294759,), (1343294760,), (1343294783,), (1343294785,), (1343294787,), (1343294790,), (1343294792,), (1343294831,), (1343294835,), (1343294837,), (1343294882,), (1343294863,), (1343294868,), (1343294876,), (1343295048,), (1343295069,), (1343295075,), (1343295077,), (1343295079,), (1343295120,), (1343295124,), (1343295131,), (1343295154,), (1343295159,), (1343295164,), (1343295167,), (1343295186,), (1343295190,), (1343295200,), (1343295222,), (1343295226,), (1343295234,), (1343295238,), (1343295240,), (1343295288,), (1343295292,), (1343295295,), (1343295335,), (1343295339,), (1343295342,), (1343295346,), (1343295349,), (1343295366,), (1343295369,), (1343295374,), (1343295378,), (1343295410,), (1343295412,), (1343295414,), (1343295418,), (1343295441,), (1343295443,), (1343295451,), (1343295463,), (1343295482,), (1343295518,), (1343295524,), (1343295533,), (1343295535,), (1343295596,), (1343295598,), (1343295604,), (1343295626,), (1343295651,), (1343296305,), (1343296362,), (1343296424,), (1343296454,), (1343296526,), (1343296848,), (1343296763,), (1343296797,), (1343297140,), (1343297216,), (1343297218,), (1343297219,), (1343297241,), (1343297354,), (1343297356,), (1343297359,), (1343297362,), (1343297364,), (1343297389,), (1343297392,), (1343297403,), (1343297412,), (1343297414,), (1343297439,), (1343297441,), (1343297444,), (1343297471,), (1343297473,), (1343297475,), (1343297523,), (1343297527,), (1343297531,), (1343297534,), (1343297537,), (1343297623,), (1343297627,), (1343297629,), (1343297634,), (1343297753,), (1343297757,), (1343297810,), (1343297886,), (1343297934,), (1343297937,), (1343297939,), (1343297983,), (1343297991,), (1343297994,), (1343297997,), (1343298028,), (1343298034,), (1343298039,), (1343298049,), (1343298158,), (1343298164,), (1343298169,), (1343298174,), (1343298212,), (1343298287,), (1343298295,), (1343298304,), (1343298313,), (1343298352,), (1343298402,), (1343298445,), (1343298430,), (1343298437,), (1343298567,), (1343298575,), (1343298580,), (1343298587,), (1343298591,), (1343298609,), (1343298615,), (1343298620,), (1343298645,), (1343298652,), (1343298657,), (1343298660,), (1343298681,), (1343298690,), (1343298693,), (1343298697,), (1343298743,), (1343298745,), (1343298772,), (1343298776,), (1343298791,), (1343298793,), (1343298796,), (1343298876,), (1343298880,), (1343298885,), (1343298937,), (1343298965,), (1343298969,), (1343298985,), (1343299054,), (1343299117,), (1343299125,), (1343299184,), (1343299189,), (1343299195,), (1343299200,), (1343299248,), (1343299255,), (1343299259,), (1343299264,), (1343299329,), (1343299334,), (1343299340,), (1343299345,), (1343299382,), (1343299387,), (1343299393,), (1343299503,), (1343299569,), (1343299573,), (1343299576,), (1343299581,), (1343299598,), (1343299602,), (1343299613,), (1343299620,), (1343299706,), (1343299656,), (1343299661,), (1343299665,), (1343299669,), (1343299699,), (1343299761,), (1343299765,), (1343299769,), (1343299802,), (1343299807,), (1343299812,), (1343299864,), (1343299870,), (1343299879,), (1343299889,), (1343299894,), (1343299925,), (1343299932,), (1343299937,), (1343299943,), (1343300045,), (1343300070,), (1343300075,), (1343300100,), (1343300133,), (1343300138,), (1343300142,), (1343300213,), (1343300218,), (1343300230,), (1343300240,), (1343300277,), (1343300343,), (1343300349,), (1343300459,), (1343300461,), (1343300502,), (1343300513,), (1343300518,), (1343300523,), (1343300537,), (1343300562,), (1343300569,), (1343300588,), (1343303747,), (1343303743,), (1343304134,), (1343304172,), (1343304269,), (1343304272,), (1343304307,), (1343304309,), (1343304310,), (1343304313,), (1343304337,), (1343304340,), (1343304342,), (1343304344,), (1343304346,), (1343304395,), (1343304398,), (1343304433,), (1343304471,), (1343304474,), (1343304478,), (1343304506,), (1343304509,), (1343304513,), (1343304516,), (1343304518,), (1343304537,), (1343304547,), (1343304549,), (1343304555,), (1343304558,), (1343304563,), (1343304590,), (1343304594,), (1343304598,), (1343304603,), (1343304610,), (1343304622,), (1343304645,), (1343304649,), (1343304713,), (1343304717,), (1343304720,), (1343304723,), (1343304803,), (1343304772,), (1343304787,), (1343304790,), (1343304794,), (1343304798,), (1343304855,), (1343304863,), (1343304899,), (1343304903,), (1343304906,), (1343304909,), (1343304912,), (1343304913,), (1343304945,), (1343304948,), (1343304952,), (1343304956,), (1343304958,), (1343304961,), (1343305060,), (1343305067,), (1343305071,), (1343305077,), (1343305088,), (1343305095,), (1343305137,), (1343305138,), (1343305141,), (1343305180,), (1343305191,), (1343305198,), (1343305200,), (1343305208,), (1343305213,), (1343305261,), (1343305287,), (1343305289,), (1343305290,), (1343305325,), (1343305344,), (1343305346,), (1343305349,), (1343305350,), (1343305358,), (1343305381,), (1343305385,), (1343305390,), (1343305395,), (1343305398,), (1343305401,), (1343305421,), (1343305424,), (1343305426,), (1343305430,), (1343305471,), (1343305478,), (1343305481,), (1343305484,), (1343305486,), (1343305489,), (1343305509,), (1343305516,), (1343305522,), (1343305526,), (1343305530,), (1343305533,), (1343305596,), (1343305598,), (1343305602,), (1343305609,), (1343305611,), (1343305612,), (1343305638,), (1343305705,), (1343305697,), (1343305699,), (1343305702,), (1343305722,), (1343305728,), (1343305737,), (1343305742,), (1343305745,), (1343305774,), (1343305779,), (1343305787,), (1343305793,), (1343305827,), (1343305833,), (1343305918,), (1343305923,), (1343305926,), (1343305948,), (1343305954,), (1343305983,), (1343305987,), (1343305991,), (1343306038,), (1343306189,), (1343306242,), (1343306248,), (1343306496,), (1343306577,), (1343306580,), (1343306583,), (1343306606,), (1343306610,), (1343306614,), (1343306649,), (1343306653,), (1343306694,), (1343306677,), (1343306686,), (1343306767,), (1343306875,), (1343306880,), (1343306884,), (1343306889,), (1343306893,), (1343306913,), (1343306918,), (1343306923,), (1343306927,), (1343306951,), (1343306954,), (1343306981,), (1343307040,), (1343307046,), (1343307177,), (1343307260,), (1343307264,), (1343307270,), (1343307323,), (1343307886,), (1343307947,), (1343308013,), (1343308089,), (1343308937,), (1343308862,), (1343309181,), (1343309208,), (1343309263,), (1343309282,), (1343309296,), (1343309324,), (1343309480,), (1343309507,), (1343309536,), (1343309543,), (1343309550,), (1343309553,), (1343309724,), (1343309744,), (1343309753,), (1343309965,), (1343309969,), (1343309971,), (1343309974,), (1343309976,), (1343309981,), (1343310001,), (1343310005,), (1343310016,), (1343310020,), (1343310024,), (1343310028,), (1343310123,), (1343310127,), (1343310130,), (1343310157,), (1343310159,), (1343310162,), (1343310213,), (1343310216,), (1343310219,), (1343310222,), (1343310223,), (1343310226,), (1343310246,), (1343310267,), (1343310276,), (1343310291,), (1343310295,), (1343310301,), (1343310368,), (1343310374,), (1343310380,), (1343310403,), (1343310409,), (1343310414,), (1343310421,), (1343310426,), (1343310428,), (1343310465,), (1343310473,), (1343310479,), (1343310484,), (1343310501,), (1343310507,), (1343310514,), (1343310558,), (1343310649,), (1343310627,), (1343310637,), (1343310641,), (1343310679,), (1343310686,), (1343310692,), (1343310736,), (1343310742,), (1343310751,), (1343310756,), (1343310846,), (1343310850,), (1343310853,), (1343310914,), (1343310918,), (1343310935,), (1343310944,), (1343310949,), (1343310986,), (1343310989,), (1343311016,), (1343311020,), (1343311025,), (1343311027,), (1343311033,), (1343311036,), (1343311061,), (1343311067,), (1343311069,), (1343311074,), (1343311096,), (1343311101,), (1343311107,), (1343311153,), (1343311159,), (1343311163,), (1343311168,), (1343311172,), (1343311175,), (1343311197,), (1343311206,), (1343311211,), (1343311215,), (1343311219,), (1343311221,), (1343311238,), (1343311243,), (1343311248,), (1343311253,), (1343311274,), (1343311278,), (1343311283,), (1343311288,), (1343311296,), (1343311327,), (1343311382,), (1343311395,), (1343311404,), (1343311406,), (1343311408,), (1343311417,), (1343311489,), (1343311493,), (1343311498,), (1343311566,), (1343311553,), (1343311557,), (1343311561,), (1343311564,), (1343311589,), (1343311593,), (1343311597,), (1343311600,), (1343311603,), (1343311607,), (1343311642,), (1343311662,), (1343311668,), (1343311673,), (1343311741,), (1343311745,), (1343311750,), (1343311755,), (1343311759,), (1343311777,), (1343311781,), (1343311786,), (1343311789,), (1343311794,), (1343311818,), (1343311826,), (1343311830,), (1343311834,), (1343311864,), (1343311891,), (1343311898,), (1343311903,), (1343311906,), (1343312051,), (1343312058,), (1343312079,), (1343312082,), (1343312105,), (1343312111,), (1343312117,), (1343312149,), (1343312159,), (1343312172,), (1343312175,), (1343312217,), (1343312222,), (1343312227,), (1343312230,), (1343312258,), (1343312261,), (1343312264,), (1343312266,), (1343312275,), (1343312284,), (1343312310,), (1343312313,), (1343312317,), (1343312346,), (1343312350,), (1343312354,), (1343312359,), (1343312364,), (1343312367,), (1343312407,), (1343312409,), (1343312414,), (1343312417,), (1343312422,), (1343312479,), (1343312439,), (1343312446,), (1343312459,), (1343312476,), (1343312478,), (1343312521,), (1343312544,), (1343312550,), (1343312578,), (1343312584,), (1343312594,), (1343312604,), (1343312789,), (1343312796,), (1343312801,), (1343312828,), (1343312833,), (1343312837,), (1343312841,), (1343312867,), (1343312870,), (1343312876,), (1343312881,), (1343312928,), (1343312932,), (1343312938,), (1343312974,), (1343312978,), (1343312983,), (1343312988,), (1343313010,), (1343313019,), (1343313023,), (1343313029,), (1343313072,), (1343313076,), (1343313080,), (1343313084,), (1343313088,), (1343313108,), (1343313113,), (1343313118,), (1343313122,), (1343313248,), (1343313351,), (1343313354,), (1343313741,), (1343313761,), (1343313787,), (1343313789,), (1343313792,), (1343313912,), (1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,), (1343315764,), (1343315770,), (1343315786,), (1343315791,), (1343315794,), (1343315804,), (1343315816,), (1343315839,), (1343315846,), (1343315856,), (1343315863,), (1343315864,), (1343315870,), (1343315871,), (1343315875,), (1343315880,), (1343315883,), (1343315888,), (1343315890,), (1343315894,), (1343315899,), (1343315902,), (1343315938,), (1343315945,), (1343315951,), (1343315984,), (1343315986,), (1343315988,), (1343315991,), (1343316005,), (1343316014,), (1343316018,), (1343316027,), (1343316032,), (1343316037,), (1343316075,), (1343316080,), (1343316086,), (1343316091,), (1343316098,), (1343316105,), (1343316188,), (1343316192,), (1343315920,), (1343315927,), (1343315931,), (1343315975,), (1343315980,), (1343316048,), (1343316050,), (1343316052,), (1343316055,), (1343316060,), (1343316065,), (1343316116,), (1343316119,), (1343316121,), (1343316123,), (1343316126,), (1343316129,), (1343316153,), (1343316160,), (1343316168,), (1343316186,), (1343316215,), (1343316223,), (1343316230,), (1343316240,), (1343316266,), (1343316279,), (1343316310,), (1343316318,), (1343316340,), (1343316492,), (1343316534,), (1343316538,), (1343316589,), (1343316595,), (1343316600,), (1343316790,), (1343316831,), (1343316842,), (1343316856,), (1343317043,), (1343317058,), (1343317065,), (1343317071,), (1343317076,), (1343317081,), (1343317170,), (1343317181,), (1343317193,), (1343317201,), (1343317328,), (1343317337,), (1343317345,), (1343317397,), (1343317409,), (1343317417,), (1343317431,), (1343317446,), (1343317592,), (1343317601,), (1343317607,), (1343317612,), (1343317619,), (1343317674,), (1343317664,), (1343317669,), (1343317785,), (1343317794,), (1343317797,), (1343317851,), (1343317859,), (1343317873,), (1343317879,), (1343318175,), (1343318186,), (1343318194,), (1343318197,), (1343318314,), (1343318321,), (1343318332,), (1343318339,), (1343318441,), (1343318447,), (1343318451,), (1343318514,), (1343318526,), (1343318537,), (1343318568,), (1343318572,), (1343318575,), (1343318595,), (1343318599,), (1343318605,), (1343318613,), (1343318620,), (1343318630,), (1343318789,), (1343318819,), (1343318840,), (1343318907,), (1343318914,), (1343318921,), (1343318925,), (1343318929,), (1343318999,), (1343319005,), (1343319013,), (1343319053,), (1343319060,), (1343319394,), (1343319399,), (1343319618,), (1343319595,), (1343319600,), (1343319608,), (1343319882,), (1343319890,), (1343319929,), (1343319934,), (1343319939,), (1343319943,), (1343320266,), (1343320310,), (1343320325,), (1343320336,), (1343320379,), (1343320387,), (1343320396,), (1343320533,), (1343320542,), (1343320549,), (1343320554,), (1343320556,), (1343320607,), (1343320617,), (1343320656,), (1343320739,), (1343320744,), (1343320749,), (1343320953,), (1343320962,), (1343320970,), (1343320980,), (1343321107,), (1343321113,), (1343321125,), (1343321135,), (1343321157,), (1343321293,), (1343321297,), (1343321303,), (1343321307,), (1343321357,), (1343321363,), (1343321384,), (1343321406,), (1343321590,), (1343321598,), (1343321604,), (1343321607,), (1343321611,), (1343322414,), (1343322446,), (1343322497,), (1343322556,), (1343322586,), (1343322843,), (1343322838,), (1343323038,), (1343323065,), (1343323101,), (1343323230,), (1343323236,), (1343323240,), (1343323254,), (1343323309,), (1343323417,), (1343323486,), (1343323497,), (1343323526,), (1343323541,), (1343323609,), (1343323616,), (1343323623,), (1343323627,), (1343323810,), (1343323827,), (1343323853,), (1343323858,), (1343323959,), (1343323977,), (1343324087,), (1343324130,), (1343324144,), (1343324360,), (1343324376,), (1343324381,), (1343324394,), (1343324470,), (1343324478,), (1343324484,), (1343324489,), (1343324494,), (1343324537,), (1343324544,), (1343324549,), (1343324557,), (1343324662,), (1343324668,), (1343324674,), (1343324734,), (1343324744,), (1343324752,), (1343324777,), (1343324806,), (1343325117,), (1343325131,), (1343325149,), (1343325165,), (1343325175,), (1343325202,), (1343325208,), (1343325271,), (1343325276,), (1343325280,), (1343325286,), (1343325291,), (1343325324,), (1343325315,), (1343325320,), (1343325399,), (1343325439,), (1343325480,), (1343325486,), (1343325628,), (1343325635,), (1343325639,), (1343325743,), (1343325785,), (1343325998,), (1343326006,), (1343326042,), (1343326062,), (1343326102,), (1343326110,), (1343326130,), (1343326144,), (1343326191,), (1343326197,), (1343326204,), (1343326214,), (1343326217,), (1343326348,), (1343326377,), (1343326384,), (1343326515,), (1343326521,), (1343326530,), (1343326606,), (1343326612,), (1343326625,), (1343326631,), (1343326633,), (1343326659,), (1343326668,), (1343326675,), (1343326708,), (1343326714,), (1343326722,), (1343326840,), (1343326848,), (1343326856,), (1343326864,), (1343327065,), (1343327072,), (1343327077,), (1343327118,), (1343327127,), (1343327133,), (1343327292,), (1343327269,), (1343327274,), (1343327277,), (1343327283,), (1343327342,), (1343327355,), (1343327361,), (1343327532,), (1343327536,), (1343327541,), (1343327549,), (1343327553,), (1343327591,), (1343327594,), (1343327596,), (1343327604,), (1343327608,), (1343327651,), (1343327655,), (1343327660,), (1343327663,), (1343327684,), (1343327816,), (1343327831,), (1343327991,), (1343328004,), (1343328012,), (1343328014,), (1343328079,), (1343328082,), (1343328118,), (1343328139,), (1343328160,), (1343328171,), (1343328191,), (1343328195,), (1343328199,), (1343328201,), (1343328456,), (1343328476,), (1343328491,), (1343328560,), (1343328570,), (1343328585,), (1343328589,), (1343328593,), (1343328624,), (1343328638,), (1343328643,), (1343328648,), (1343328697,), (1343328703,), (1343328707,), (1343328765,), (1343329206,), (1343329233,), (1343329244,), (1343329260,), (1343329261,), (1343329264,), (1343329497,), (1343329545,), (1343329579,), (1343329675,), (1343329650,), (1343329663,), (1343329671,), (1343329825,), (1343329832,), (1343329846,), (1343329857,), (1343329991,), (1343329999,), (1343330053,), (1343330059,), (1343330227,), (1343330238,), (1343330614,), (1343330618,), (1343330627,), (1343330665,), (1343330670,), (1343330675,), (1343330680,), (1343330684,), (1343330686,), (1343330711,), (1343330716,), (1343330721,), (1343330812,), (1343330823,), (1343330845,), (1343330860,), (1343330870,), (1343330892,), (1343330913,), (1343330920,), (1343331014,), (1343331019,), (1343331023,), (1343331026,), (1343331053,), (1343331057,), (1343331061,), (1343331065,), (1343331365,), (1343331445,), (1343331546,), (1343332050,), (1343332055,), (1343332073,), (1343332089,), (1343332125,), (1343332983,), (1343333020,), (1343333066,), (1343333135,), (1343333184,), (1343333315,), (1343333347,), (1343333391,), (1343336987,), (1343339476,), (1343339536,), (1343339564,), (1343339637,), (1343339642,), (1343339799,), (1343339801,), (1343339854,), (1343339859,), (1343339863,), (1343339866,), (1343339905,), (1343339909,), (1343339912,), (1343339915,), (1343339973,), (1343339978,), (1343339982,), (1343339984,), (1343340138,), (1343340140,), (1343340143,), (1343340148,), (1343340460,), (1343340464,), (1343340473,), (1343340607,), (1343340611,), (1343340628,), (1343340638,), (1343340642,), (1343340644,), (1343340695,), (1343340705,), (1343340706,), (1343340709,), (1343340715,), (1343340720,), (1343340752,), (1343340755,), (1343340759,), (1343340851,), (1343340856,), (1343340865,), (1343340870,), (1343340874,), (1343340904,), (1343340909,), (1343340912,), (1343340914,), (1343340916,), (1343340984,), (1343341001,), (1343341022,), (1343341033,), (1343341056,), (1343341252,), (1343341194,), (1343341217,), (1343341235,), (1343341410,), (1343341416,), (1343341420,), (1343341430,), (1343341434,), (1343341439,), (1343341484,), (1343341487,), (1343341492,), (1343341531,), (1343341535,), (1343341538,), (1343341542,), (1343341545,), (1343341557,), (1343341577,), (1343341582,), (1343341586,), (1343341592,), (1343341595,), (1343341599,), (1343341627,), (1343341632,), (1343341648,), (1343341655,), (1343341738,), (1343341742,), (1343341747,), (1343341750,), (1343341756,), (1343341794,), (1343341806,), (1343341812,), (1343341818,), (1343341835,), (1343341856,), (1343341870,), (1343341884,), (1343342087,), (1343342120,), (1343342141,), (1343342168,), (1343342175,), (1343342235,), (1343342246,), (1343342256,), (1343342267,), (1343342270,), (1343342413,), (1343342421,), (1343342426,), (1343342431,), (1343342449,), (1343342479,), (1343342711,), (1343342758,), (1343342791,), (1343342832,), (1343342910,), (1343343628,), (1343343670,), (1343343736,), (1343343770,), (1343343806,), (1343343827,), (1343343929,), (1343343955,), (1343343982,), (1343344035,), (1343344163,), (1343344144,), (1343344148,), (1343344152,), (1343344155,), (1343344157,), (1343344334,), (1343344342,), (1343344366,), (1343344454,), (1343344710,), (1343344752,), (1343344782,), (1343344806,), (1343344827,), (1343344849,), (1343345037,), (1343345058,), (1343345081,), (1343345107,), (1343345380,), (1343345388,), (1343345413,), (1343345441,), (1343345472,), (1343345479,), (1343345664,), (1343345669,), (1343345675,), (1343345859,), (1343345883,), (1343345909,), (1343345937,), (1343345951,), (1343345955,), (1343345979,), (1343345996,), (1343346001,), (1343346006,), (1343346014,), (1343346020,), (1343346300,), (1343346324,), (1343346336,), (1343346349,), (1343346505,), (1343346511,), (1343346558,), (1343346565,), (1343346569,), (1343346574,), (1343346631,), (1343346644,), (1343346649,), (1343346654,), (1343346892,), (1343346930,), (1343346946,), (1343346973,), (1343346998,), (1343347024,), (1343347245,), (1343347270,), (1343347380,), (1343347412,), (1343347438,), (1343347592,), (1343347596,), (1343347609,), (1343347634,), (1343349243,), (1343348449,), (1343349232,), (1343349237,), (1343349452,), (1343349460,), (1343349461,), (1343349465,), (1343349469,), (1343349474,), (1343349509,), (1343349514,), (1343349519,), (1343349524,), (1343349562,), (1343349567,), (1343349573,), (1343349577,), (1343349582,), (1343349585,), (1343349753,), (1343349786,), (1343349803,), (1343349836,), (1343350063,), (1343350078,), (1343350097,), (1343350166,), (1343350175,), (1343350191,), (1343350319,), (1343350324,), (1343350330,), (1343350333,), (1343350392,), (1343350366,), (1343350372,), (1343350378,), (1343350383,), (1343350388,), (1343350437,), (1343350447,), (1343350453,), (1343350479,), (1343350595,), (1343350604,), (1343350608,), (1343350614,), (1343350617,), (1343350623,), (1343350666,), (1343350670,), (1343350676,), (1343350679,), (1343350736,), (1343350753,), (1343350761,), (1343350767,), (1343350770,), (1343350841,), (1343350847,), (1343350855,), (1343350858,), (1343350863,), (1343350871,), (1343351118,), (1343351193,), (1343351229,), (1343351252,), (1343351350,), (1343351431,), (1343351437,), (1343351453,), (1343351463,), (1343351513,), (1343351518,), (1343351534,), (1343351551,), (1343351564,), (1343351639,), (1343351676,), (1343351688,), (1343351713,), (1343351896,), (1343351909,), (1343351918,), (1343351926,), (1343351932,), (1343351938,), (1343351969,), (1343352004,), (1343352028,), (1343352059,), (1343352083,), (1343352086,), (1343352128,), (1343352134,), (1343352138,), (1343352209,), (1343352246,), (1343352251,), (1343352257,), (1343352264,), (1343352277,), (1343352308,), (1343352313,), (1343352331,), (1343352499,), (1343352421,), (1343352426,), (1343352442,), (1343352456,), (1343352480,), (1343352691,), (1343352700,), (1343352717,), (1343352744,), (1343352805,), (1343352873,), (1343352877,), (1343352884,), (1343352939,), (1343352948,), (1343353618,), (1343353649,), (1343353656,), (1343353841,), (1343353893,), (1343353936,), (1343353958,), (1343354213,), (1343354216,), (1343354224,), (1343354273,), (1343360736,), (1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,), (1343365846,), (1343365875,), (1343365899,), (1343366077,), (1343366102,), (1343366131,), (1343366363,), (1343366424,), (1343366473,), (1343366565,), (1343366695,), (1343366737,), (1343366868,), (1343366873,), (1343366879,), (1343366884,), (1343366897,), (1343367086,), (1343367092,), (1343367102,), (1343367121,), (1343367127,), (1343367195,), (1343367224,), (1343367419,), (1343367446,), (1343367470,), (1343367506,), (1343367533,), (1343367779,), (1343367809,), (1343367827,), (1343367861,), (1343367881,), (1343368094,), (1343368125,), (1343368167,), (1343368429,), (1343368431,), (1343368434,), (1343368450,), (1343368452,), (1343368525,), (1343368536,), (1343368539,), (1343368541,), (1343368543,), (1343368559,), (1343368719,), (1343368738,), (1343368757,), (1343368780,), (1343369776,), (1343369823,), (1343369881,), (1343369958,), (1343370463,), (1343370374,), (1343370413,), (1343370431,), (1343370912,), (1343370986,), (1343371561,), (1343371576,), (1343371607,), (1343371624,), (1343371866,), (1343371894,), (1343371920,), (1343371964,), (1343372028,), (1343372071,), (1343372332,), (1343372380,), (1343372473,), (1343372709,), (1343372758,), (1343372788,), (1343372817,), (1343372840,), (1343373022,), (1343373091,), (1343373094,), (1343373103,), (1343373147,), (1343373171,), (1343373246,), (1343373292,), (1343373337,), (1343373607,), (1343373659,), (1343373816,), (1343373922,), (1343373974,), (1343373981,), (1343374002,), (1343374007,), (1343374093,), (1343374121,), (1343374147,), (1343374168,), (1343374208,), (1343374236,), (1343374324,), (1343374348,), (1343374373,), (1343374397,), (1343374428,), (1343374435,), (1343374528,), (1343374548,), (1343374711,), (1343374727,), (1343374741,), (1343374778,), (1343375117,), (1343375140,), (1343375171,), (1343375202,), (1343375273,), (1343375258,), (1343375261,), (1343375267,), (1343375270,), (1343375408,), (1343375442,), (1343375453,), (1343375649,), (1343375668,), (1343375704,), (1343375750,), (1343375806,), (1343375843,), (1343376136,), (1343376172,), (1343376197,), (1343376233,), (1343376266,), (1343376303,), (1343376650,), (1343376697,), (1343376736,), (1343377022,), (1343377042,), (1343377057,), (1343377076,), (1343377103,), (1343377461,), (1343377513,), (1343377560,), (1343377599,), (1343377643,), (1343377690,), (1343377983,), (1343378024,), (1343378115,), (1343378139,), (1343378178,), (1343378339,), (1343378404,), (1343378498,), (1343379273,), (1343379341,), (1343379347,), (1343379358,), (1343379378,), (1343379381,), (1343379449,), (1343379468,), (1343379489,), (1343379506,), (1343379524,), (1343379569,), (1343379881,), (1343379980,), (1343379995,), (1343380039,), (1343380411,), (1343380441,), (1343380479,), (1343381057,), (1343381087,), (1343381177,), (1343381273,), (1343381740,), (1343381794,), (1343381805,), (1343382121,), (1343382073,), (1343382094,), (1343382431,), (1343382459,), (1343382486,), (1343382499,), (1343382524,), (1343382547,), (1343382955,), (1343382983,), (1343383036,), (1343383052,), (1343383147,), (1343383162,), (1343383164,), (1343383167,), (1343383169,), (1343383202,), (1343383226,), (1343383250,), (1343383438,), (1343383449,), (1343383453,), (1343383467,), (1343383493,), (1343383496,), (1343383521,), (1343383526,), (1343383544,), (1343383568,), (1343383594,), (1343383792,), (1343383805,), (1343383826,), (1343383850,), (1343383887,), (1343384147,), (1343384156,), (1343384160,), (1343384163,), (1343384198,), (1343384220,), (1343384225,), (1343384249,), (1343384253,), (1343384824,), (1343389243,), (1343395110,), (1343395527,), (1343395531,), (1343395541,), (1343395559,), (1343395635,), (1343395884,), (1343395895,), (1343395899,), (1343395934,), (1343395938,), (1343395946,), (1343395950,), (1343395994,), (1343396011,), (1343396017,), (1343396022,), (1343396039,), (1343396070,), (1343396075,), (1343396102,), (1343396127,), (1343396258,), (1343396333,), (1343396409,), (1343396762,), (1343396767,), (1343396815,), (1343396901,), (1343397125,), (1343397152,), (1343397168,), (1343397173,), (1343397175,), (1343397176,), (1343397199,), (1343397203,), (1343397208,), (1343397410,), (1343397415,), (1343397420,), (1343397424,), (1343397428,), (1343397455,), (1343397462,), (1343397475,), (1343397480,), (1343397679,), (1343397707,), (1343397959,), (1343400951,), (1343400231,), (1343400823,), (1343400855,), (1343400878,), (1343400902,), (1343400928,), (1343401089,), (1343401341,), (1343401760,), (1343401782,), (1343401822,), (1343401856,), (1343401887,), (1343402109,), (1343402138,), (1343402162,), (1343402169,), (1343402188,), (1343402206,), (1343402391,), (1343402395,), (1343402401,), (1343402404,), (1343402407,), (1343402652,), (1343402692,), (1343402704,), (1343403103,), (1343402863,), (1343402867,), (1343402871,), (1343403051,), (1343403101,), (1343403375,), (1343403391,), (1343403424,), (1343403726,), (1343403732,), (1343403757,), (1343403780,), (1343403856,), (1343403879,), (1343404060,), (1343404085,), (1343404090,), (1343404094,), (1343404161,), (1343404167,), (1343404172,), (1343404176,), (1343404287,), (1343404291,), (1343404295,), (1343404297,), (1343404360,), (1343404394,), (1343404434,), (1343404461,), (1343404759,), (1343404780,), (1343404808,), (1343404906,), (1343404910,), (1343404914,), (1343404918,), (1343404957,), (1343404963,), (1343404969,), (1343404974,), (1343404998,), (1343405050,), (1343405068,), (1343405073,), (1343405076,), (1343405077,), (1343405210,), (1343405234,), (1343405250,), (1343405473,), (1343405479,), (1343405483,), (1343405488,), (1343405492,), (1343405494,), (1343405545,), (1343405552,), (1343405564,), (1343405568,), (1343405571,), (1343405587,), (1343405599,), (1343405624,), (1343405856,), (1343405729,), (1343405749,), (1343405779,), (1343405833,), (1343406151,), (1343406201,), (1343406241,), (1343406275,), (1343406300,), (1343406336,), (1343406529,), (1343406550,), (1343406568,), (1343406591,), (1343406607,), (1343406871,), (1343406877,), (1343406883,), (1343407127,), (1343407154,), (1343407187,), (1343407209,), (1343407910,), (1343407947,), (1343408123,), (1343408185,), (1343408506,), (1343408520,), (1343408533,), (1343408546,), (1343408550,), (1343408670,), (1343408673,), (1343408677,), (1343409227,), (1343409307,), (1343409315,), (1343409347,), (1343409360,), (1343409364,), (1343409482,), (1343409498,), (1343409502,), (1343409522,), (1343409546,), (1343409635,), (1343409639,), (1343409642,), (1343409789,), (1343409803,), (1343409819,), (1343409837,), (1343409844,), (1343409921,), (1343409946,), (1343409955,), (1343409969,), (1343409971,), (1343409977,), (1343410091,), (1343410095,), (1343410100,), (1343410105,), (1343410109,), (1343410243,), (1343410251,), (1343410258,), (1343410490,), (1343410308,), (1343410346,), (1343410359,), (1343410424,), (1343410463,), (1343410550,), (1343410576,), (1343410598,), (1343410624,), (1343410659,), (1343410737,), (1343410989,), (1343411017,), (1343411041,), (1343411254,), (1343411259,), (1343411264,), (1343411269,), (1343411318,), (1343411336,), (1343411344,), (1343411349,), (1343411352,), (1343411391,), (1343411397,), (1343411404,), (1343411422,), (1343411429,), (1343411591,), (1343411625,), (1343411664,), (1343411690,), (1343411831,), (1343411838,), (1343411847,), (1343411911,), (1343411916,), (1343411921,), (1343411928,), (1343411957,), (1343411962,), (1343411967,), (1343412014,), (1343412021,), (1343412032,), (1343412036,), (1343412038,), (1343412072,), (1343412077,), (1343412101,), (1343412124,), (1343412135,), (1343412297,), (1343412311,), (1343412337,), (1343412360,), (1343412508,), (1343412512,), (1343412559,), (1343412583,), (1343412677,), (1343412681,), (1343412685,), (1343412687,), (1343412689,), (1343412734,), (1343412859,), (1343412842,), (1343412852,), (1343413061,), (1343413088,), (1343413110,), (1343413118,), (1343413222,), (1343413226,), (1343413229,), (1343413278,), (1343413290,), (1343413304,), (1343413337,), (1343413373,), (1343413576,), (1343413594,), (1343413616,), (1343413622,), (1343413770,), (1343413777,), (1343413782,), (1343413790,), (1343413802,), (1343413807,), (1343414116,), (1343414149,), (1343414160,), (1343414186,), (1343414210,), (1343414418,), (1343414441,), (1343414465,), (1343414477,), (1343414491,), (1343414506,), (1343414602,), (1343414607,), (1343414620,), (1343414682,), (1343414686,), (1343414691,), (1343414715,), (1343414749,), (1343414963,), (1343415328,), (1343415408,), (1343415489,), (1343415559,), (1343415650,), (1343416336,), (1343416402,), (1343416778,), (1343416782,), (1343416808,), (1343416834,), (1343417003,), (1343417061,), (1343417244,), (1343417249,), (1343417253,), (1343417258,), (1343417262,), (1343417265,), (1343417642,), (1343417603,), (1343417627,), (1343417637,), (1343417639,), (1343417713,), (1343417728,), (1343417779,), (1343418040,), (1343418056,), (1343418076,), (1343418080,), (1343418094,), (1343418110,), (1343418175,), (1343418181,), (1343418187,), (1343418210,), (1343418249,), (1343418556,), (1343418631,), (1343418669,), (1343419681,), (1343419709,), (1343419734,), (1343419756,), (1343420223,), (1343420270,), (1343420315,), (1343420362,), (1343420855,), (1343420887,), (1343420916,), (1343420936,), (1343420970,), (1343421090,), (1343421095,), (1343421101,), (1343421106,), (1343421109,), (1343421152,), (1343421177,), (1343421464,), (1343421470,), (1343421486,), (1343421512,), (1343421527,), (1343421669,), (1343421704,), (1343421730,), (1343421737,), (1343421740,), (1343421801,), (1343421806,), (1343421812,), (1343421817,), (1343422748,), (1343422760,), (1343422783,), (1343422841,), (1343422866,), (1343422915,), (1343422960,), (1343423287,), (1343423124,), (1343423146,), (1343423171,), (1343423205,), (1343423257,), (1343423525,), (1343423566,), (1343423603,), (1343424157,), (1343424187,), (1343424223,), (1343424511,), (1343424628,), (1343424690,), (1343424734,), (1343424844,), (1343425117,), (1343425195,), (1343425264,), (1343425583,), (1343425587,), (1343425592,), (1343425607,), (1343425631,), (1343425649,), (1343425698,), (1343425709,), (1343425742,), (1343425749,), (1343425759,), (1343425763,), (1343425772,), (1343425812,), (1343425819,), (1343425825,), (1343425835,), (1343425840,), (1343425846,), (1343425938,), (1343425954,), (1343425987,), (1343426012,), (1343426034,), (1343426259,), (1343426289,), (1343426338,), (1343426500,), (1343426507,), (1343426511,), (1343426515,), (1343426685,), (1343426696,), (1343426700,), (1343426782,), (1343426804,), (1343426921,), (1343426968,), (1343427094,), (1343427099,), (1343427104,), (1343427286,), (1343427239,), (1343427265,), (1343428137,), (1343428172,), (1343428203,), (1343428229,), (1343428254,), (1343428622,), (1343428667,), (1343428971,), (1343428997,), (1343429025,), (1343429069,), (1343429144,), (1343429147,), (1343429152,), (1343429157,), (1343429309,), (1343429328,), (1343429547,), (1343429553,), (1343429557,), (1343429561,), (1343429708,), (1343429712,), (1343429718,), (1343429920,), (1343429940,), (1343429954,), (1343429965,), (1343429992,), (1343430059,), (1343430063,), (1343430066,), (1343430068,), (1343430076,), (1343430182,), (1343430202,), (1343430214,), (1343430330,), (1343430347,), (1343430361,), (1343430372,), (1343430391,), (1343430407,), (1343430525,), (1343430543,), (1343430563,), (1343430582,), (1343430594,), (1343430788,), (1343430690,), (1343430713,), (1343430735,), (1343430762,), (1343430923,), (1343430955,), (1343431010,), (1343431187,), (1343431227,), (1343431260,), (1343431321,), (1343431334,), (1343431582,), (1343431625,), (1343431827,), (1343431941,), (1343432002,), (1343432219,), (1343432299,), (1343432335,), (1343432356,), (1343432841,), (1343432901,), (1343433056,), (1343433930,), (1343434096,), (1343434170,), (1343434206,), (1343434246,), (1343434560,), (1343434580,), (1343434623,), (1343434857,), (1343434873,), (1343434906,), (1343434925,), (1343435280,), (1343435315,), (1343435679,), (1343435736,), (1343435740,), (1343435744,), (1343435746,), (1343435753,), (1343435813,), (1343435819,), (1343435826,), (1343435831,), (1343435832,), (1343435833,), (1343435994,), (1343436023,), (1343436066,), (1343436090,), (1343436373,), (1343436406,), (1343436474,), (1343436562,), (1343437020,), (1343437049,), (1343437075,), (1343437099,), (1343437134,), (1343437157,), (1343437445,), (1343437390,), (1343437417,), (1343437441,), (1343437697,), (1343437720,), (1343437756,), (1343438219,), (1343438238,), (1343438271,), (1343438315,), (1343438357,), (1343438388,), (1343438639,), (1343438721,), (1343438784,), (1343438847,), (1343439405,), (1343439423,), (1343439446,), (1343439472,), (1343439514,), (1343439796,), (1343439823,), (1343439850,), (1343439876,), (1343440435,), (1343440472,), (1343440496,), (1343440527,), (1343440563,), (1343440614,), (1343440799,), (1343440836,), (1343440873,), (1343440905,), (1343440929,), (1343441435,), (1343441510,), (1343441629,), (1343441825,), (1343441830,), (1343441834,), (1343441836,), (1343441838,), (1343442424,), (1343442490,), (1343442651,), (1343442791,), (1343442926,), (1343443056,), (1343443270,), (1343443339,), (1343443364,), (1343443545,), (1343444689,), (1343445270,), (1343445189,), (1343445204,), (1343445228,), (1343445253,), (1343445795,), (1343445851,), (1343445886,), (1343445926,), (1343446289,), (1343446646,), (1343446725,), (1343446751,), (1343446779,), (1343446796,), (1343446849,), (1343447115,), (1343447125,), (1343447132,), (1343447137,), (1343447171,), (1343447411,), (1343447420,), (1343447439,), (1343447895,), (1343447899,), (1343447911,), (1343448813,), (1343450794,), (1343459803,), (1343460540,), (1343460700,), (1343461790,), (1343461837,), (1343462621,), (1343462696,), (1343462779,), (1343464571,), (1343465049,), (1343465065,), (1343465086,), (1343465090,), (1343465685,), (1343465828,), (1343467340,), (1343467399,), (1343467493,), (1343474936,), (1343474822,), (1343474891,), (1343475277,), (1343475309,), (1343475849,), (1343475977,), (1343476134,), (1343476707,), (1343476776,), (1343476843,), (1343476972,), (1343477334,), (1343477365,), (1343477392,), (1343477417,), (1343477760,), (1343477783,), (1343477810,), (1343477865,), (1343478609,), (1343478642,), (1343478679,), (1343479148,), (1343479154,), (1343479191,), (1343479221,), (1343479635,), (1343479756,), (1343480155,), (1343480163,), (1343480485,), (1343480527,), (1343480589,), (1343480634,), (1343481113,), (1343481182,), (1343481273,), (1343481366,), (1343481452,), (1343482237,), (1343482270,), (1343482349,), (1343482395,), (1343483394,), (1343483173,), (1343483233,), (1343483295,), (1343484095,), (1343484210,), (1343484382,), (1343484520,), (1343484580,), (1343485384,), (1343485443,), (1343485498,), (1343485528,), (1343485571,), (1343485603,), (1343485803,), (1343485827,), (1343485852,), (1343485885,), (1343486169,), (1343486208,), (1343486239,), (1343486454,), (1343487303,), (1343487369,), (1343487384,), (1343487822,), (1343487826,), (1343487829,), (1343487992,), (1343488021,), (1343488071,), (1343488388,), (1343488409,), (1343488423,), (1343488456,), (1343488485,), (1343488776,), (1343488789,), (1343488836,), (1343488879,), (1343489368,), (1343489386,), (1343489461,), (1343489486,), (1343489513,), (1343489686,), (1343489715,), (1343489745,), (1343489811,), (1343490076,), (1343490102,), (1343490125,), (1343490136,), (1343490163,), (1343490395,), (1343490416,), (1343490435,), (1343490464,), (1343509722,), (1343511742,), (1343512251,), (1343512679,), (1343512699,), (1343512987,), (1343514085,), (1343516018,), (1343516127,), (1343520204,), (1343557081,), (1343558819,), (1343559249,), (1343559812,), (1343560714,), (1343560922,), (1343561348,), (1343561853,), (1343562319,), (1343562320,), (1343562514,), (1343562880,), (1343563151,), (1343563231,), (1343563239,), (1343563242,), (1343563243,), (1343563246,), (1343563251,), (1343563253,), (1343563260,), (1343563262,), (1343563263,), (1343563266,), (1343563268,), (1343563269,), (1343563270,), (1343563275,), (1343563278,), (1343563280,), (1343563282,), (1343563284,), (1343563288,), (1343563293,), (1343563294,), (1343563298,), (1343563301,), (1343563302,), (1343563303,), (1343563307,), (1343563308,), (1343563309,), (1343563315,), (1343563316,), (1343563325,), (1343563333,), (1343563335,), (1343563342,), (1343563344,), (1343563345,), (1343563346,), (1343563353,), (1343563354,), (1343563355,), (1343563362,), (1343563364,), (1343563365,), (1343563370,), (1343563371,), (1343563373,), (1343563379,), (1343563384,), (1343563387,), (1343563389,), (1343563392,), (1343563393,), (1343563395,), (1343563398,), (1343563401,), (1343563404,), (1343563406,), (1343563408,), (1343563418,), (1343563421,), (1343563436,), (1343563437,), (1343563438,), (1343563440,), (1343563441,), (1343563442,), (1343563445,), (1343563457,), (1343563460,), (1343563462,), (1343563463,), (1343563468,), (1343563469,), (1343563471,), (1343563474,), (1343563477,), (1343563489,), (1343563491,), (1343563493,), (1343563494,), (1343563496,), (1343563497,), (1343563502,), (1343563507,), (1343563516,), (1343563522,), (1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,), (1343563735,), (1343563757,), (1343563758,), (1343563920,), (1343563941,), (1343563981,), (1343563986,), (1343564006,), (1343564029,), (1343564068,), (1343564075,), (1343564085,), (1343564108,), (1343564126,), (1343564160,), (1343566051,), (1343563924,), (1343563927,), (1343563931,), (1343563939,), (1343563944,), (1343563945,), (1343563953,), (1343563958,), (1343563963,), (1343563964,), (1343563965,), (1343563969,), (1343563978,), (1343563982,), (1343563984,), (1343563989,), (1343563991,), (1343563998,), (1343563999,), (1343564003,), (1343564004,), (1343564008,), (1343564013,), (1343564021,), (1343564025,), (1343564027,), (1343564030,), (1343564036,), (1343564043,), (1343564051,), (1343564056,), (1343564061,), (1343564070,), (1343564080,), (1343564081,), (1343564092,), (1343564095,), (1343564098,), (1343564104,), (1343564116,), (1343564125,), (1343564127,), (1343564132,), (1343564144,), (1343564146,), (1343564157,), (1343564163,), (1343564164,), (1343564185,), (1343564189,), (1343564211,), (1343564213,), (1343564227,), (1343564251,), (1343565622,), (1343565670,), (1343565745,), (1343565935,), (1343565989,), (1343564023,), (1343564044,), (1343564047,), (1343564052,), (1343564064,), (1343564076,), (1343564079,), (1343564086,), (1343564089,), (1343564090,), (1343564102,), (1343564112,), (1343564117,), (1343564119,), (1343564121,), (1343564135,), (1343564139,), (1343564140,), (1343564142,), (1343564148,), (1343564149,), (1343564151,), (1343564155,), (1343564162,), (1343564168,), (1343564173,), (1343564176,), (1343564179,), (1343564182,), (1343564192,), (1343564196,), (1343564197,), (1343564202,), (1343564206,), (1343564207,), (1343564212,), (1343564215,), (1343564219,), (1343564224,), (1343564229,), (1343564231,), (1343564236,), (1343564239,), (1343564241,), (1343564243,), (1343564246,), (1343564252,), (1343564253,), (1343564255,), (1343564258,), (1343564259,), (1343564261,), (1343564274,), (1343564277,), (1343564281,), (1343564287,), (1343564288,), (1343564291,), (1343564293,), (1343564294,), (1343564300,), (1343564302,), (1343564304,), (1343564305,), (1343564314,), (1343564315,), (1343564318,), (1343564319,), (1343564326,), (1343564329,), (1343564332,), (1343564334,), (1343564338,), (1343564339,), (1343564340,), (1343564341,), (1343564344,), (1343564353,), (1343564357,), (1343564362,), (1343564366,), (1343564368,), (1343564369,), (1343564374,), (1343564375,), (1343564376,), (1343564377,), (1343564380,), (1343564389,), (1343564392,), (1343564401,), (1343564402,), (1343564403,), (1343564408,), (1343564409,), (1343564417,), (1343564432,), (1343564433,), (1343564437,), (1343564438,), (1343564447,), (1343564452,), (1343564470,), (1343564472,), (1343564475,), (1343564478,), (1343564485,), (1343564497,), (1343564984,), (1343564990,), (1343564999,), (1343565005,), (1343565014,), (1343565018,), (1343565025,), (1343565026,), (1343565031,), (1343565033,), (1343565034,), (1343565038,), (1343565093,), (1343565129,), (1343565143,), (1343565182,), (1343565223,), (1343565263,), (1343565280,), (1343565320,), (1343565447,), (1343565475,), (1343565560,), (1343564248,), (1343564262,), (1343564280,), (1343564290,), (1343564292,), (1343564308,), (1343564317,), (1343564333,), (1343564343,), (1343564360,), (1343564367,), (1343564379,), (1343564381,), (1343564396,), (1343564397,), (1343564411,), (1343564412,), (1343564420,), (1343564423,), (1343564424,), (1343564428,), (1343564439,), (1343564441,), (1343564442,), (1343564448,), (1343564453,), (1343564455,), (1343564456,), (1343564458,), (1343564465,), (1343564466,), (1343564467,), (1343564468,), (1343564477,), (1343564479,), (1343564486,), (1343564487,), (1343564489,), (1343564493,), (1343564496,), (1343564498,), (1343564503,), (1343564505,), (1343564508,), (1343564510,), (1343564511,), (1343564515,), (1343564522,), (1343564527,), (1343564528,), (1343564533,), (1343564537,), (1343564538,), (1343564540,), (1343564543,), (1343564550,), (1343564552,), (1343564559,), (1343564560,), (1343564561,), (1343564562,), (1343564563,), (1343564565,), (1343564568,), (1343564572,), (1343564574,), (1343564575,), (1343564576,), (1343564577,), (1343564581,), (1343564582,), (1343564584,), (1343564585,), (1343564589,), (1343564592,), (1343564598,), (1343564608,), (1343564610,), (1343564612,), (1343564619,), (1343564621,), (1343564622,), (1343564626,), (1343564634,), (1343564640,), (1343564648,), (1343564651,), (1343564656,), (1343564658,), (1343564659,), (1343564665,), (1343564672,), (1343564677,), (1343564689,), (1343564690,), (1343564694,), (1343564695,), (1343564698,), (1343564703,), (1343564712,), (1343564715,), (1343564726,), (1343564727,), (1343564728,), (1343564729,), (1343564738,), (1343564745,), (1343564748,), (1343564758,), (1343564759,), (1343564763,), (1343564766,), (1343564768,), (1343564770,), (1343564772,), (1343564788,), (1343564791,), (1343564792,), (1343564793,), (1343564797,), (1343564800,), (1343564808,), (1343564850,), (1343564851,), (1343564865,), (1343564866,), (1343564876,), (1343564877,), (1343564882,), (1343564895,), (1343564941,), (1343564949,), (1343564957,), (1343564966,), (1343564970,), (1343564972,), (1343564979,), (1343564476,), (1343564480,), (1343564502,), (1343564512,), (1343564525,), (1343564545,), (1343564551,), (1343564596,), (1343564603,), (1343564613,), (1343564628,), (1343564646,), (1343564652,), (1343564662,), (1343564682,), (1343564683,), (1343564697,), (1343564701,), (1343564714,), (1343564736,), (1343564767,), (1343564769,), (1343564785,), (1343564804,), (1343564818,), (1343564830,), (1343564836,), (1343564852,), (1343564854,), (1343564855,), (1343564868,), (1343564873,), (1343564880,), (1343564885,), (1343564904,), (1343564915,), (1343564923,), (1343564930,), (1343564711,), (1343564735,), (1343564747,), (1343564749,), (1343564782,), (1343564798,), (1343564803,), (1343564807,), (1343564820,), (1343564825,), (1343564826,), (1343564828,), (1343564829,), (1343564831,), (1343564837,), (1343564841,), (1343564849,), (1343564859,), (1343564861,), (1343564869,), (1343564888,), (1343564890,), (1343564896,), (1343564900,), (1343564901,), (1343564907,), (1343564912,), (1343564919,), (1343566261,), (1343597703,), (1343598124,), (1343598215,), (1343601860,), (1343602968,), (1343602995,), (1343603168,), (1343603371,), (1343606070,), (1343606101,), (1343607282,), (1343607935,), (1343607991,), (1343609339,), (1343609407,), (1343611089,), (1343611318,), (1343612400,), (1343612532,), (1343613200,), (1343616500,), (1343637341,), (1343638682,), (1343639158,), (1343639164,), (1343639301,), (1343642296,), (1343642345,), (1343643409,), (1343646892,), (1343646866,), (1343651393,), (1343652192,), (1343653007,), (1343653316,), (1343653319,), (1343653761,), (1343654095,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 131, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21365400]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] map_info['map_portfolio_photo'] : {21365400: [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984, 1343564497, 1343564485, 1343564478, 1343564475, 1343564472, 1343564470, 1343564452, 1343564447, 1343564438, 1343564437, 1343564433, 1343564432, 1343564417, 1343564409, 1343564408, 1343564403, 1343564402, 1343564401, 1343564392, 1343564389, 1343564380, 1343564377, 1343564376, 1343564375, 1343564374, 1343564369, 1343564368, 1343564366, 1343564362, 1343564357, 1343564353, 1343564344, 1343564341, 1343564340, 1343564339, 1343564338, 1343564334, 1343564332, 1343564329, 1343564326, 1343564319, 1343564318, 1343564315, 1343564314, 1343564305, 1343564304, 1343564302, 1343564300, 1343564294, 1343564293, 1343564291, 1343564288, 1343564287, 1343564281, 1343564277, 1343564274, 1343564261, 1343564259, 1343564258, 1343564255, 1343564253, 1343564252, 1343564246, 1343564243, 1343564241, 1343564239, 1343564236, 1343564231, 1343564229, 1343564224, 1343564219, 1343564215, 1343564212, 1343564207, 1343564206, 1343564202, 1343564197, 1343564196, 1343564192, 1343564182, 1343564179, 1343564176, 1343564173, 1343564168, 1343564162, 1343564155, 1343564151, 1343564149, 1343564148, 1343564142, 1343564140, 1343564139, 1343564135, 1343564121, 1343564119, 1343564117, 1343564112, 1343564102, 1343564090, 1343564089, 1343564086, 1343564079, 1343564076, 1343564064, 1343564052, 1343564047, 1343564044, 1343564023]} final : True mtd_id 4302 list_pids : [1343565560, 1343565475, 1343565447, 1343565320, 1343565280, 1343565263, 1343565223, 1343565182, 1343565143, 1343565129, 1343565093, 1343565038, 1343565034, 1343565033, 1343565031, 1343565026, 1343565025, 1343565018, 1343565014, 1343565005, 1343564999, 1343564990, 1343564984] Looping around the photos to save general results len do output : 1 /21365400Didn'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, '2663923') ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923') ('4302', None, None, None, None, None, None, None, '2663923') ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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, '21365400', 'None', None, None, None, None, '2663923'), ('4302', '21365400', '1343565560', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565475', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565447', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565320', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565280', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565263', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565223', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565182', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565143', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565129', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565093', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565038', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565034', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565033', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565031', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565026', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565025', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565018', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565014', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343565005', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564999', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564990', None, None, None, None, None, '2663923'), ('4302', '21365400', '1343564984', None, None, None, None, None, '2663923')] time used for this insertion : 0.014536857604980469 save_final save missing photos in datou_result : time spend for datou_step_exec : 53.77480673789978 time spend to save output : 0.014873266220092773 total time spend for step 5 : 53.78968000411987 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 (2663923) 2.72user 2.79system 1:03.85elapsed 8%CPU (0avgtext+0avgdata 163248maxresident)k 88752inputs+20104outputs (361major+74974minor)pagefaults 0swaps