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 : 2151291 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 (3804916) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3804916) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394659 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3804916'] with mtr_portfolio_ids : ['27394659'] and first list_photo_ids : [] new path : /proc/2151291/ Name: python3 Umask: 0002 State: R (running) Tgid: 2151291 Ngid: 0 Pid: 2151291 PPid: 2151290 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2151291 NSpid: 2151291 NSpgid: 2149581 NSsid: 2149581 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97704 kB VmRSS: 97704 kB RssAnon: 59840 kB RssFile: 37864 kB RssShmem: 0 kB VmData: 865608 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/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2151291', 'Ngid': '0', 'Pid': '2151291', 'PPid': '2151290', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2151291', 'NSpid': '2151291', 'NSpgid': '2149581', 'NSsid': '2149581', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97704 kB', 'VmRSS': '97704 kB', 'RssAnon': '59840 kB', 'RssFile': '37864 kB', 'RssShmem': '0 kB', 'VmData': '865608 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/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '2151291', '1106856', '0', '1106856', '865608', '97704', b'', 'marlene', '3804916') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27394659) 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 (3804916 ) ) 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 (27394659) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1387105652, 'portfolio_id': 27394659}, {'photo_id': 1387105022, 'portfolio_id': 27394659}, {'photo_id': 1387105019, 'portfolio_id': 27394659}, {'photo_id': 1387105017, 'portfolio_id': 27394659}, {'photo_id': 1387105013, 'portfolio_id': 27394659}, {'photo_id': 1387104734, 'portfolio_id': 27394659}, {'photo_id': 1387104726, 'portfolio_id': 27394659}, {'photo_id': 1387104712, 'portfolio_id': 27394659}, {'photo_id': 1387104708, 'portfolio_id': 27394659}, {'photo_id': 1387104706, 'portfolio_id': 27394659}, {'photo_id': 1387104541, 'portfolio_id': 27394659}, {'photo_id': 1387104535, 'portfolio_id': 27394659}, {'photo_id': 1387104530, 'portfolio_id': 27394659}, {'photo_id': 1387104420, 'portfolio_id': 27394659}, {'photo_id': 1387104033, 'portfolio_id': 27394659}, {'photo_id': 1387103967, 'portfolio_id': 27394659}, {'photo_id': 1387103954, 'portfolio_id': 27394659}, {'photo_id': 1387103952, 'portfolio_id': 27394659}, {'photo_id': 1387103949, 'portfolio_id': 27394659}, {'photo_id': 1387102928, 'portfolio_id': 27394659}, {'photo_id': 1387102926, 'portfolio_id': 27394659}, {'photo_id': 1387102904, 'portfolio_id': 27394659}, {'photo_id': 1387102722, 'portfolio_id': 27394659}, {'photo_id': 1387102720, 'portfolio_id': 27394659}, {'photo_id': 1387102718, 'portfolio_id': 27394659}, {'photo_id': 1387102698, 'portfolio_id': 27394659}, {'photo_id': 1387102567, 'portfolio_id': 27394659}, {'photo_id': 1387102565, 'portfolio_id': 27394659}, {'photo_id': 1387102561, 'portfolio_id': 27394659}, {'photo_id': 1387102537, 'portfolio_id': 27394659}, {'photo_id': 1387102534, 'portfolio_id': 27394659}, {'photo_id': 1387102440, 'portfolio_id': 27394659}, {'photo_id': 1387102436, 'portfolio_id': 27394659}, {'photo_id': 1387102421, 'portfolio_id': 27394659}, {'photo_id': 1387102256, 'portfolio_id': 27394659}, {'photo_id': 1387102085, 'portfolio_id': 27394659}, {'photo_id': 1387102081, 'portfolio_id': 27394659}, {'photo_id': 1387102077, 'portfolio_id': 27394659}, {'photo_id': 1387101400, 'portfolio_id': 27394659}, {'photo_id': 1387100886, 'portfolio_id': 27394659}, {'photo_id': 1387100884, 'portfolio_id': 27394659}, {'photo_id': 1387100823, 'portfolio_id': 27394659}, {'photo_id': 1387100822, 'portfolio_id': 27394659}] map_portfolio_id_photo_id: {27394659: [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706, 1387104541, 1387104535, 1387104530, 1387104420, 1387104033, 1387103967, 1387103954, 1387103952, 1387103949, 1387102928, 1387102926, 1387102904, 1387102722, 1387102720, 1387102718, 1387102698, 1387102567, 1387102565, 1387102561, 1387102537, 1387102534, 1387102440, 1387102436, 1387102421, 1387102256, 1387102085, 1387102081, 1387102077, 1387101400, 1387100886, 1387100884, 1387100823, 1387100822]} ##### 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.05267906188964844 #### 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 Wed Oct 1 09:46: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 (27394659) 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 : 27394659 get user id for portfolio 27394659 get sub ptf for main ptf 27394659, type 3726 and hashtags ['flou', 'metal', 'environnement', 'kraft', 'plastique', 'mal_croppe', 'autre_refus', 'Carton_gris', 'papier', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun'] 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`=27394659 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','environnement','kraft','plastique','mal_croppe','autre_refus','Carton_gris','papier','cartonnette','Teint_Dans_La_Masse','Carton_brun')) 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`=27394659 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','environnement','kraft','plastique','mal_croppe','autre_refus','Carton_gris','papier','cartonnette','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27394659, 'sub_port_id': 27394666, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510709, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'papier': {'main_port_id': 27394659, 'sub_port_id': 27394667, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510710, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'cartonnette': {'main_port_id': 27394659, 'sub_port_id': 27394668, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510711, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'kraft': {'main_port_id': 27394659, 'sub_port_id': 27394669, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510712, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'environnement': {'main_port_id': 27394659, 'sub_port_id': 27394671, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510713, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 27394659, 'sub_port_id': 27394672, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510714, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'autre_refus': {'main_port_id': 27394659, 'sub_port_id': 27394673, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510715, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'Carton_brun': {'main_port_id': 27394659, 'sub_port_id': 27394674, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510716, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'metal': {'main_port_id': 27394659, 'sub_port_id': 27394675, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510717, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'plastique': {'main_port_id': 27394659, 'sub_port_id': 27394676, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510718, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'Carton_gris': {'main_port_id': 27394659, 'sub_port_id': 27394677, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510719, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}, 'flou': {'main_port_id': 27394659, 'sub_port_id': 27394678, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510720, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27394666 , 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=27394659 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 (27394666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394667 , 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=27394659 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 (27394667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394668 , 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=27394659 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 (27394668) result : ((1387101600,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394669 , 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=27394659 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 (27394669) result : ((1387102464,), (1387102465,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394671 , 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=27394659 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 (27394671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394672 , 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=27394659 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 (27394672) result : ((1387102461,), (1387102575,), (1387104534,), (1387105391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394673 , 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=27394659 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 (27394673) result : ((1387102577,), (1387105393,), (1387105394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394674 , 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=27394659 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 (27394674) result : ((1387101341,), (1387104536,), (1387104537,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394675 , 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=27394659 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 (27394675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394676 , 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=27394659 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 (27394676) result : ((1387102969,), (1387105397,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394677 , 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=27394659 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 (27394677) result : ((1387102463,), (1387105395,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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 27394678 , 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=27394659 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 (27394678) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27394659) result : ((1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) 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 (1387101400) 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`=27394659 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','environnement','kraft','plastique','mal_croppe','autre_refus','Carton_gris','papier','cartonnette','Teint_Dans_La_Masse','Carton_brun')) 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`=27394659 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','metal','environnement','kraft','plastique','mal_croppe','autre_refus','Carton_gris','papier','cartonnette','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 27394659, 'sub_port_id': 27394679, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510721, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'papier': {'main_port_id': 27394659, 'sub_port_id': 27394680, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510722, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'cartonnette': {'main_port_id': 27394659, 'sub_port_id': 27394681, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510723, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'kraft': {'main_port_id': 27394659, 'sub_port_id': 27394682, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510724, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'environnement': {'main_port_id': 27394659, 'sub_port_id': 27394683, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510725, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 27394659, 'sub_port_id': 27394684, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510726, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'autre_refus': {'main_port_id': 27394659, 'sub_port_id': 27394685, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510727, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'Carton_brun': {'main_port_id': 27394659, 'sub_port_id': 27394686, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510728, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'metal': {'main_port_id': 27394659, 'sub_port_id': 27394687, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510729, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'plastique': {'main_port_id': 27394659, 'sub_port_id': 27394688, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510730, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'Carton_gris': {'main_port_id': 27394659, 'sub_port_id': 27394689, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510731, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 33, 5), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}, 'flou': {'main_port_id': 27394659, 'sub_port_id': 27394690, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18510732, 'last_updated_at': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 1, 9, 44, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 1, 9, 33, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394677 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27394690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27394678 lien utilise dans velours : https://marlene.fotonower.com/velours/27394679,27394680,27394681,27394682,27394683,27394684,27394685,27394686,27394687,27394688,27394689,27394690?tags=mal_croppe,papier,cartonnette,kraft,environnement,Teint_Dans_La_Masse,autre_refus,Carton_brun,metal,plastique,Carton_gris,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27394659]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] map_info['map_portfolio_photo'] : {27394659: [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706, 1387104541, 1387104535, 1387104530, 1387104420, 1387104033, 1387103967, 1387103954, 1387103952, 1387103949, 1387102928, 1387102926, 1387102904, 1387102722, 1387102720, 1387102718, 1387102698, 1387102567, 1387102565, 1387102561, 1387102537, 1387102534, 1387102440, 1387102436, 1387102421, 1387102256, 1387102085, 1387102081, 1387102077, 1387101400, 1387100886, 1387100884, 1387100823, 1387100822]} final : False mtd_id 4302 list_pids : [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] Looping around the photos to save general results len do output : 1 /27394659. 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, '3804916') ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '27394659', "{'mal_croppe': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678}", None, None, None, None, '3804916'), ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916')] time used for this insertion : 0.03693675994873047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6493418216705322 time spend to save output : 0.03725004196166992 total time spend for step 1 : 1.6865918636322021 step2:final Wed Oct 1 09:47:00 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 (27394659) 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 27394659 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1387100823,1387100822,1387100886,1387100884,1387101400,1387102256,1387102085,1387102081,1387102077,1387102440,1387102436,1387102421,1387102537,1387102534,1387102567,1387102565,1387102561,1387102722,1387102720,1387102718,1387102698,1387102928,1387102926,1387102904,1387103967,1387103954,1387103952,1387103949,1387104734,1387104541,1387104535,1387104726,1387104530,1387104712,1387104420,1387104708,1387104706,1387104033,1387105022,1387105019,1387105017,1387105013,1387105652); 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([27394659]) Inside saveOutput : final : False verbose : True original output for save of step final : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} new output for save of step final : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] map_info['map_portfolio_photo'] : {27394659: [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706, 1387104541, 1387104535, 1387104530, 1387104420, 1387104033, 1387103967, 1387103954, 1387103952, 1387103949, 1387102928, 1387102926, 1387102904, 1387102722, 1387102720, 1387102718, 1387102698, 1387102567, 1387102565, 1387102561, 1387102537, 1387102534, 1387102440, 1387102436, 1387102421, 1387102256, 1387102085, 1387102081, 1387102077, 1387101400, 1387100886, 1387100884, 1387100823, 1387100822]} final : False mtd_id 4302 list_pids : [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] Looping around the photos to save general results len do output : 10 /1387105652.Didn't retrieve data . /1387105022.Didn't retrieve data . /1387105019.Didn't retrieve data . /1387105017.Didn't retrieve data . /1387105013.Didn't retrieve data . /1387104734.Didn't retrieve data . /1387104726.Didn't retrieve data . /1387104712.Didn't retrieve data . /1387104708.Didn't retrieve data . /1387104706.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, '3804916') ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '27394659', '1387105652', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387105022', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387105019', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387105017', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387105013', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387104734', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387104726', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387104712', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387104708', '0.053429043929547525', None, None, None, None, '3804916'), ('4302', '27394659', '1387104706', '0.053429043929547525', None, None, None, None, '3804916')] time used for this insertion : 0.036907196044921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2441871166229248 time spend to save output : 0.03738260269165039 total time spend for step 2 : 0.2815697193145752 step3:velours_tree Wed Oct 1 09:47:00 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 : {27394659: [{'mal_croppe': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678}]} input_args_next_step : {27394659: ()} output_args : {27394659: [{'mal_croppe': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678}]} args : 27394659 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': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27394659) 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([27394659]) 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.30447888374328613 time spend to save output : 4.100799560546875e-05 total time spend for step 3 : 0.3045198917388916 step4:send_mail_cod Wed Oct 1 09:47:01 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 : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} input_args_next_step : {1387105652: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387105652 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387105022 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387105019 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387105017 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387105013 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387104734 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387104726 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387104712 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387104708 depend.output_id : 0 input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ()} output_args : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',)} args : 1387104706 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 : {27394659: [{'mal_croppe': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678}]} input_args_next_step : {1387105652: ('0.053429043929547525',), 1387105022: ('0.053429043929547525',), 1387105019: ('0.053429043929547525',), 1387105017: ('0.053429043929547525',), 1387105013: ('0.053429043929547525',), 1387104734: ('0.053429043929547525',), 1387104726: ('0.053429043929547525',), 1387104712: ('0.053429043929547525',), 1387104708: ('0.053429043929547525',), 1387104706: ('0.053429043929547525',), 27394659: ()} output_args : {27394659: [{'mal_croppe': 27394666, 'papier': 27394667, 'cartonnette': 27394668, 'kraft': 27394669, 'environnement': 27394671, 'Teint_Dans_La_Masse': 27394672, 'autre_refus': 27394673, 'Carton_brun': 27394674, 'metal': 27394675, 'plastique': 27394676, 'Carton_gris': 27394677, 'flou': 27394678}]} args : 27394659 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 :11, first value : ('0.053429043929547525',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27394659) 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_view ph WHERE photo_id IN (1387105652,1387105022,1387105019,1387105017,1387105013,1387104734,1387104726,1387104712,1387104708,1387104706) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1387104706 begin to download photo : 1387104726 begin to download photo : 1387105017 begin to download photo : 1387105652 download finish for photo 1387104726 begin to download photo : 1387104734 download finish for photo 1387105017 begin to download photo : 1387105019 download finish for photo 1387104706 begin to download photo : 1387104708 download finish for photo 1387105652 download finish for photo 1387104734 begin to download photo : 1387105013 download finish for photo 1387105019 begin to download photo : 1387105022 download finish for photo 1387104708 begin to download photo : 1387104712 download finish for photo 1387105022 download finish for photo 1387105013 download finish for photo 1387104712 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette273946661759304821/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P27394659_01-10-2025_09_47_01.pdf 27394666 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273946661759304821 27394668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387101600: '1759304105_1154689_1387100884_de2a98ffadd7f11c5e0a3630784199c0_rle_crop_3981946818_0.png'} change filename to text .imagette273946681759304821/ imagette273946681759304821/1759304105_1154689_1387100884_de2a98ffadd7f11c5e0a3630784199c0_rle_crop_3981946818_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/2c23768235b30997c057239f6e3b6bed_95013282.png imagette273946681759304821 27394669 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387102464: '1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947780_0.png', 1387102465: '1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947773_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/296af6376814070ed7381b4dee9c284d_1662047.png change filename to text .imagette273946691759304821/ imagette273946691759304821/1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947773_0.png.png imagette273946691759304821/1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947780_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/fbc88387fd2b66a6876282fb2f505156_79141534.png imagette273946691759304821 27394673 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387102577: '1759304345_1165920_1387102436_5082b4511e3c80ebcfecedf69854f8ad_rle_crop_3981957680_0.png', 1387105393: '1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963799_0.png', 1387105394: '1759304706_1179888_1387103952_43198aeba243ed9a6af30235caea371f_rle_crop_3981963815_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7d04263d51100a0a95550b3d4008e983_42060877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/8fc0169516c501b0689b514fe5f12351_38833416.png change filename to text .imagette273946731759304821/ imagette273946731759304821/1759304345_1165920_1387102436_5082b4511e3c80ebcfecedf69854f8ad_rle_crop_3981957680_0.png.png imagette273946731759304821/1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963799_0.png.png imagette273946731759304821/1759304706_1179888_1387103952_43198aeba243ed9a6af30235caea371f_rle_crop_3981963815_0.png.png imagette273946751759304822/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/afd1bed5b65cf9ed23a080a428183f53_89583944.png imagette273946731759304821 27394675 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273946751759304822 27394676 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387102969: '1759304467_1169993_1387102718_ab23abd16c4bebc738dd5a7e0de228d4_rle_crop_3981959326_0.png', 1387105397: '1759304706_1179888_1387103952_43198aeba243ed9a6af30235caea371f_rle_crop_3981963810_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/1573d936c01906bac66446d87c69cd6f_46173804.png change filename to text .imagette273946761759304822/ imagette273946761759304822/1759304706_1179888_1387103952_43198aeba243ed9a6af30235caea371f_rle_crop_3981963810_0.png.png imagette273946761759304822/1759304467_1169993_1387102718_ab23abd16c4bebc738dd5a7e0de228d4_rle_crop_3981959326_0.png.png imagette273946781759304822/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/f0de0f53abd98d907b0ff137dd5d7f33_42808905.png imagette273946761759304822 27394678 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette273946781759304822 27394672 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387102461: '1759304224_1162075_1387102085_93d19d4b7d4d1a371c9b7bf36d8bc40d_rle_crop_3981947753_0.png', 1387102575: '1759304345_1165920_1387102436_5082b4511e3c80ebcfecedf69854f8ad_rle_crop_3981957686_0.png', 1387104534: '1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959937_0.png', 1387105391: '1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963797_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/cd6d1773bc9199f804cc9f4a31dc7efb_71355198.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/4c8fb2386586fde58a6608430ac8952f_15197904.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/dfd763733ddc683f850a45b9f886b0c2_97368966.png change filename to text .imagette273946721759304822/ imagette273946721759304822/1759304345_1165920_1387102436_5082b4511e3c80ebcfecedf69854f8ad_rle_crop_3981957686_0.png.png imagette273946721759304822/1759304224_1162075_1387102085_93d19d4b7d4d1a371c9b7bf36d8bc40d_rle_crop_3981947753_0.png.png imagette273946721759304822/1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963797_0.png.png imagette273946721759304822/1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959937_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/e917cc3b3e132da9dbd77100b10a7f3c_20218582.png imagette273946721759304822 27394674 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387101341: '1759303986_1150496_1387100823_92d55027bf7d605021c1226024a39158_rle_crop_3981942885_0.png', 1387104536: '1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959942_0.png', 1387104537: '1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959935_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/21d79b232370a3dbf48f4b7d9a328485_20924685.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/7e3eb4ce3a9fd60bea3cb9d3080029e5_52747170.png change filename to text .imagette273946741759304822/ imagette273946741759304822/1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959935_0.png.png imagette273946741759304822/1759303986_1150496_1387100823_92d55027bf7d605021c1226024a39158_rle_crop_3981942885_0.png.png imagette273946741759304822/1759304584_1175358_1387102928_169a6461a81930387703ab43fc36aeec_rle_crop_3981959942_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/3e133d13b80f90b88a89397a9ce8b76f_36235911.png imagette273946741759304822 27394677 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394677 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1387102463: '1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947778_0.png', 1387105395: '1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963800_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/126ac3dd7379070d06e4b9b1c5e6d390_37592165.png change filename to text .imagette273946771759304823/ imagette273946771759304823/1759304706_1179888_1387103954_61b94b55a166c643e6a19bac1cf08610_rle_crop_3981963800_0.png.png imagette273946771759304823/1759304224_1162075_1387102077_5f097fc77e8f0b1519d5075b14314147_rle_crop_3981947778_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/871a76cdf9aaacff8bf6f4936b2e0541_80183468.png imagette273946771759304823 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27394659 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27394679,27394680,27394681,27394682,27394683,27394684,27394685,27394686,27394687,27394688,27394689,27394690?tags=mal_croppe,papier,cartonnette,kraft,environnement,Teint_Dans_La_Masse,autre_refus,Carton_brun,metal,plastique,Carton_gris,flou your option no_mail is active, we will not send the real mail to your client args[1387105652] : ('0.053429043929547525',) no score found for photo 1387105652 We are sending mail with results at report@fotonower.com args[1387105022] : ('0.053429043929547525',) no score found for photo 1387105022 We are sending mail with results at report@fotonower.com args[1387105019] : ('0.053429043929547525',) no score found for photo 1387105019 We are sending mail with results at report@fotonower.com args[1387105017] : ('0.053429043929547525',) no score found for photo 1387105017 We are sending mail with results at report@fotonower.com args[1387105013] : ('0.053429043929547525',) no score found for photo 1387105013 We are sending mail with results at report@fotonower.com args[1387104734] : ('0.053429043929547525',) no score found for photo 1387104734 We are sending mail with results at report@fotonower.com args[1387104726] : ('0.053429043929547525',) no score found for photo 1387104726 We are sending mail with results at report@fotonower.com args[1387104712] : ('0.053429043929547525',) no score found for photo 1387104712 We are sending mail with results at report@fotonower.com args[1387104708] : ('0.053429043929547525',) no score found for photo 1387104708 We are sending mail with results at report@fotonower.com args[1387104706] : ('0.053429043929547525',) no score found for photo 1387104706 We are sending mail with results at report@fotonower.com refus_total : 0.053429043929547525 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394659 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_P27394659_01-10-2025_09_47_01.pdf results_Auto_P27394659_01-10-2025_09_47_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.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','27394659','results_Auto_P27394659_01-10-2025_09_47_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf','pdf','','0.17','0.053429043929547525') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27394659]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] map_info['map_portfolio_photo'] : {27394659: [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706, 1387104541, 1387104535, 1387104530, 1387104420, 1387104033, 1387103967, 1387103954, 1387103952, 1387103949, 1387102928, 1387102926, 1387102904, 1387102722, 1387102720, 1387102718, 1387102698, 1387102567, 1387102565, 1387102561, 1387102537, 1387102534, 1387102440, 1387102436, 1387102421, 1387102256, 1387102085, 1387102081, 1387102077, 1387101400, 1387100886, 1387100884, 1387100823, 1387100822]} final : False mtd_id 4302 list_pids : [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] 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, '3804916') ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '27394659', '1387105652', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916')] time used for this insertion : 0.03720259666442871 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4515068531036377 time spend to save output : 0.0374906063079834 total time spend for step 4 : 3.488997459411621 step5:split_time_score Wed Oct 1 09:47: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 : ['27394659'] 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 : [('27394659',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27394659) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1387105652: {'path': 'temp/1759304821_2151291_1387105652_e64bedfaa0067208556b9ca1ae0cd8b0.jpg', 'extension': 'jpg'}, 1387105017: {'path': 'temp/1759304821_2151291_1387105017_cbe5982f0bfe661360046e4e49323490.jpg', 'extension': 'jpg'}, 1387105019: {'path': 'temp/1759304821_2151291_1387105019_01b21ce982dd6cbc26e7b5d2c31d8e77.jpg', 'extension': 'jpg'}, 1387105022: {'path': 'temp/1759304821_2151291_1387105022_05cd37bd9b60737e05c6148678297574.jpg', 'extension': 'jpg'}, 1387104726: {'path': 'temp/1759304821_2151291_1387104726_c60076d164816705c85f08c2144d82e3.jpg', 'extension': 'jpg'}, 1387104734: {'path': 'temp/1759304821_2151291_1387104734_cabe7c1f7239488412be4ed2fea4447f.jpg', 'extension': 'jpg'}, 1387105013: {'path': 'temp/1759304821_2151291_1387105013_34150dbd1b31bb4c05b8ec39ae72f6be.jpg', 'extension': 'jpg'}, 1387104706: {'path': 'temp/1759304821_2151291_1387104706_ee8bd3eb2dafd23eb6355570232363a7.jpg', 'extension': 'jpg'}, 1387104708: {'path': 'temp/1759304821_2151291_1387104708_6a2cb67b47b31b698db1cc5486ac9d3e.jpg', 'extension': 'jpg'}, 1387104712: {'path': 'temp/1759304821_2151291_1387104712_094b16d85fc76e23b2c9e29d99f27f6c.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 = 27394659; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27394659 group by h (('09', 43),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27394659 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 (27394659) 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 (27394659) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01102025 27394659 Nombre de photos uploadées : 43 / 23040 (0%) 01102025 27394659 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 01102025 27394659 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1387100823, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/92d55027bf7d605021c1226024a39158.jpg', 'username': None, 'uploaded_at': 1759303867, 'text': 'image_01102025_09_30_25_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387100822, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/17659568d6ea095696b4034b424e428d.jpg', 'username': None, 'uploaded_at': 1759303867, 'text': 'image_01102025_09_30_44_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387100886, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/94c2e52b3e31a93acf960032fbbf9530.jpg', 'username': None, 'uploaded_at': 1759303927, 'text': 'image_01102025_09_30_54_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1387100884, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/1/de2a98ffadd7f11c5e0a3630784199c0.jpg', 'username': None, 'uploaded_at': 1759303927, 'text': 'image_01102025_09_31_14_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.3909759521484375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00304412841796875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27394659, '2025-10-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2369419,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6562309265136719 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= 2369419 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27375839, 'dashboard_result_id': 15858924, '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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27376525, 'dashboard_result_id': 15858925, '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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27376906, 'dashboard_result_id': 15858926, '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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27377191, 'dashboard_result_id': 15858927, '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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27378456, 'dashboard_result_id': 15858928, '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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27378717, 'dashboard_result_id': 15858929, '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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27378994, 'dashboard_result_id': 15858930, '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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27379410, 'dashboard_result_id': 15858931, '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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27379907, 'dashboard_result_id': 15858932, '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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27380372, 'dashboard_result_id': 15858933, '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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27380848, 'dashboard_result_id': 15858934, '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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27381440, 'dashboard_result_id': 15858935, '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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27381997, 'dashboard_result_id': 15858936, '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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27382455, 'dashboard_result_id': 15858937, '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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27382890, 'dashboard_result_id': 15858938, '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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27384322, 'dashboard_result_id': 15858939, '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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27384680, 'dashboard_result_id': 15858940, '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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27384953, 'dashboard_result_id': 15858941, '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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27385199, 'dashboard_result_id': 15858942, '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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27385566, 'dashboard_result_id': 15858943, '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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27385977, 'dashboard_result_id': 15858944, '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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27386362, 'dashboard_result_id': 15858945, '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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27386738, 'dashboard_result_id': 15858946, '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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27387203, 'dashboard_result_id': 15858947, '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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27387984, 'dashboard_result_id': 15858948, '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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27388759, 'dashboard_result_id': 15858949, '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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27389340, 'dashboard_result_id': 15858950, '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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27390105, 'dashboard_result_id': 15858951, '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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27390791, 'dashboard_result_id': 15858952, '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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27391355, 'dashboard_result_id': 15858953, '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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27392176, 'dashboard_result_id': 15858954, '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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27393814, 'dashboard_result_id': 15858955, '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_P27393814_01-10-2025_09_33_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27393815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27393816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27393817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27393818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27393819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27393820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27393821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27393822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27393823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27393824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27393825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27393826, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27394264, 'dashboard_result_id': 15858956, '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_P27394264_01-10-2025_09_25_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394284, 'pht': 3726}}"}, {'dashboat_entry_day': 2369419, 'dashboard_run_id': 2379925, 'mtr_portfolio_id': 27394659, 'dashboard_result_id': 15858957, '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_P27394659_01-10-2025_09_43_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, '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 = 27375839 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': 3801426, 'mtr_portfolio_id': 27375839, 'created_at': datetime.datetime(2025, 10, 1, 6, 16), 'result': '0.06789394242096429', 'result_long': None, 'result_double': None}] Qualite : 0.06789394242096429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27375839 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27375839 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_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, 'pht': 3726}}" where mtr_portfolio_id = 27375839 and dashboard_run_id = 2379925 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`=27375839 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858924, 0.06789394242096429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27375839_01-10-2025_06_16_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27375884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27375885, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27375886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27375887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27375888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27375889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27375890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27375891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27375892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27375893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27375894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27375895, '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 = 27376525 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': 3801427, 'mtr_portfolio_id': 27376525, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 5), 'result': '0.07886199448450112', 'result_long': None, 'result_double': None}] Qualite : 0.07886199448450112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376525 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376525 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_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, 'pht': 3726}}" where mtr_portfolio_id = 27376525 and dashboard_run_id = 2379925 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`=27376525 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858925, 0.07886199448450112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376525_01-10-2025_06_16_09.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27376527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376530, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376535, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376538, '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 = 27376906 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': 3801428, 'mtr_portfolio_id': 27376906, 'created_at': datetime.datetime(2025, 10, 1, 6, 16, 32), 'result': '0.03770473165226238', 'result_long': None, 'result_double': None}] Qualite : 0.03770473165226238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27376906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27376906 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_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, 'pht': 3726}}" where mtr_portfolio_id = 27376906 and dashboard_run_id = 2379925 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`=27376906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858926, 0.03770473165226238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27376906_01-10-2025_06_16_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27376928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27376929, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27376930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27376931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27376932, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27376933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27376934, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27376935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27376936, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27376937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27376938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27376939, '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 = 27377191 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': 3801429, 'mtr_portfolio_id': 27377191, 'created_at': datetime.datetime(2025, 10, 1, 6, 17, 29), 'result': '0.0717714398830473', 'result_long': None, 'result_double': None}] Qualite : 0.0717714398830473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27377191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27377191 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_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, 'pht': 3726}}" where mtr_portfolio_id = 27377191 and dashboard_run_id = 2379925 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`=27377191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858927, 0.0717714398830473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27377191_01-10-2025_06_17_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27377197, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27377198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27377199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27377200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27377201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27377202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27377203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27377204, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27377205, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27377206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27377207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27377208, '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 = 27378456 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': 3801430, 'mtr_portfolio_id': 27378456, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 3), 'result': '0.08043277079167623', 'result_long': None, 'result_double': None}] Qualite : 0.08043277079167623 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378456 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_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, 'pht': 3726}}" where mtr_portfolio_id = 27378456 and dashboard_run_id = 2379925 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`=27378456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858928, 0.08043277079167623, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378456_01-10-2025_06_18_06.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378462, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378463, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378468, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378471, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378473, '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 = 27378717 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': 3801431, 'mtr_portfolio_id': 27378717, 'created_at': datetime.datetime(2025, 10, 1, 6, 18, 32), 'result': '0.09620342357616525', 'result_long': None, 'result_double': None}] Qualite : 0.09620342357616525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378717 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_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, 'pht': 3726}}" where mtr_portfolio_id = 27378717 and dashboard_run_id = 2379925 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`=27378717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858929, 0.09620342357616525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378717_01-10-2025_06_18_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27378729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27378730, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27378731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27378732, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27378733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27378734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27378735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27378736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27378737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27378738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27378739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27378740, '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 = 27378994 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': 3801432, 'mtr_portfolio_id': 27378994, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 2), 'result': '0.05679053781888002', 'result_long': None, 'result_double': None}] Qualite : 0.05679053781888002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27378994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27378994 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_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, 'pht': 3726}}" where mtr_portfolio_id = 27378994 and dashboard_run_id = 2379925 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`=27378994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858930, 0.05679053781888002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27378994_01-10-2025_06_20_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379006, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379018, '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 = 27379410 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': 3801433, 'mtr_portfolio_id': 27379410, 'created_at': datetime.datetime(2025, 10, 1, 6, 20, 34), 'result': '0.04770836897525871', 'result_long': None, 'result_double': None}] Qualite : 0.04770836897525871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379410 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_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, 'pht': 3726}}" where mtr_portfolio_id = 27379410 and dashboard_run_id = 2379925 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`=27379410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858931, 0.04770836897525871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379410_01-10-2025_06_20_37.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379424, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379439, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379442, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379446, '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 = 27379907 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': 3801434, 'mtr_portfolio_id': 27379907, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 6), 'result': '0.06099107227027687', 'result_long': None, 'result_double': None}] Qualite : 0.06099107227027687 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27379907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27379907 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_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, 'pht': 3726}}" where mtr_portfolio_id = 27379907 and dashboard_run_id = 2379925 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`=27379907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858932, 0.06099107227027687, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27379907_01-10-2025_06_21_09.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27379912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27379913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27379914, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27379915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27379916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27379917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27379918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27379919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27379920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27379921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27379922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27379923, '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 = 27380372 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': 3801435, 'mtr_portfolio_id': 27380372, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 35), 'result': '0.047009914209299924', 'result_long': None, 'result_double': None}] Qualite : 0.047009914209299924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380372 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_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, 'pht': 3726}}" where mtr_portfolio_id = 27380372 and dashboard_run_id = 2379925 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`=27380372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858933, 0.047009914209299924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380372_01-10-2025_06_21_39.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27380395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380403, '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 = 27380848 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': 3801436, 'mtr_portfolio_id': 27380848, 'created_at': datetime.datetime(2025, 10, 1, 6, 21, 59), 'result': '0.040862898360302366', 'result_long': None, 'result_double': None}] Qualite : 0.040862898360302366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27380848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27380848 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_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, 'pht': 3726}}" where mtr_portfolio_id = 27380848 and dashboard_run_id = 2379925 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`=27380848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858934, 0.040862898360302366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27380848_01-10-2025_06_22_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27380892, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27380893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27380894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27380895, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27380896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27380897, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27380899, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27380900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27380901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27380902, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27380903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27380904, '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 = 27381440 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': 3801437, 'mtr_portfolio_id': 27381440, 'created_at': datetime.datetime(2025, 10, 1, 6, 22, 32), 'result': '0.05168652002226309', 'result_long': None, 'result_double': None}] Qualite : 0.05168652002226309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381440 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_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, 'pht': 3726}}" where mtr_portfolio_id = 27381440 and dashboard_run_id = 2379925 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`=27381440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858935, 0.05168652002226309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381440_01-10-2025_06_22_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27381451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27381452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27381453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27381454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27381455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27381456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27381458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27381459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27381460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27381461, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27381462, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27381463, '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 = 27381997 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': 3801438, 'mtr_portfolio_id': 27381997, 'created_at': datetime.datetime(2025, 10, 1, 6, 23, 33), 'result': '0.04641152411594666', 'result_long': None, 'result_double': None}] Qualite : 0.04641152411594666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27381997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27381997 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_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, 'pht': 3726}}" where mtr_portfolio_id = 27381997 and dashboard_run_id = 2379925 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`=27381997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858936, 0.04641152411594666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27381997_01-10-2025_06_23_36.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382004, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382010, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382011, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382013, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382014, '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 = 27382455 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': 3801439, 'mtr_portfolio_id': 27382455, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 3), 'result': '0.055765434016933804', 'result_long': None, 'result_double': None}] Qualite : 0.055765434016933804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382455 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_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, 'pht': 3726}}" where mtr_portfolio_id = 27382455 and dashboard_run_id = 2379925 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`=27382455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858937, 0.055765434016933804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382455_01-10-2025_06_24_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382463, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382466, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382468, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382471, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382473, '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 = 27382890 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': 3801440, 'mtr_portfolio_id': 27382890, 'created_at': datetime.datetime(2025, 10, 1, 6, 24, 34), 'result': '0.05617742493750273', 'result_long': None, 'result_double': None}] Qualite : 0.05617742493750273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27382890 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27382890 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_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, 'pht': 3726}}" where mtr_portfolio_id = 27382890 and dashboard_run_id = 2379925 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`=27382890 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858938, 0.05617742493750273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27382890_01-10-2025_06_24_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27382941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27382942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27382943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27382944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27382945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27382946, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27382947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27382948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27382949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27382950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27382951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27382952, '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 = 27384322 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': 3801441, 'mtr_portfolio_id': 27384322, 'created_at': datetime.datetime(2025, 10, 1, 6, 25, 34), 'result': '0.056190374737689314', 'result_long': None, 'result_double': None}] Qualite : 0.056190374737689314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384322 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_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, 'pht': 3726}}" where mtr_portfolio_id = 27384322 and dashboard_run_id = 2379925 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`=27384322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858939, 0.056190374737689314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384322_01-10-2025_06_25_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384328, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384336, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384339, '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 = 27384680 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': 3801442, 'mtr_portfolio_id': 27384680, 'created_at': datetime.datetime(2025, 10, 1, 6, 26, 2), 'result': '0.027792684796642698', 'result_long': None, 'result_double': None}] Qualite : 0.027792684796642698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384680 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384680 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_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, 'pht': 3726}}" where mtr_portfolio_id = 27384680 and dashboard_run_id = 2379925 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`=27384680 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858940, 0.027792684796642698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384680_01-10-2025_06_26_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384686, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27384689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384693, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384696, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384697, '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 = 27384953 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': 3801337, 'mtr_portfolio_id': 27384953, 'created_at': datetime.datetime(2025, 10, 1, 5, 47, 1), 'result': '0.03587679899509765', 'result_long': None, 'result_double': None}] Qualite : 0.03587679899509765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27384953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27384953 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_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, 'pht': 3726}}" where mtr_portfolio_id = 27384953 and dashboard_run_id = 2379925 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`=27384953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858941, 0.03587679899509765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27384953_01-10-2025_05_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27384965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27384966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27384967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27384968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27384969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27384970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27384971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27384972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27384973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27384974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27384975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27384976, '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 = 27385199 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': 3801581, 'mtr_portfolio_id': 27385199, 'created_at': datetime.datetime(2025, 10, 1, 6, 5, 30), 'result': '0.06667589482955814', 'result_long': None, 'result_double': None}] Qualite : 0.06667589482955814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385199 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_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, 'pht': 3726}}" where mtr_portfolio_id = 27385199 and dashboard_run_id = 2379925 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`=27385199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858942, 0.06667589482955814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385199_01-10-2025_06_05_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385213, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385216, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385219, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385223, '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 = 27385566 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': 3801705, 'mtr_portfolio_id': 27385566, 'created_at': datetime.datetime(2025, 10, 1, 6, 19, 35), 'result': '0.08794878679382613', 'result_long': None, 'result_double': None}] Qualite : 0.08794878679382613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385566 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_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, 'pht': 3726}}" where mtr_portfolio_id = 27385566 and dashboard_run_id = 2379925 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`=27385566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858943, 0.08794878679382613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385566_01-10-2025_06_19_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385627, '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 = 27385977 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': 3801822, 'mtr_portfolio_id': 27385977, 'created_at': datetime.datetime(2025, 10, 1, 6, 33, 33), 'result': '0.04726542234494339', 'result_long': None, 'result_double': None}] Qualite : 0.04726542234494339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27385977 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27385977 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_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, 'pht': 3726}}" where mtr_portfolio_id = 27385977 and dashboard_run_id = 2379925 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`=27385977 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858944, 0.04726542234494339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27385977_01-10-2025_06_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27385983, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27385984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27385985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27385986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27385987, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27385988, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27385989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27385990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27385991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27385992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27385993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27385994, '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 = 27386362 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': 3802022, 'mtr_portfolio_id': 27386362, 'created_at': datetime.datetime(2025, 10, 1, 6, 47), 'result': '0.05934289922956309', 'result_long': None, 'result_double': None}] Qualite : 0.05934289922956309 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386362 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_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, 'pht': 3726}}" where mtr_portfolio_id = 27386362 and dashboard_run_id = 2379925 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`=27386362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858945, 0.05934289922956309, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386362_01-10-2025_06_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386407, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27386409, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386410, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386412, '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 = 27386738 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': 3802223, 'mtr_portfolio_id': 27386738, 'created_at': datetime.datetime(2025, 10, 1, 7, 2, 59), 'result': '0.04737731496260788', 'result_long': None, 'result_double': None}] Qualite : 0.04737731496260788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27386738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27386738 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_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, 'pht': 3726}}" where mtr_portfolio_id = 27386738 and dashboard_run_id = 2379925 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`=27386738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858946, 0.04737731496260788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27386738_01-10-2025_07_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27386750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27386751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27386752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27386753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27386754, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27386755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27386756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27386757, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27386758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27386760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27386761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27386762, '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 = 27387203 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': 3802441, 'mtr_portfolio_id': 27387203, 'created_at': datetime.datetime(2025, 10, 1, 7, 17), 'result': '0.10709898913061865', 'result_long': None, 'result_double': None}] Qualite : 0.10709898913061865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387203 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_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, 'pht': 3726}}" where mtr_portfolio_id = 27387203 and dashboard_run_id = 2379925 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`=27387203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858947, 0.10709898913061865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387203_01-10-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27387269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27387270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27387271, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27387272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27387273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27387274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27387276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27387277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27387278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27387279, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27387280, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27387281, '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 = 27387984 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': 3802704, 'mtr_portfolio_id': 27387984, 'created_at': datetime.datetime(2025, 10, 1, 7, 33, 36), 'result': '0.03432529522791524', 'result_long': None, 'result_double': None}] Qualite : 0.03432529522791524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27387984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27387984 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_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, 'pht': 3726}}" where mtr_portfolio_id = 27387984 and dashboard_run_id = 2379925 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`=27387984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858948, 0.03432529522791524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27387984_01-10-2025_07_33_36.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388024, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388025, '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 = 27388759 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': 3802946, 'mtr_portfolio_id': 27388759, 'created_at': datetime.datetime(2025, 10, 1, 7, 47, 4), 'result': '0.029221342880138702', 'result_long': None, 'result_double': None}] Qualite : 0.029221342880138702 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27388759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27388759 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_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, 'pht': 3726}}" where mtr_portfolio_id = 27388759 and dashboard_run_id = 2379925 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`=27388759 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858949, 0.029221342880138702, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27388759_01-10-2025_07_47_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27388801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27388802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27388803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27388804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27388805, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27388806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27388807, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27388808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27388809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27388810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27388811, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27388812, '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 = 27389340 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': 3803167, 'mtr_portfolio_id': 27389340, 'created_at': datetime.datetime(2025, 10, 1, 8, 5, 31), 'result': '0.043546774742017916', 'result_long': None, 'result_double': None}] Qualite : 0.043546774742017916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27389340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27389340 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_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, 'pht': 3726}}" where mtr_portfolio_id = 27389340 and dashboard_run_id = 2379925 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`=27389340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858950, 0.043546774742017916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27389340_01-10-2025_08_05_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27389377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27389378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27389379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27389380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27389381, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27389382, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27389383, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27389384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27389385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27389386, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27389387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27389388, '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 = 27390105 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': 3803495, 'mtr_portfolio_id': 27390105, 'created_at': datetime.datetime(2025, 10, 1, 8, 18, 59), 'result': '0.045633077260058254', 'result_long': None, 'result_double': None}] Qualite : 0.045633077260058254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390105 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_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, 'pht': 3726}}" where mtr_portfolio_id = 27390105 and dashboard_run_id = 2379925 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`=27390105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858951, 0.045633077260058254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390105_01-10-2025_08_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390132, '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 = 27390791 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': 3803728, 'mtr_portfolio_id': 27390791, 'created_at': datetime.datetime(2025, 10, 1, 8, 33, 28), 'result': '0.06617770179097766', 'result_long': None, 'result_double': None}] Qualite : 0.06617770179097766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27390791 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27390791 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_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, 'pht': 3726}}" where mtr_portfolio_id = 27390791 and dashboard_run_id = 2379925 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`=27390791 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858952, 0.06617770179097766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27390791_01-10-2025_08_33_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27390832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27390833, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27390834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27390835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27390836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27390837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27390838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27390839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27390840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27390841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27390842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27390843, '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 = 27391355 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': 3803988, 'mtr_portfolio_id': 27391355, 'created_at': datetime.datetime(2025, 10, 1, 8, 47, 3), 'result': '0.08950805302203253', 'result_long': None, 'result_double': None}] Qualite : 0.08950805302203253 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27391355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27391355 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_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, 'pht': 3726}}" where mtr_portfolio_id = 27391355 and dashboard_run_id = 2379925 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`=27391355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858953, 0.08950805302203253, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27391355_01-10-2025_08_47_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27391363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27391364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27391365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27391366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27391367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27391368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27391369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27391370, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27391371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27391372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27391373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27391374, '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 = 27392176 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 = 27392176 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 = 27392176 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27392176 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 = 27392176 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 = 27392176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27392176_01-10-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27392176 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_P27392176_01-10-2025_09_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27392204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27392205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27392206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27392207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27392208, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27392209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27392210, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27392211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27392212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27392213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27392214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27392215, 'pht': 3726}}" where mtr_portfolio_id = 27392176 and dashboard_run_id = 2379925 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 = 27393814 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 = 27393814 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 = 27393814 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27393814 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 = 27393814 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 = 27393814 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27393814_01-10-2025_09_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27393814 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_P27393814_01-10-2025_09_33_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27393815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27393816, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27393817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27393818, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27393819, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27393820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27393821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27393822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27393823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27393824, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27393825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27393826, 'pht': 3726}}" where mtr_portfolio_id = 27393814 and dashboard_run_id = 2379921 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 = 27394264 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 = 27394264 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 = 27394264 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27394264 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 = 27394264 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 = 27394264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394264_01-10-2025_09_25_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27394264 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_P27394264_01-10-2025_09_25_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394280, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394282, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394284, 'pht': 3726}}" where mtr_portfolio_id = 27394264 and dashboard_run_id = 2379921 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 = 27394659 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': 3804916, 'mtr_portfolio_id': 27394659, 'created_at': datetime.datetime(2025, 10, 1, 9, 47), 'result': '0.053429043929547525', 'result_long': None, 'result_double': None}] Qualite : 0.053429043929547525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27394659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27394659 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_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, 'pht': 3726}}" where mtr_portfolio_id = 27394659 and dashboard_run_id = 2379921 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`=27394659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15858957, 0.053429043929547525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27394659_01-10-2025_09_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27394666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27394667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27394668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27394669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27394671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27394672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27394673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27394674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27394675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27394676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27394677, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27394678, '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 (27375839,27376525,27376906,27377191,27378456,27378717,27378994,27379410,27379907,27380372,27380848,27381440,27381997,27382455,27382890,27384322,27384680,27384953,27385199,27385566,27385977,27386362,27386738,27387203,27387984,27388759,27389340,27390105,27390791,27391355,27392176,27393814,27394264,27394659) result : ((1387049350,), (1387051024,), (1387051025,), (1387051027,), (1387051041,), (1387051044,), (1387051049,), (1387051073,), (1387051318,), (1387051321,), (1387051333,), (1387051551,), (1387051617,), (1387051623,), (1387052038,), (1387052041,), (1387052204,), (1387052206,), (1387052208,), (1387052211,), (1387052272,), (1387052289,), (1387052294,), (1387052297,), (1387052453,), (1387052457,), (1387052478,), (1387052500,), (1387052502,), (1387052504,), (1387052768,), (1387052851,), (1387052908,), (1387052905,), (1387052965,), (1387052985,), (1387052989,), (1387053194,), (1387053439,), (1387053472,), (1387053474,), (1387053485,), (1387053491,), (1387053509,), (1387053515,), (1387053518,), (1387053530,), (1387053533,), (1387053536,), (1387053540,), (1387053543,), (1387053588,), (1387053595,), (1387053599,), (1387053601,), (1387053604,), (1387053618,), (1387053619,), (1387053620,), (1387053622,), (1387053626,), (1387053640,), (1387053653,), (1387053656,), (1387053660,), (1387053664,), (1387053666,), (1387053670,), (1387053673,), (1387053674,), (1387053684,), (1387053688,), (1387053691,), (1387053694,), (1387053726,), (1387053727,), (1387053738,), (1387053753,), (1387053756,), (1387053761,), (1387053767,), (1387053771,), (1387053815,), (1387053836,), (1387053839,), (1387053842,), (1387053856,), (1387053864,), (1387053868,), (1387053901,), (1387053903,), (1387053905,), (1387053908,), (1387053911,), (1387053914,), (1387053926,), (1387053928,), (1387053929,), (1387053932,), (1387053935,), (1387053938,), (1387053962,), (1387053965,), (1387053968,), (1387053971,), (1387054013,), (1387054047,), (1387054049,), (1387054069,), (1387054083,), (1387053999,), (1387054002,), (1387054003,), (1387054006,), (1387054009,), (1387054089,), (1387054091,), (1387054095,), (1387054137,), (1387054180,), (1387054182,), (1387054183,), (1387054201,), (1387054206,), (1387054210,), (1387054220,), (1387054223,), (1387054225,), (1387054229,), (1387054231,), (1387054234,), (1387054262,), (1387054270,), (1387054274,), (1387054277,), (1387054281,), (1387054289,), (1387054379,), (1387054382,), (1387054385,), (1387054420,), (1387054426,), (1387054427,), (1387054429,), (1387054454,), (1387054457,), (1387054459,), (1387054463,), (1387054467,), (1387054478,), (1387054481,), (1387054484,), (1387054487,), (1387054499,), (1387054502,), (1387054504,), (1387054506,), (1387054519,), (1387054521,), (1387054522,), (1387054525,), (1387054528,), (1387054565,), (1387054567,), (1387054569,), (1387054573,), (1387054577,), (1387054595,), (1387054598,), (1387054603,), (1387054609,), (1387054610,), (1387054612,), (1387054617,), (1387054620,), (1387054626,), (1387054628,), (1387054631,), (1387054634,), (1387054635,), (1387054636,), (1387054637,), (1387054638,), (1387054639,), (1387054651,), (1387054656,), (1387054658,), (1387054659,), (1387054660,), (1387054680,), (1387054678,), (1387054721,), (1387054745,), (1387054749,), (1387054752,), (1387054755,), (1387054821,), (1387054825,), (1387054828,), (1387054905,), (1387054916,), (1387054931,), (1387054934,), (1387054949,), (1387054959,), (1387054982,), (1387054985,), (1387054988,), (1387054992,), (1387054995,), (1387054997,), (1387055004,), (1387055006,), (1387055008,), (1387055011,), (1387055014,), (1387055017,), (1387055025,), (1387055028,), (1387055032,), (1387055035,), (1387055064,), (1387055075,), (1387055079,), (1387055129,), (1387055131,), (1387055134,), (1387055137,), (1387055146,), (1387055153,), (1387055155,), (1387055156,), (1387055162,), (1387055164,), (1387055167,), (1387055170,), (1387055174,), (1387055176,), (1387055193,), (1387055196,), (1387055200,), (1387055205,), (1387055210,), (1387055228,), (1387055231,), (1387055234,), (1387055249,), (1387055252,), (1387055255,), (1387055299,), (1387055310,), (1387055312,), (1387055315,), (1387055317,), (1387055335,), (1387055401,), (1387055404,), (1387055405,), (1387055579,), (1387055583,), (1387055585,), (1387055589,), (1387055593,), (1387055598,), (1387055599,), (1387055611,), (1387055613,), (1387055643,), (1387055645,), (1387055647,), (1387055655,), (1387056068,), (1387059050,), (1387059081,), (1387059084,), (1387059085,), (1387059087,), (1387059090,), (1387059093,), (1387059106,), (1387059109,), (1387059130,), (1387059138,), (1387059146,), (1387059155,), (1387059162,), (1387059163,), (1387059164,), (1387059169,), (1387059210,), (1387059231,), (1387059245,), (1387059249,), (1387059250,), (1387059251,), (1387059252,), (1387059257,), (1387059275,), (1387059277,), (1387059278,), (1387059281,), (1387059336,), (1387059342,), (1387059386,), (1387059392,), (1387059394,), (1387059397,), (1387059403,), (1387059416,), (1387059419,), (1387059425,), (1387059428,), (1387059432,), (1387059473,), (1387059475,), (1387059477,), (1387059480,), (1387059494,), (1387059501,), (1387059505,), (1387059509,), (1387059516,), (1387059527,), (1387059567,), (1387059574,), (1387059578,), (1387059585,), (1387059589,), (1387059613,), (1387059614,), (1387059616,), (1387059617,), (1387059626,), (1387059633,), (1387059640,), (1387059642,), (1387059644,), (1387059645,), (1387059646,), (1387059648,), (1387059664,), (1387059666,), (1387059668,), (1387059671,), (1387059712,), (1387059705,), (1387059707,), (1387059709,), (1387059755,), (1387059785,), (1387059788,), (1387059904,), (1387059908,), (1387059912,), (1387059975,), (1387059983,), (1387059985,), (1387060001,), (1387060004,), (1387060006,), (1387060008,), (1387060011,), (1387060030,), (1387060033,), (1387060036,), (1387060038,), (1387060065,), (1387060066,), (1387060069,), (1387060073,), (1387060077,), (1387060089,), (1387060093,), (1387060097,), (1387060142,), (1387060145,), (1387060148,), (1387060153,), (1387060229,), (1387060247,), (1387060250,), (1387060254,), (1387060258,), (1387060281,), (1387060284,), (1387060287,), (1387060291,), (1387060295,), (1387060299,), (1387060833,), (1387060835,), (1387060841,), (1387060843,), (1387060844,), (1387060850,), (1387060855,), (1387060864,), (1387060905,), (1387060906,), (1387061570,), (1387061589,), (1387060766,), (1387060769,), (1387060800,), (1387060804,), (1387060899,), (1387060901,), (1387060903,), (1387060930,), (1387060931,), (1387060944,), (1387060950,), (1387061450,), (1387061452,), (1387061459,), (1387061546,), (1387061593,), (1387061594,), (1387061597,), (1387061598,), (1387061602,), (1387061603,), (1387061607,), (1387061608,), (1387061616,), (1387061636,), (1387061638,), (1387061640,), (1387061641,), (1387061671,), (1387061683,), (1387061686,), (1387061690,), (1387061694,), (1387061716,), (1387061719,), (1387061721,), (1387061805,), (1387061997,), (1387061999,), (1387062001,), (1387062020,), (1387062022,), (1387062024,), (1387062040,), (1387062081,), (1387062086,), (1387062089,), (1387062093,), (1387062128,), (1387062130,), (1387062132,), (1387062134,), (1387062136,), (1387062145,), (1387062147,), (1387062149,), (1387062152,), (1387062156,), (1387062157,), (1387062159,), (1387062161,), (1387062163,), (1387062164,), (1387062168,), (1387062175,), (1387062177,), (1387062179,), (1387062181,), (1387062182,), (1387062188,), (1387062189,), (1387062191,), (1387062192,), (1387062199,), (1387062215,), (1387062269,), (1387062236,), (1387062238,), (1387062240,), (1387062327,), (1387062330,), (1387062333,), (1387062335,), (1387062338,), (1387062370,), (1387062384,), (1387062393,), (1387062401,), (1387062404,), (1387062405,), (1387062414,), (1387062416,), (1387062417,), (1387062419,), (1387062435,), (1387062442,), (1387062497,), (1387062499,), (1387062501,), (1387062504,), (1387062539,), (1387062542,), (1387062545,), (1387062547,), (1387062564,), (1387062566,), (1387062570,), (1387062584,), (1387062590,), (1387062591,), (1387062608,), (1387062613,), (1387062615,), (1387062616,), (1387062617,), (1387062631,), (1387062633,), (1387062635,), (1387062637,), (1387062647,), (1387062650,), (1387062653,), (1387062664,), (1387062666,), (1387062668,), (1387062670,), (1387062673,), (1387062676,), (1387062683,), (1387062685,), (1387062687,), (1387062690,), (1387062692,), (1387062694,), (1387062701,), (1387062704,), (1387062707,), (1387062719,), (1387062721,), (1387062723,), (1387062724,), (1387062727,), (1387062758,), (1387062738,), (1387062741,), (1387062744,), (1387062747,), (1387062751,), (1387062779,), (1387062805,), (1387062844,), (1387062850,), (1387062857,), (1387062861,), (1387062867,), (1387062929,), (1387062931,), (1387062933,), (1387062936,), (1387063039,), (1387063050,), (1387063055,), (1387063058,), (1387063082,), (1387063087,), (1387063088,), (1387063089,), (1387063097,), (1387063099,), (1387063100,), (1387063101,), (1387063103,), (1387063111,), (1387063127,), (1387063130,), (1387063132,), (1387063134,), (1387063137,), (1387063139,), (1387063145,), (1387063166,), (1387063170,), (1387063174,), (1387063177,), (1387063180,), (1387063186,), (1387063206,), (1387063208,), (1387063210,), (1387063212,), (1387063214,), (1387063229,), (1387063230,), (1387063231,), (1387063233,), (1387063240,), (1387063246,), (1387063248,), (1387063253,), (1387063258,), (1387063260,), (1387063283,), (1387063269,), (1387063271,), (1387063273,), (1387063278,), (1387063280,), (1387063289,), (1387063294,), (1387063295,), (1387063296,), (1387063298,), (1387063309,), (1387063311,), (1387063315,), (1387063325,), (1387063327,), (1387063329,), (1387063331,), (1387063333,), (1387063336,), (1387063354,), (1387063355,), (1387063356,), (1387063358,), (1387063368,), (1387063393,), (1387063394,), (1387063395,), (1387063397,), (1387063429,), (1387063431,), (1387063433,), (1387063447,), (1387063449,), (1387063453,), (1387063456,), (1387063458,), (1387063461,), (1387063469,), (1387063472,), (1387063476,), (1387063479,), (1387063482,), (1387063495,), (1387063498,), (1387063501,), (1387063515,), (1387063517,), (1387063518,), (1387063521,), (1387063530,), (1387063535,), (1387063572,), (1387063575,), (1387063581,), (1387063583,), (1387063587,), (1387063589,), (1387063609,), (1387063612,), (1387063614,), (1387063632,), (1387063635,), (1387063637,), (1387063647,), (1387063655,), (1387063658,), (1387063709,), (1387064365,), (1387063600,), (1387063602,), (1387063604,), (1387063664,), (1387063666,), (1387063690,), (1387063703,), (1387063752,), (1387063753,), (1387063766,), (1387063767,), (1387063770,), (1387063773,), (1387063776,), (1387063777,), (1387063781,), (1387063782,), (1387063784,), (1387063786,), (1387063789,), (1387064266,), (1387064359,), (1387064361,), (1387064363,), (1387064374,), (1387064378,), (1387064381,), (1387064384,), (1387064388,), (1387065043,), (1387065046,), (1387065049,), (1387065051,), (1387065053,), (1387065066,), (1387065068,), (1387065071,), (1387065075,), (1387065120,), (1387065586,), (1387065602,), (1387065605,), (1387065608,), (1387065620,), (1387065623,), (1387065626,), (1387065628,), (1387065647,), (1387065728,), (1387065725,), (1387065727,), (1387065748,), (1387065752,), (1387065755,), (1387065827,), (1387065830,), (1387065833,), (1387065835,), (1387065837,), (1387065838,), (1387065854,), (1387065856,), (1387065857,), (1387065858,), (1387065866,), (1387065906,), (1387065907,), (1387065908,), (1387065910,), (1387065913,), (1387065926,), (1387065930,), (1387065968,), (1387065972,), (1387065976,), (1387065980,), (1387066018,), (1387066021,), (1387066049,), (1387066051,), (1387066101,), (1387066103,), (1387066104,), (1387066107,), (1387066120,), (1387066122,), (1387066125,), (1387066133,), (1387066194,), (1387066198,), (1387066202,), (1387066205,), (1387066218,), (1387066220,), (1387066222,), (1387066225,), (1387066233,), (1387066241,), (1387066277,), (1387066279,), (1387066280,), (1387066283,), (1387066285,), (1387066287,), (1387066293,), (1387066296,), (1387066299,), (1387066305,), (1387066308,), (1387066310,), (1387066337,), (1387066316,), (1387066323,), (1387066326,), (1387066335,), (1387066343,), (1387066346,), (1387066351,), (1387066355,), (1387066374,), (1387066386,), (1387066387,), (1387066388,), (1387066389,), (1387066413,), (1387066418,), (1387066422,), (1387066424,), (1387066439,), (1387066442,), (1387066444,), (1387066447,), (1387066476,), (1387066478,), (1387066481,), (1387066484,), (1387066489,), (1387066493,), (1387066514,), (1387066518,), (1387066521,), (1387066528,), (1387066539,), (1387066572,), (1387066574,), (1387066597,), (1387066601,), (1387066604,), (1387066607,), (1387066609,), (1387066612,), (1387066634,), (1387066639,), (1387066642,), (1387066645,), (1387066647,), (1387066659,), (1387066661,), (1387066662,), (1387066663,), (1387066667,), (1387066687,), (1387066692,), (1387066696,), (1387066699,), (1387066702,), (1387066718,), (1387066721,), (1387066724,), (1387066727,), (1387066729,), (1387066755,), (1387066757,), (1387066758,), (1387066762,), (1387066768,), (1387066780,), (1387066785,), (1387066788,), (1387066823,), (1387066811,), (1387066814,), (1387066817,), (1387066819,), (1387066821,), (1387066840,), (1387066844,), (1387066846,), (1387066848,), (1387066850,), (1387066876,), (1387066879,), (1387066882,), (1387066885,), (1387066887,), (1387066901,), (1387066904,), (1387066907,), (1387066910,), (1387066914,), (1387066917,), (1387066958,), (1387066961,), (1387066962,), (1387066963,), (1387066965,), (1387066978,), (1387066979,), (1387066982,), (1387066986,), (1387066990,), (1387067016,), (1387067020,), (1387067023,), (1387067026,), (1387067030,), (1387067033,), (1387067065,), (1387067088,), (1387067090,), (1387067092,), (1387067119,), (1387067122,), (1387067123,), (1387067124,), (1387067126,), (1387067128,), (1387067145,), (1387067147,), (1387067149,), (1387067152,), (1387067173,), (1387067175,), (1387067178,), (1387067199,), (1387067203,), (1387067212,), (1387067220,), (1387067222,), (1387067231,), (1387067244,), (1387067248,), (1387067251,), (1387067255,), (1387067281,), (1387067284,), (1387067287,), (1387067289,), (1387067935,), (1387067939,), (1387067945,), (1387067949,), (1387067957,), (1387067313,), (1387067491,), (1387068157,), (1387068161,), (1387068164,), (1387068166,), (1387068170,), (1387068191,), (1387068195,), (1387068198,), (1387068540,), (1387068543,), (1387068727,), (1387068735,), (1387068739,), (1387068743,), (1387068754,), (1387068759,), (1387068950,), (1387069078,), (1387069081,), (1387069083,), (1387069085,), (1387069089,), (1387069114,), (1387069115,), (1387069118,), (1387069121,), (1387069125,), (1387069153,), (1387069158,), (1387069162,), (1387069182,), (1387069186,), (1387069190,), (1387069194,), (1387069197,), (1387069199,), (1387069221,), (1387069224,), (1387069227,), (1387069232,), (1387069250,), (1387069254,), (1387069286,), (1387071779,), (1387071773,), (1387071776,), (1387071897,), (1387071925,), (1387071948,), (1387071951,), (1387071973,), (1387072552,), (1387072576,), (1387072580,), (1387072586,), (1387072591,), (1387072609,), (1387072611,), (1387072615,), (1387072620,), (1387072640,), (1387072643,), (1387072646,), (1387072677,), (1387072681,), (1387072687,), (1387072705,), (1387072709,), (1387072712,), (1387072714,), (1387072734,), (1387072737,), (1387072742,), (1387072750,), (1387072780,), (1387072783,), (1387072786,), (1387072813,), (1387072841,), (1387072845,), (1387072849,), (1387072852,), (1387072874,), (1387072902,), (1387072906,), (1387072911,), (1387072918,), (1387072922,), (1387072925,), (1387072930,), (1387072934,), (1387072937,), (1387072940,), (1387072958,), (1387072960,), (1387072962,), (1387072964,), (1387072967,), (1387072971,), (1387072984,), (1387072986,), (1387072989,), (1387072993,), (1387072995,), (1387072997,), (1387073002,), (1387073005,), (1387073009,), (1387073012,), (1387073015,), (1387073016,), (1387073023,), (1387073031,), (1387073035,), (1387073039,), (1387073048,), (1387073050,), (1387073053,), (1387073056,), (1387073059,), (1387073062,), (1387073073,), (1387073077,), (1387073083,), (1387073114,), (1387073129,), (1387073206,), (1387073213,), (1387073218,), (1387073224,), (1387073228,), (1387073231,), (1387073251,), (1387073257,), (1387073261,), (1387073267,), (1387073269,), (1387073284,), (1387073288,), (1387073291,), (1387073292,), (1387073294,), (1387073295,), (1387073310,), (1387073314,), (1387073317,), (1387073320,), (1387073325,), (1387073328,), (1387073401,), (1387073405,), (1387073407,), (1387073425,), (1387073428,), (1387073429,), (1387073432,), (1387073485,), (1387073489,), (1387073517,), (1387073514,), (1387073515,), (1387073541,), (1387073544,), (1387073546,), (1387073570,), (1387073572,), (1387073575,), (1387073578,), (1387073583,), (1387073591,), (1387073593,), (1387073600,), (1387073604,), (1387073607,), (1387073610,), (1387073612,), (1387073627,), (1387073630,), (1387073631,), (1387073632,), (1387073634,), (1387073653,), (1387073655,), (1387073657,), (1387073688,), (1387073692,), (1387073696,), (1387073699,), (1387073702,), (1387073716,), (1387073739,), (1387073742,), (1387073744,), (1387073745,), (1387073747,), (1387073749,), (1387073765,), (1387073768,), (1387073769,), (1387073771,), (1387073776,), (1387073795,), (1387073798,), (1387073802,), (1387073805,), (1387073808,), (1387073810,), (1387073821,), (1387073824,), (1387073827,), (1387073830,), (1387073833,), (1387073836,), (1387073843,), (1387073860,), (1387073870,), (1387073880,), (1387073902,), (1387073905,), (1387073909,), (1387073913,), (1387073917,), (1387073920,), (1387073948,), (1387073952,), (1387073955,), (1387073958,), (1387073975,), (1387073977,), (1387073980,), (1387073984,), (1387073988,), (1387073990,), (1387073992,), (1387073993,), (1387073994,), (1387073999,), (1387074009,), (1387074013,), (1387074017,), (1387074019,), (1387074022,), (1387074025,), (1387074038,), (1387074032,), (1387074034,), (1387074036,), (1387074064,), (1387074099,), (1387074228,), (1387074231,), (1387074255,), (1387074259,), (1387074261,), (1387074264,), (1387074271,), (1387074287,), (1387074290,), (1387074293,), (1387074296,), (1387074299,), (1387074300,), (1387074302,), (1387074308,), (1387074310,), (1387074338,), (1387074340,), (1387074344,), (1387074347,), (1387074349,), (1387074352,), (1387074354,), (1387074355,), (1387074357,), (1387074359,), (1387074394,), (1387074396,), (1387074398,), (1387074401,), (1387074407,), (1387074424,), (1387074426,), (1387074430,), (1387074433,), (1387074454,), (1387074739,), (1387074817,), (1387074820,), (1387074915,), (1387074966,), (1387075000,), (1387075005,), (1387075010,), (1387075013,), (1387075019,), (1387075028,), (1387075047,), (1387075050,), (1387075053,), (1387075055,), (1387075492,), (1387075060,), (1387075489,), (1387075519,), (1387075522,), (1387075524,), (1387075526,), (1387075528,), (1387075537,), (1387075546,), (1387075549,), (1387075552,), (1387076018,), (1387076021,), (1387076024,), (1387076027,), (1387076240,), (1387076343,), (1387076346,), (1387076348,), (1387076351,), (1387076354,), (1387076365,), (1387076369,), (1387076373,), (1387076377,), (1387076402,), (1387076413,), (1387076415,), (1387076418,), (1387076434,), (1387076436,), (1387076439,), (1387076442,), (1387076454,), (1387076460,), (1387076485,), (1387076491,), (1387076495,), (1387076499,), (1387076515,), (1387076518,), (1387076522,), (1387076525,), (1387076547,), (1387076552,), (1387076554,), (1387076556,), (1387076558,), (1387076572,), (1387076575,), (1387076578,), (1387076580,), (1387076582,), (1387076584,), (1387076629,), (1387076612,), (1387076616,), (1387076621,), (1387076625,), (1387076645,), (1387076650,), (1387076652,), (1387076711,), (1387076715,), (1387076717,), (1387076721,), (1387076724,), (1387076728,), (1387076741,), (1387076744,), (1387076747,), (1387076750,), (1387076753,), (1387076760,), (1387076777,), (1387076780,), (1387076785,), (1387076788,), (1387076792,), (1387076795,), (1387076799,), (1387076801,), (1387076802,), (1387076806,), (1387076809,), (1387076815,), (1387076819,), (1387076827,), (1387076830,), (1387076849,), (1387076852,), (1387076853,), (1387076854,), (1387076869,), (1387076872,), (1387076873,), (1387076875,), (1387076878,), (1387076884,), (1387076901,), (1387076904,), (1387076907,), (1387076910,), (1387076913,), (1387076914,), (1387076918,), (1387076920,), (1387076922,), (1387076926,), (1387076927,), (1387076929,), (1387076932,), (1387076951,), (1387076956,), (1387076961,), (1387076965,), (1387076968,), (1387076981,), (1387076984,), (1387076986,), (1387076988,), (1387076990,), (1387076998,), (1387077034,), (1387077038,), (1387077091,), (1387077096,), (1387077098,), (1387077105,), (1387077119,), (1387077124,), (1387077127,), (1387077131,), (1387077134,), (1387077167,), (1387077151,), (1387077155,), (1387077157,), (1387077160,), (1387077164,), (1387077172,), (1387077175,), (1387077178,), (1387077188,), (1387077191,), (1387077196,), (1387077200,), (1387077210,), (1387077231,), (1387077233,), (1387077235,), (1387077237,), (1387077239,), (1387077241,), (1387077257,), (1387077260,), (1387077262,), (1387077289,), (1387077292,), (1387077295,), (1387077297,), (1387077300,), (1387077303,), (1387077311,), (1387077313,), (1387077316,), (1387077319,), (1387077323,), (1387077332,), (1387077347,), (1387077357,), (1387077359,), (1387077362,), (1387077379,), (1387077381,), (1387077383,), (1387077385,), (1387077393,), (1387077397,), (1387077416,), (1387077420,), (1387077423,), (1387077427,), (1387077440,), (1387077444,), (1387077447,), (1387077450,), (1387077453,), (1387077456,), (1387077484,), (1387077488,), (1387077509,), (1387077551,), (1387077570,), (1387077574,), (1387077630,), (1387077621,), (1387077627,), (1387077650,), (1387077653,), (1387077655,), (1387077657,), (1387077658,), (1387077667,), (1387077676,), (1387077680,), (1387077683,), (1387077686,), (1387077689,), (1387077692,), (1387077705,), (1387077707,), (1387077709,), (1387077731,), (1387077734,), (1387077737,), (1387077741,), (1387077744,), (1387077748,), (1387077750,), (1387077760,), (1387077762,), (1387077765,), (1387077770,), (1387077776,), (1387077782,), (1387077801,), (1387077805,), (1387077809,), (1387077813,), (1387077831,), (1387077835,), (1387077838,), (1387077839,), (1387077873,), (1387077876,), (1387077879,), (1387077883,), (1387077888,), (1387077891,), (1387077897,), (1387077898,), (1387077908,), (1387077913,), (1387077923,), (1387077927,), (1387077937,), (1387077945,), (1387077959,), (1387077961,), (1387077962,), (1387077964,), (1387077966,), (1387077994,), (1387077997,), (1387078000,), (1387078003,), (1387078006,), (1387078016,), (1387078036,), (1387078041,), (1387078044,), (1387078420,), (1387078478,), (1387078481,), (1387078485,), (1387078684,), (1387078686,), (1387078689,), (1387078696,), (1387078697,), (1387078673,), (1387078677,), (1387078681,), (1387078849,), (1387078851,), (1387078854,), (1387078856,), (1387078928,), (1387078959,), (1387078961,), (1387078962,), (1387078965,), (1387078970,), (1387078976,), (1387078996,), (1387078999,), (1387079002,), (1387079007,), (1387079010,), (1387079013,), (1387079019,), (1387079021,), (1387079026,), (1387079028,), (1387079031,), (1387079143,), (1387079413,), (1387079417,), (1387079421,), (1387079534,), (1387079537,), (1387079615,), (1387079621,), (1387079627,), (1387079704,), (1387079738,), (1387079742,), (1387079746,), (1387079780,), (1387079784,), (1387079788,), (1387079993,), (1387079997,), (1387080000,), (1387080009,), (1387080014,), (1387080123,), (1387080125,), (1387080127,), (1387080133,), (1387080140,), (1387080156,), (1387080179,), (1387080184,), (1387080188,), (1387080206,), (1387080289,), (1387080291,), (1387080295,), (1387080300,), (1387080304,), (1387080306,), (1387080311,), (1387080312,), (1387080314,), (1387080319,), (1387080331,), (1387080336,), (1387080346,), (1387080348,), (1387080351,), (1387080378,), (1387080361,), (1387080366,), (1387080398,), (1387080402,), (1387080404,), (1387080415,), (1387080421,), (1387080564,), (1387080580,), (1387080589,), (1387080592,), (1387080595,), (1387080602,), (1387080670,), (1387080680,), (1387080795,), (1387080798,), (1387080809,), (1387080811,), (1387080998,), (1387081003,), (1387081061,), (1387081065,), (1387081247,), (1387081260,), (1387081283,), (1387081311,), (1387081320,), (1387081414,), (1387081418,), (1387081423,), (1387081426,), (1387081455,), (1387081458,), (1387081462,), (1387081466,), (1387081469,), (1387081471,), (1387081476,), (1387081479,), (1387081485,), (1387081504,), (1387081507,), (1387081512,), (1387081516,), (1387081520,), (1387081644,), (1387081648,), (1387081652,), (1387081661,), (1387081669,), (1387081699,), (1387081705,), (1387081708,), (1387081712,), (1387081894,), (1387081908,), (1387081910,), (1387081912,), (1387081915,), (1387081918,), (1387081977,), (1387081979,), (1387081984,), (1387081987,), (1387081990,), (1387081994,), (1387082139,), (1387082152,), (1387082164,), (1387082168,), (1387082173,), (1387082217,), (1387082199,), (1387082215,), (1387082258,), (1387082262,), (1387082266,), (1387082281,), (1387082284,), (1387082371,), (1387082375,), (1387082379,), (1387082435,), (1387082437,), (1387082440,), (1387082443,), (1387082557,), (1387082703,), (1387082740,), (1387082743,), (1387082844,), (1387082896,), (1387082897,), (1387082999,), (1387083001,), (1387083003,), (1387083005,), (1387083009,), (1387083013,), (1387083035,), (1387083043,), (1387083045,), (1387083047,), (1387083049,), (1387083080,), (1387083082,), (1387083084,), (1387083111,), (1387083116,), (1387083120,), (1387083124,), (1387083127,), (1387083132,), (1387083160,), (1387083163,), (1387083165,), (1387083168,), (1387083171,), (1387083188,), (1387083193,), (1387083197,), (1387083248,), (1387083253,), (1387083255,), (1387083257,), (1387083260,), (1387083263,), (1387083430,), (1387083464,), (1387083469,), (1387083473,), (1387083589,), (1387083594,), (1387083597,), (1387083602,), (1387083607,), (1387083610,), (1387083612,), (1387083615,), (1387083622,), (1387083628,), (1387083632,), (1387083634,), (1387083674,), (1387083666,), (1387083669,), (1387083672,), (1387083756,), (1387083760,), (1387083763,), (1387083767,), (1387083771,), (1387083785,), (1387083803,), (1387083806,), (1387083808,), (1387083829,), (1387083835,), (1387083848,), (1387083884,), (1387083888,), (1387083890,), (1387083893,), (1387083914,), (1387083918,), (1387083921,), (1387083924,), (1387083928,), (1387083933,), (1387083983,), (1387083997,), (1387084002,), (1387084005,), (1387084027,), (1387084031,), (1387084063,), (1387084065,), (1387084068,), (1387084072,), (1387084077,), (1387084090,), (1387084096,), (1387084437,), (1387084441,), (1387084445,), (1387084446,), (1387085086,), (1387085092,), (1387085097,), (1387085100,), (1387085111,), (1387085310,), (1387085328,), (1387085332,), (1387085337,), (1387085005,), (1387085085,), (1387085458,), (1387085463,), (1387085467,), (1387085951,), (1387085966,), (1387085982,), (1387086206,), (1387086210,), (1387086215,), (1387086220,), (1387086226,), (1387086232,), (1387086239,), (1387086244,), (1387086248,), (1387086252,), (1387086255,), (1387086263,), (1387086293,), (1387086297,), (1387086300,), (1387086701,), (1387086730,), (1387086889,), (1387086893,), (1387086897,), (1387086995,), (1387087000,), (1387087037,), (1387087043,), (1387087048,), (1387087123,), (1387087128,), (1387087132,), (1387087172,), (1387087174,), (1387087177,), (1387087182,), (1387087185,), (1387087189,), (1387087211,), (1387087225,), (1387087229,), (1387087340,), (1387087344,), (1387087348,), (1387087352,), (1387087432,), (1387087435,), (1387087437,), (1387087440,), (1387087486,), (1387087489,), (1387087494,), (1387087497,), (1387087501,), (1387087504,), (1387087519,), (1387087523,), (1387087526,), (1387087531,), (1387087541,), (1387087547,), (1387087551,), (1387087556,), (1387087603,), (1387087588,), (1387087592,), (1387087595,), (1387087598,), (1387087601,), (1387087621,), (1387087624,), (1387087627,), (1387087631,), (1387087637,), (1387087680,), (1387087683,), (1387087684,), (1387087686,), (1387087691,), (1387087710,), (1387087730,), (1387087734,), (1387087756,), (1387087760,), (1387087763,), (1387087765,), (1387087859,), (1387087888,), (1387087889,), (1387087891,), (1387087895,), (1387087898,), (1387087924,), (1387087927,), (1387087931,), (1387087934,), (1387087940,), (1387087967,), (1387087973,), (1387087975,), (1387087980,), (1387088042,), (1387088044,), (1387088047,), (1387088051,), (1387088055,), (1387088059,), (1387088074,), (1387088100,), (1387088113,), (1387088117,), (1387088119,), (1387088121,), (1387088128,), (1387088162,), (1387088164,), (1387088165,), (1387088167,), (1387088171,), (1387088196,), (1387088199,), (1387088201,), (1387088205,), (1387088210,), (1387088432,), (1387088435,), (1387088437,), (1387088439,), (1387088477,), (1387088503,), (1387088507,), (1387088509,), (1387088527,), (1387088534,), (1387088670,), (1387088672,), (1387088674,), (1387088676,), (1387088679,), (1387088727,), (1387088730,), (1387088733,), (1387088735,), (1387088747,), (1387088751,), (1387088722,), (1387088725,), (1387088762,), (1387088782,), (1387088789,), (1387088838,), (1387088843,), (1387088846,), (1387088851,), (1387088856,), (1387088884,), (1387088887,), (1387088892,), (1387088898,), (1387088903,), (1387088907,), (1387088912,), (1387088916,), (1387088918,), (1387088921,), (1387088941,), (1387088943,), (1387088952,), (1387088959,), (1387088967,), (1387088989,), (1387088990,), (1387089044,), (1387089062,), (1387089065,), (1387089112,), (1387089114,), (1387089117,), (1387089131,), (1387089138,), (1387089141,), (1387089159,), (1387089162,), (1387089165,), (1387089169,), (1387089171,), (1387089216,), (1387089219,), (1387089221,), (1387089308,), (1387089316,), (1387089430,), (1387089444,), (1387089580,), (1387089582,), (1387089588,), (1387089595,), (1387089603,), (1387089608,), (1387089618,), (1387089620,), (1387089621,), (1387089656,), (1387089663,), (1387089671,), (1387089676,), (1387089729,), (1387089730,), (1387089731,), (1387089733,), (1387089735,), (1387089744,), (1387089781,), (1387089783,), (1387089830,), (1387090075,), (1387090091,), (1387090166,), (1387090156,), (1387090160,), (1387090164,), (1387090198,), (1387090201,), (1387090203,), (1387090205,), (1387090275,), (1387090281,), (1387090292,), (1387090297,), (1387090530,), (1387090544,), (1387090554,), (1387090558,), (1387090636,), (1387090642,), (1387090868,), (1387091284,), (1387091308,), (1387091311,), (1387091314,), (1387091318,), (1387091800,), (1387091803,), (1387091825,), (1387091828,), (1387092030,), (1387092035,), (1387092074,), (1387092081,), (1387092082,), (1387093488,), (1387096409,), (1387100832,), (1387097120,), (1387097175,), (1387100822,), (1387100823,), (1387100884,), (1387100886,), (1387101400,), (1387102077,), (1387102081,), (1387102085,), (1387102256,), (1387102421,), (1387102436,), (1387102440,), (1387102534,), (1387102537,), (1387102561,), (1387102565,), (1387102567,), (1387102698,), (1387102718,), (1387102720,), (1387102722,), (1387102904,), (1387102926,), (1387102928,), (1387103949,), (1387103952,), (1387103954,), (1387103967,), (1387104033,), (1387104420,), (1387104530,), (1387104535,), (1387104541,), (1387104706,), (1387104708,), (1387104712,), (1387104726,), (1387104734,), (1387105013,), (1387105017,), (1387105019,), (1387105022,), (1387105652,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01102025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27394659]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] map_info['map_portfolio_photo'] : {27394659: [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706, 1387104541, 1387104535, 1387104530, 1387104420, 1387104033, 1387103967, 1387103954, 1387103952, 1387103949, 1387102928, 1387102926, 1387102904, 1387102722, 1387102720, 1387102718, 1387102698, 1387102567, 1387102565, 1387102561, 1387102537, 1387102534, 1387102440, 1387102436, 1387102421, 1387102256, 1387102085, 1387102081, 1387102077, 1387101400, 1387100886, 1387100884, 1387100823, 1387100822]} final : True mtd_id 4302 list_pids : [1387105652, 1387105022, 1387105019, 1387105017, 1387105013, 1387104734, 1387104726, 1387104712, 1387104708, 1387104706] Looping around the photos to save general results len do output : 1 /27394659Didn'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, '3804916') ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916') ('4302', None, None, None, None, None, None, None, '3804916') ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '27394659', 'None', None, None, None, None, '3804916'), ('4302', '27394659', '1387105652', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105022', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105019', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105017', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387105013', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104734', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104726', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104712', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104708', None, None, None, None, None, '3804916'), ('4302', '27394659', '1387104706', None, None, None, None, None, '3804916')] time used for this insertion : 0.03662848472595215 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.851148843765259 time spend to save output : 0.0368802547454834 total time spend for step 5 : 7.888029098510742 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 (3804916) 2.21user 2.36system 0:17.78elapsed 25%CPU (0avgtext+0avgdata 158392maxresident)k 352inputs+10216outputs (11major+64143minor)pagefaults 0swaps