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 : 3393283 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 (3233674) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3233674) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573096 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3233674'] with mtr_portfolio_ids : ['24573096'] and first list_photo_ids : [] new path : /proc/3393283/ Name: python3 Umask: 0002 State: R (running) Tgid: 3393283 Ngid: 0 Pid: 3393283 PPid: 3393282 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3393283 NSpid: 3393283 NSpgid: 3392490 NSsid: 3392490 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99024 kB VmRSS: 99024 kB RssAnon: 59832 kB RssFile: 39192 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 9/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: 55 nonvoluntary_ctxt_switches: 296 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3393283', 'Ngid': '0', 'Pid': '3393283', 'PPid': '3393282', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3393283', 'NSpid': '3393283', 'NSpgid': '3392490', 'NSsid': '3392490', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99024 kB', 'VmRSS': '99024 kB', 'RssAnon': '59832 kB', 'RssFile': '39192 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '9/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': '55', 'nonvoluntary_ctxt_switches': '296'} ('datou_batch_current', '3393283', '1106868', '0', '1106868', '865620', '99024', b'', 'marlene', '3233674') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24573096) 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 (3233674 ) ) 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 (24573096) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370429272, 'portfolio_id': 24573096}, {'photo_id': 1370429252, 'portfolio_id': 24573096}, {'photo_id': 1370429203, 'portfolio_id': 24573096}, {'photo_id': 1370429101, 'portfolio_id': 24573096}, {'photo_id': 1370429030, 'portfolio_id': 24573096}, {'photo_id': 1370428985, 'portfolio_id': 24573096}, {'photo_id': 1370428948, 'portfolio_id': 24573096}, {'photo_id': 1370428918, 'portfolio_id': 24573096}, {'photo_id': 1370428911, 'portfolio_id': 24573096}, {'photo_id': 1370428905, 'portfolio_id': 24573096}, {'photo_id': 1370428886, 'portfolio_id': 24573096}, {'photo_id': 1370428848, 'portfolio_id': 24573096}, {'photo_id': 1370428789, 'portfolio_id': 24573096}, {'photo_id': 1370428788, 'portfolio_id': 24573096}, {'photo_id': 1370428779, 'portfolio_id': 24573096}, {'photo_id': 1370428778, 'portfolio_id': 24573096}, {'photo_id': 1370428768, 'portfolio_id': 24573096}, {'photo_id': 1370428767, 'portfolio_id': 24573096}, {'photo_id': 1370428746, 'portfolio_id': 24573096}, {'photo_id': 1370428743, 'portfolio_id': 24573096}, {'photo_id': 1370428675, 'portfolio_id': 24573096}, {'photo_id': 1370428674, 'portfolio_id': 24573096}, {'photo_id': 1370428612, 'portfolio_id': 24573096}, {'photo_id': 1370428609, 'portfolio_id': 24573096}, {'photo_id': 1370428370, 'portfolio_id': 24573096}, {'photo_id': 1370428366, 'portfolio_id': 24573096}, {'photo_id': 1370428356, 'portfolio_id': 24573096}, {'photo_id': 1370428345, 'portfolio_id': 24573096}, {'photo_id': 1370428339, 'portfolio_id': 24573096}, {'photo_id': 1370428328, 'portfolio_id': 24573096}, {'photo_id': 1370428267, 'portfolio_id': 24573096}, {'photo_id': 1370428263, 'portfolio_id': 24573096}, {'photo_id': 1370428230, 'portfolio_id': 24573096}, {'photo_id': 1370428149, 'portfolio_id': 24573096}, {'photo_id': 1370428090, 'portfolio_id': 24573096}, {'photo_id': 1370428080, 'portfolio_id': 24573096}] map_portfolio_id_photo_id: {24573096: [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848, 1370428789, 1370428788, 1370428779, 1370428778, 1370428768, 1370428767, 1370428746, 1370428743, 1370428675, 1370428674, 1370428612, 1370428609, 1370428370, 1370428366, 1370428356, 1370428345, 1370428339, 1370428328, 1370428267, 1370428263, 1370428230, 1370428149, 1370428090, 1370428080]} ##### 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.017771005630493164 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 3 12:36:30 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 (24573096) 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 : 24573096 get user id for portfolio 24573096 get sub ptf for main ptf 24573096, type 3726 and hashtags ['Carton_brun', 'plastique', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'environnement', 'flou', 'Carton_gris', 'kraft', 'metal', 'mal_croppe', 'papier'] 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`=24573096 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','cartonnette','environnement','flou','Carton_gris','kraft','metal','mal_croppe','papier')) 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`=24573096 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','cartonnette','environnement','flou','Carton_gris','kraft','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24573096, 'sub_port_id': 24573162, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503800, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'flou': {'main_port_id': 24573096, 'sub_port_id': 24573163, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503801, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'papier': {'main_port_id': 24573096, 'sub_port_id': 24573164, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503802, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'cartonnette': {'main_port_id': 24573096, 'sub_port_id': 24573165, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503803, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'plastique': {'main_port_id': 24573096, 'sub_port_id': 24573166, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503804, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'autre_refus': {'main_port_id': 24573096, 'sub_port_id': 24573167, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503805, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 24573096, 'sub_port_id': 24573168, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503806, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'mal_croppe': {'main_port_id': 24573096, 'sub_port_id': 24573169, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503807, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'environnement': {'main_port_id': 24573096, 'sub_port_id': 24573170, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503808, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'kraft': {'main_port_id': 24573096, 'sub_port_id': 24573171, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503809, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'Carton_brun': {'main_port_id': 24573096, 'sub_port_id': 24573172, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503810, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}, 'Carton_gris': {'main_port_id': 24573096, 'sub_port_id': 24573173, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503811, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573162 , 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=24573096 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 (24573162) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573163 , 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=24573096 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 (24573163) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573164 , 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=24573096 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 (24573164) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573165 , 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=24573096 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 (24573165) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573166 , 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=24573096 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 (24573166) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573167 , 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=24573096 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 (24573167) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573168 , 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=24573096 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 (24573168) result : ((1370428956,), (1370428958,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573169 , 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=24573096 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 (24573169) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573170 , 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=24573096 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 (24573170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573171 , 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=24573096 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 (24573171) result : ((1370428961,), (1370428963,), (1370428965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573172 , 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=24573096 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 (24573172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24573173 , 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=24573096 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 (24573173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24573096) result : ((1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24573096 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','cartonnette','environnement','flou','Carton_gris','kraft','metal','mal_croppe','papier')) 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`=24573096 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','plastique','autre_refus','Teint_Dans_La_Masse','cartonnette','environnement','flou','Carton_gris','kraft','metal','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24573096, 'sub_port_id': 24573175, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503812, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'flou': {'main_port_id': 24573096, 'sub_port_id': 24573176, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503813, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'papier': {'main_port_id': 24573096, 'sub_port_id': 24573177, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503814, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'cartonnette': {'main_port_id': 24573096, 'sub_port_id': 24573178, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503815, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'plastique': {'main_port_id': 24573096, 'sub_port_id': 24573179, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503816, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'autre_refus': {'main_port_id': 24573096, 'sub_port_id': 24573180, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503817, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 24573096, 'sub_port_id': 24573181, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503818, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'mal_croppe': {'main_port_id': 24573096, 'sub_port_id': 24573182, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503819, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'environnement': {'main_port_id': 24573096, 'sub_port_id': 24573183, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503820, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'kraft': {'main_port_id': 24573096, 'sub_port_id': 24573184, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503821, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'Carton_brun': {'main_port_id': 24573096, 'sub_port_id': 24573185, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503822, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 33, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}, 'Carton_gris': {'main_port_id': 24573096, 'sub_port_id': 24573186, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16503823, 'last_updated_at': datetime.datetime(2025, 7, 3, 12, 34, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 3, 12, 34, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 3, 12, 33, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573162 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573163 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24573186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24573173 lien utilise dans velours : https://www.fotonower.com/velours/24573175,24573176,24573177,24573178,24573179,24573180,24573181,24573182,24573183,24573184,24573185,24573186?tags=metal,flou,papier,cartonnette,plastique,autre_refus,Teint_Dans_La_Masse,mal_croppe,environnement,kraft,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24573096]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] map_info['map_portfolio_photo'] : {24573096: [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848, 1370428789, 1370428788, 1370428779, 1370428778, 1370428768, 1370428767, 1370428746, 1370428743, 1370428675, 1370428674, 1370428612, 1370428609, 1370428370, 1370428366, 1370428356, 1370428345, 1370428339, 1370428328, 1370428267, 1370428263, 1370428230, 1370428149, 1370428090, 1370428080]} final : False mtd_id 4302 list_pids : [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] Looping around the photos to save general results len do output : 1 /24573096. 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, '3233674') ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24573096', "{'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173}", None, None, None, None, '3233674'), ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674')] time used for this insertion : 0.014246463775634766 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4821443557739258 time spend to save output : 0.014631271362304688 total time spend for step 1 : 1.4967756271362305 step2:final Thu Jul 3 12:36:31 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 (24573096) 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 24573096 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370428267,1370428263,1370428230,1370428149,1370428090,1370428080,1370428370,1370428366,1370428356,1370428345,1370428339,1370428328,1370428789,1370428788,1370428779,1370428778,1370428768,1370428767,1370428743,1370428746,1370428675,1370428674,1370428612,1370428609,1370428948,1370428918,1370428911,1370428905,1370428886,1370428848,1370429272,1370429252,1370429203,1370429101,1370429030,1370428985); 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([24573096]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} new output for save of step final : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] map_info['map_portfolio_photo'] : {24573096: [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848, 1370428789, 1370428788, 1370428779, 1370428778, 1370428768, 1370428767, 1370428746, 1370428743, 1370428675, 1370428674, 1370428612, 1370428609, 1370428370, 1370428366, 1370428356, 1370428345, 1370428339, 1370428328, 1370428267, 1370428263, 1370428230, 1370428149, 1370428090, 1370428080]} final : False mtd_id 4302 list_pids : [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] Looping around the photos to save general results len do output : 12 /1370429272.Didn't retrieve data . /1370429252.Didn't retrieve data . /1370429203.Didn't retrieve data . /1370429101.Didn't retrieve data . /1370429030.Didn't retrieve data . /1370428985.Didn't retrieve data . /1370428948.Didn't retrieve data . /1370428918.Didn't retrieve data . /1370428911.Didn't retrieve data . /1370428905.Didn't retrieve data . /1370428886.Didn't retrieve data . /1370428848.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, '3233674') ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24573096', '1370429272', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370429252', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370429203', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370429101', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370429030', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428985', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428948', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428918', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428911', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428905', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428886', '0.011760683475049162', None, None, None, None, '3233674'), ('4302', '24573096', '1370428848', '0.011760683475049162', None, None, None, None, '3233674')] time used for this insertion : 0.01604628562927246 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0726325511932373 time spend to save output : 0.016782760620117188 total time spend for step 2 : 0.08941531181335449 step3:velours_tree Thu Jul 3 12:36:32 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 : {24573096: [{'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173}]} input_args_next_step : {24573096: ()} output_args : {24573096: [{'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173}]} args : 24573096 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 : ({'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24573096) 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([24573096]) 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.3546445369720459 time spend to save output : 9.34600830078125e-05 total time spend for step 3 : 0.3547379970550537 step4:send_mail_cod Thu Jul 3 12:36:32 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 : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} input_args_next_step : {1370429272: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370429272 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370429252 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370429203 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370429101 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370429030 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428985 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428948 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428918 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428911 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428905 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428886 depend.output_id : 0 input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ()} output_args : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',)} args : 1370428848 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 : {24573096: [{'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173}]} input_args_next_step : {1370429272: ('0.011760683475049162',), 1370429252: ('0.011760683475049162',), 1370429203: ('0.011760683475049162',), 1370429101: ('0.011760683475049162',), 1370429030: ('0.011760683475049162',), 1370428985: ('0.011760683475049162',), 1370428948: ('0.011760683475049162',), 1370428918: ('0.011760683475049162',), 1370428911: ('0.011760683475049162',), 1370428905: ('0.011760683475049162',), 1370428886: ('0.011760683475049162',), 1370428848: ('0.011760683475049162',), 24573096: ()} output_args : {24573096: [{'metal': 24573162, 'flou': 24573163, 'papier': 24573164, 'cartonnette': 24573165, 'plastique': 24573166, 'autre_refus': 24573167, 'Teint_Dans_La_Masse': 24573168, 'mal_croppe': 24573169, 'environnement': 24573170, 'kraft': 24573171, 'Carton_brun': 24573172, 'Carton_gris': 24573173}]} args : 24573096 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.011760683475049162',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24573096) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1370429272,1370429252,1370429203,1370429101,1370429030,1370428985,1370428948,1370428918,1370428911,1370428905,1370428886,1370428848) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370428848 begin to download photo : 1370428911 begin to download photo : 1370428985 begin to download photo : 1370429203 download finish for photo 1370428985 begin to download photo : 1370429030 download finish for photo 1370429203 begin to download photo : 1370429252 download finish for photo 1370428848 begin to download photo : 1370428886 download finish for photo 1370428911 begin to download photo : 1370428918 download finish for photo 1370429252 begin to download photo : 1370429272 download finish for photo 1370429030 begin to download photo : 1370429101 download finish for photo 1370428886 begin to download photo : 1370428905 download finish for photo 1370428918 begin to download photo : 1370428948 download finish for photo 1370429101 download finish for photo 1370428948 download finish for photo 1370428905 download finish for photo 1370429272 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette245731621751538992/ imagette245731631751538992/ imagette245731651751538992/ imagette245731661751538992/ imagette245731671751538992/ imagette245731691751538992/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24573096_03-07-2025_12_36_32.pdf 24573162 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731621751538992 24573163 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731631751538992 24573165 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731651751538992 24573166 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731661751538992 24573167 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731671751538992 24573169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731691751538992 24573171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370428961: '1751538867_2039270_1370428267_bff212df0d7f4d6bda67cbb04beac5e3_rle_crop_3870978340_0.png', 1370428963: '1751538867_2039270_1370428090_86df4ae0d43400525e10bd4c2e135792_rle_crop_3870978405_0.png', 1370428965: '1751538867_2039270_1370428080_a7df4b68adcbecba803a41028452023e_rle_crop_3870978418_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/50b3210ab39e83bcfcc23a455ce0b374_98843607.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/10ab54a6019c954b817083d435e3a34c_17989261.png change filename to text .imagette245731711751538992/ imagette245731711751538992/1751538867_2039270_1370428090_86df4ae0d43400525e10bd4c2e135792_rle_crop_3870978405_0.png.png imagette245731711751538992/1751538867_2039270_1370428080_a7df4b68adcbecba803a41028452023e_rle_crop_3870978418_0.png.png imagette245731711751538992/1751538867_2039270_1370428267_bff212df0d7f4d6bda67cbb04beac5e3_rle_crop_3870978340_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/9a4008866075cfdd2909091e85943761_90237728.png imagette245731711751538992 24573168 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370428956: '1751538867_2039270_1370428149_312b6a63c6f7d8f1ab63e26f0d32a620_rle_crop_3870978395_0.png', 1370428958: '1751538867_2039270_1370428090_86df4ae0d43400525e10bd4c2e135792_rle_crop_3870978406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/dfbe77b085a3a2558266f8c50117fc5b_61742486.png change filename to text .imagette245731681751538992/ imagette245731681751538992/1751538867_2039270_1370428090_86df4ae0d43400525e10bd4c2e135792_rle_crop_3870978406_0.png.png imagette245731681751538992/1751538867_2039270_1370428149_312b6a63c6f7d8f1ab63e26f0d32a620_rle_crop_3870978395_0.png.png imagette245731721751538993/ imagette245731731751538993/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/3d75f6bbe9c5d0c301b5f8c8c751e0c1_19169884.png imagette245731681751538992 24573172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731721751538993 24573173 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245731731751538993 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24573096 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24573175,24573176,24573177,24573178,24573179,24573180,24573181,24573182,24573183,24573184,24573185,24573186?tags=metal,flou,papier,cartonnette,plastique,autre_refus,Teint_Dans_La_Masse,mal_croppe,environnement,kraft,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1370429272] : ('0.011760683475049162',) no score found for photo 1370429272 We are sending mail with results at report@fotonower.com args[1370429252] : ('0.011760683475049162',) no score found for photo 1370429252 We are sending mail with results at report@fotonower.com args[1370429203] : ('0.011760683475049162',) no score found for photo 1370429203 We are sending mail with results at report@fotonower.com args[1370429101] : ('0.011760683475049162',) no score found for photo 1370429101 We are sending mail with results at report@fotonower.com args[1370429030] : ('0.011760683475049162',) no score found for photo 1370429030 We are sending mail with results at report@fotonower.com args[1370428985] : ('0.011760683475049162',) no score found for photo 1370428985 We are sending mail with results at report@fotonower.com args[1370428948] : ('0.011760683475049162',) no score found for photo 1370428948 We are sending mail with results at report@fotonower.com args[1370428918] : ('0.011760683475049162',) no score found for photo 1370428918 We are sending mail with results at report@fotonower.com args[1370428911] : ('0.011760683475049162',) no score found for photo 1370428911 We are sending mail with results at report@fotonower.com args[1370428905] : ('0.011760683475049162',) no score found for photo 1370428905 We are sending mail with results at report@fotonower.com args[1370428886] : ('0.011760683475049162',) no score found for photo 1370428886 We are sending mail with results at report@fotonower.com args[1370428848] : ('0.011760683475049162',) no score found for photo 1370428848 We are sending mail with results at report@fotonower.com refus_total : 0.011760683475049162 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573096 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_P24573096_03-07-2025_12_36_32.pdf results_Auto_P24573096_03-07-2025_12_36_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24573096_03-07-2025_12_36_32.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','24573096','results_Auto_P24573096_03-07-2025_12_36_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24573096_03-07-2025_12_36_32.pdf','pdf','','0.12','0.011760683475049162') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24573096]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] map_info['map_portfolio_photo'] : {24573096: [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848, 1370428789, 1370428788, 1370428779, 1370428778, 1370428768, 1370428767, 1370428746, 1370428743, 1370428675, 1370428674, 1370428612, 1370428609, 1370428370, 1370428366, 1370428356, 1370428345, 1370428339, 1370428328, 1370428267, 1370428263, 1370428230, 1370428149, 1370428090, 1370428080]} final : False mtd_id 4302 list_pids : [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] 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, '3233674') ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24573096', '1370429272', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674')] time used for this insertion : 0.017084360122680664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8605661392211914 time spend to save output : 0.01747727394104004 total time spend for step 4 : 1.8780434131622314 step5:split_time_score Thu Jul 3 12:36:34 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 : ['24573096'] 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 : [('24573096',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24573096) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370428985: {'path': 'temp/1751538992_3393283_1370428985_3a7324c8a543c5e4436ea67aaa8ed3e6.jpg', 'extension': 'jpg'}, 1370429030: {'path': 'temp/1751538992_3393283_1370429030_a298e176b9dd5a21950cf362dc3495dc.jpg', 'extension': 'jpg'}, 1370429101: {'path': 'temp/1751538992_3393283_1370429101_b8068f3ef40520a7de9fdf93937fde6f.jpg', 'extension': 'jpg'}, 1370428911: {'path': 'temp/1751538992_3393283_1370428911_9e1044291228d08b30e91a7736b6460b.jpg', 'extension': 'jpg'}, 1370428918: {'path': 'temp/1751538992_3393283_1370428918_4366e3e17f1dc9eec8a61be07b8dcd6b.jpg', 'extension': 'jpg'}, 1370428948: {'path': 'temp/1751538992_3393283_1370428948_f60f821ac93f6e1855bee8dc40360afa.jpg', 'extension': 'jpg'}, 1370428848: {'path': 'temp/1751538992_3393283_1370428848_2efc03f658236f981cc0a79b47f99ce6.jpg', 'extension': 'jpg'}, 1370428886: {'path': 'temp/1751538992_3393283_1370428886_47cc9b31c5f447b057bb13fc54c434d2.jpg', 'extension': 'jpg'}, 1370428905: {'path': 'temp/1751538992_3393283_1370428905_dde1ccccbb58d58ea7f5ae44b07083d5.jpg', 'extension': 'jpg'}, 1370429203: {'path': 'temp/1751538992_3393283_1370429203_507ff5c8946dee94c07055e2cc2a273d.jpg', 'extension': 'jpg'}, 1370429252: {'path': 'temp/1751538992_3393283_1370429252_092947edc7f30cffbc4a9089e8c6775f.jpg', 'extension': 'jpg'}, 1370429272: {'path': 'temp/1751538992_3393283_1370429272_84530c311b1c926a883074e925e27132.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 = 24573096; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24573096 group by h (('12', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24573096 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 (24573096) 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 (24573096) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03072025 24573096 Nombre de photos uploadées : 36 / 23040 (0%) 03072025 24573096 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 03072025 24573096 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1370428267, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/bff212df0d7f4d6bda67cbb04beac5e3.jpg', 'username': None, 'uploaded_at': 1751538678, 'text': 'image_03072025_12_30_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370428263, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/89a6fb57e1d3a30c9143715df90b0f6d.jpg', 'username': None, 'uploaded_at': 1751538678, 'text': 'image_03072025_12_30_14_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370428230, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/a015943114dc73af5489d1dd1581b759.jpg', 'username': None, 'uploaded_at': 1751538678, 'text': 'image_03072025_12_30_23_009122m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370428149, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/3/312b6a63c6f7d8f1ab63e26f0d32a620.jpg', 'username': None, 'uploaded_at': 1751538678, 'text': 'image_03072025_12_30_33_010141m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017583370208740234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24573096, '2025-07-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1948253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030865192413330078 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= 1948253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24536200, 'dashboard_result_id': 12105473, '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_P24536200_03-07-2025_05_58_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24536995, 'dashboard_result_id': 12105474, '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_P24536995_03-07-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24537684, 'dashboard_result_id': 12105475, '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_P24537684_03-07-2025_05_59_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24538618, 'dashboard_result_id': 12105476, '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_P24538618_03-07-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24539400, 'dashboard_result_id': 12105477, '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_P24539400_03-07-2025_06_00_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24540440, 'dashboard_result_id': 12105478, '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_P24540440_03-07-2025_06_00_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24541210, 'dashboard_result_id': 12105479, '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_P24541210_03-07-2025_06_00_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24542140, 'dashboard_result_id': 12105480, '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_P24542140_03-07-2025_06_01_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24542941, 'dashboard_result_id': 12105481, '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_P24542941_03-07-2025_06_01_54.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24543938, 'dashboard_result_id': 12105482, '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_P24543938_03-07-2025_06_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24544741, 'dashboard_result_id': 12105483, '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_P24544741_03-07-2025_06_01_50.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24545553, 'dashboard_result_id': 12105484, '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_P24545553_03-07-2025_06_02_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24545613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24545614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24545615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24545616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24545617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24545618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24545619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24545620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24545621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24545622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24545623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24545624, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24546341, 'dashboard_result_id': 12105485, '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_P24546341_03-07-2025_06_02_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24546371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24546372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24546373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24546374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24546375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24546376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24546377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24546378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24546379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24546380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24546381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24546382, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24547151, 'dashboard_result_id': 12105486, '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_P24547151_03-07-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24547194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547201, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24547868, 'dashboard_result_id': 12105487, '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_P24547868_03-07-2025_06_03_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24547896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547907, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24548657, 'dashboard_result_id': 12105488, '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_P24548657_03-07-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24548703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24548704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24548705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24548706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24548707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24548708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24548709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24548710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24548711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24548712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24548713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24548714, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24549313, 'dashboard_result_id': 12105489, '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_P24549313_03-07-2025_06_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24549411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24549412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24549413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24549414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24549416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24549417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24549418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24549419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24549420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24549421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24549422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24549423, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24550150, 'dashboard_result_id': 12105490, '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_P24550150_03-07-2025_06_04_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24550895, 'dashboard_result_id': 12105491, '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_P24550895_03-07-2025_06_04_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24551663, 'dashboard_result_id': 12105492, '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_P24551663_03-07-2025_06_04_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24552414, 'dashboard_result_id': 12105493, '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_P24552414_03-07-2025_06_05_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24553425, 'dashboard_result_id': 12105494, '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_P24553425_03-07-2025_10_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24553441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24553442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24553443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24553444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24553445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24553446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24553447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24553448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24553449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24553450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24553451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24553452, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24570992, 'dashboard_result_id': 12105495, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24563061, 'dashboard_result_id': 12105496, '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_P24563061_03-07-2025_11_00_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24563081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24563082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24563083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24563084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24563085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24563086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24563087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24563088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24563089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24563090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24563091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24563092, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24561279, 'dashboard_result_id': 12105497, '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_P24561279_03-07-2025_09_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561311, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24561557, 'dashboard_result_id': 12105498, '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_P24561557_03-07-2025_09_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561590, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24562734, 'dashboard_result_id': 12105499, '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_P24562734_03-07-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24562808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24562809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24562810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24562811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24562812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24562813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24562814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24562815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24562816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24562817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24562818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24562819, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24563587, 'dashboard_result_id': 12105500, '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_P24563587_03-07-2025_10_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24563679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24563680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24563681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24563682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24563683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24563684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24563686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24563687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24563688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24563690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24563691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24563692, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24564705, 'dashboard_result_id': 12105501, '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_P24564705_03-07-2025_10_33_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24564731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24564732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24564733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24564734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24564735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24564736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24564737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24564738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24564739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24564740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24564741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24564742, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24565474, 'dashboard_result_id': 12105502, '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_P24565474_03-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24565543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24565544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24565545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24565546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24565547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24565548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24565549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24565550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24565551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24565552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24565553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24565554, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24566265, 'dashboard_result_id': 12105503, '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_P24566265_03-07-2025_11_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24566297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24566298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24566299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24566300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24566301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24566302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24566303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24566304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24566305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24566306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24566307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24566308, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24567059, 'dashboard_result_id': 12105504, '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_P24567059_03-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24567060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24567061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24567062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24567063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24567064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24567065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24567066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24567067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24567068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24567069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24567070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24567071, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24568090, 'dashboard_result_id': 12105505, '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_P24568090_03-07-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24568110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24568111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24568112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24568113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24568114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24568115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24568116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24568118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24568119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24568120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24568121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24568122, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24569142, 'dashboard_result_id': 12105506, '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_P24569142_03-07-2025_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24569227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24569228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24569229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24569230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24569231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24569232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24569234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24569236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24569238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24569241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24569243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24569245, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24570319, 'dashboard_result_id': 12105507, '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_P24570319_03-07-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24570353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24570354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24570355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24570356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24570357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24570358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24570359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24570360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24570361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24570362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24570363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24570364, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24571162, 'dashboard_result_id': 12105508, '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_P24571162_03-07-2025_12_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24571195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24571196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24571197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24571198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24571199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24571200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24571201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24571202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24571203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24571204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24571205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24571206, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24572268, 'dashboard_result_id': 12105509, '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_P24572268_03-07-2025_12_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24572290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24572291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24572292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24572293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24572294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24572295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24572296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24572297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24572298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24572299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24572300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24572301, 'pht': 3726}}"}, {'dashboat_entry_day': 1948253, 'dashboard_run_id': 1957998, 'mtr_portfolio_id': 24573096, 'dashboard_result_id': 12105510, '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_P24573096_03-07-2025_12_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24573162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24573163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24573164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24573165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24573166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24573167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24573168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24573169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24573170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24573171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24573172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24573173, '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 = 24536200 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': 3232260, 'mtr_portfolio_id': 24536200, 'created_at': datetime.datetime(2025, 7, 3, 5, 58, 27), 'result': '0.06755440862676036', 'result_long': None, 'result_double': None}] Qualite : 0.06755440862676036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_05_58_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536200 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_P24536200_03-07-2025_05_58_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, 'pht': 3726}}" where mtr_portfolio_id = 24536200 and dashboard_run_id = 1957998 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`=24536200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105473, 0.06755440862676036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536200_03-07-2025_05_58_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24536266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24536267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24536268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24536269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24536270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24536271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24536272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24536273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24536274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24536275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24536276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24536277, '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 = 24536995 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': 3232261, 'mtr_portfolio_id': 24536995, 'created_at': datetime.datetime(2025, 7, 3, 5, 58, 58), 'result': '0.057326251900921124', 'result_long': None, 'result_double': None}] Qualite : 0.057326251900921124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24536995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24536995 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_P24536995_03-07-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, 'pht': 3726}}" where mtr_portfolio_id = 24536995 and dashboard_run_id = 1957998 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`=24536995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105474, 0.057326251900921124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24536995_03-07-2025_05_59_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537012, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537017, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537021, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537022, '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 = 24537684 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': 3232262, 'mtr_portfolio_id': 24537684, 'created_at': datetime.datetime(2025, 7, 3, 5, 59, 32), 'result': '0.0897447804265447', 'result_long': None, 'result_double': None}] Qualite : 0.0897447804265447 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24537684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_05_59_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24537684 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_P24537684_03-07-2025_05_59_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, 'pht': 3726}}" where mtr_portfolio_id = 24537684 and dashboard_run_id = 1957998 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`=24537684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105475, 0.0897447804265447, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24537684_03-07-2025_05_59_38.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24537741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24537743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24537745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24537748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24537750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24537752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24537754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24537756, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24537759, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24537761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24537763, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24537765, '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 = 24538618 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': 3232263, 'mtr_portfolio_id': 24538618, 'created_at': datetime.datetime(2025, 7, 3, 5, 59, 32), 'result': '0.0730471094868502', 'result_long': None, 'result_double': None}] Qualite : 0.0730471094868502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24538618 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_05_59_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24538618 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_P24538618_03-07-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, 'pht': 3726}}" where mtr_portfolio_id = 24538618 and dashboard_run_id = 1957998 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`=24538618 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105476, 0.0730471094868502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24538618_03-07-2025_05_59_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24538634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24538635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24538636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24538637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24538638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24538639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24538640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24538641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24538642, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24538643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24538644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24538645, '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 = 24539400 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 = 24539400 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 = 24539400 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24539400 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 = 24539400 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3232264, 'mtr_portfolio_id': 24539400, 'created_at': datetime.datetime(2025, 7, 3, 5, 59, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24539400 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_06_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24539400 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_P24539400_03-07-2025_06_00_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, 'pht': 3726}}" where mtr_portfolio_id = 24539400 and dashboard_run_id = 1957998 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`=24539400 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105477, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24539400_03-07-2025_06_00_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24539493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24539494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24539495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24539496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24539497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24539498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24539499, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24539500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24539501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24539502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24539503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24539504, '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 = 24540440 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 = 24540440 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 = 24540440 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24540440 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 = 24540440 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3232265, 'mtr_portfolio_id': 24540440, 'created_at': datetime.datetime(2025, 7, 3, 6, 0, 31), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24540440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24540440 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_P24540440_03-07-2025_06_00_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, 'pht': 3726}}" where mtr_portfolio_id = 24540440 and dashboard_run_id = 1957998 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`=24540440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105478, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24540440_03-07-2025_06_00_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24540520, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24540521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24540522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24540524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24540525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24540526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24540527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24540529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24540530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24540531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24540532, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24540533, '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 = 24541210 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': 3232266, 'mtr_portfolio_id': 24541210, 'created_at': datetime.datetime(2025, 7, 3, 6, 0, 32), 'result': '0.07852198140340143', 'result_long': None, 'result_double': None}] Qualite : 0.07852198140340143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24541210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_06_00_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24541210 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_P24541210_03-07-2025_06_00_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, 'pht': 3726}}" where mtr_portfolio_id = 24541210 and dashboard_run_id = 1957998 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`=24541210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105479, 0.07852198140340143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24541210_03-07-2025_06_00_36.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24541297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24541298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24541299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24541300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24541301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24541302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24541303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24541304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24541305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24541306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24541307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24541308, '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 = 24542140 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': 3232267, 'mtr_portfolio_id': 24542140, 'created_at': datetime.datetime(2025, 7, 3, 6, 1), 'result': '0.07732764890907491', 'result_long': None, 'result_double': None}] Qualite : 0.07732764890907491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_06_01_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542140 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_P24542140_03-07-2025_06_01_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, 'pht': 3726}}" where mtr_portfolio_id = 24542140 and dashboard_run_id = 1957998 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`=24542140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105480, 0.07732764890907491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542140_03-07-2025_06_01_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24542143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24542144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24542145, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24542146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24542147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24542148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24542149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24542150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24542151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24542152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24542153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24542154, '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 = 24542941 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': 3232268, 'mtr_portfolio_id': 24542941, 'created_at': datetime.datetime(2025, 7, 3, 6, 1, 46), 'result': '0.08284695911432231', 'result_long': None, 'result_double': None}] Qualite : 0.08284695911432231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24542941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_06_01_54.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24542941 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_P24542941_03-07-2025_06_01_54.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, 'pht': 3726}}" where mtr_portfolio_id = 24542941 and dashboard_run_id = 1957998 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`=24542941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105481, 0.08284695911432231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24542941_03-07-2025_06_01_54.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543019, '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 = 24543938 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': 3232269, 'mtr_portfolio_id': 24543938, 'created_at': datetime.datetime(2025, 7, 3, 6, 1, 28), 'result': '0.050970572511552216', 'result_long': None, 'result_double': None}] Qualite : 0.050970572511552216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24543938 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24543938 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_P24543938_03-07-2025_06_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, 'pht': 3726}}" where mtr_portfolio_id = 24543938 and dashboard_run_id = 1957998 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`=24543938 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105482, 0.050970572511552216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24543938_03-07-2025_06_01_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24543970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24543971, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24543972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24543973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24543974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24543975, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24543976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24543977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24543978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24543979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24543980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24543981, '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 = 24544741 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': 3232270, 'mtr_portfolio_id': 24544741, 'created_at': datetime.datetime(2025, 7, 3, 6, 1, 46), 'result': '0.008935409996089163', 'result_long': None, 'result_double': None}] Qualite : 0.008935409996089163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24544741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_06_01_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24544741 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_P24544741_03-07-2025_06_01_50.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, 'pht': 3726}}" where mtr_portfolio_id = 24544741 and dashboard_run_id = 1957998 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`=24544741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105483, 0.008935409996089163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24544741_03-07-2025_06_01_50.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24544791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24544792, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24544793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24544794, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24544795, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24544796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24544797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24544798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24544799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24544800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24544801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24544802, '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 = 24545553 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': 3232271, 'mtr_portfolio_id': 24545553, 'created_at': datetime.datetime(2025, 7, 3, 6, 1, 58), 'result': '0.031110249795114005', 'result_long': None, 'result_double': None}] Qualite : 0.031110249795114005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24545553 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24545553_03-07-2025_06_02_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24545553 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_P24545553_03-07-2025_06_02_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24545613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24545614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24545615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24545616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24545617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24545618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24545619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24545620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24545621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24545622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24545623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24545624, 'pht': 3726}}" where mtr_portfolio_id = 24545553 and dashboard_run_id = 1957998 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`=24545553 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105484, 0.031110249795114005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24545553_03-07-2025_06_02_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24545613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24545614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24545615, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24545616, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24545617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24545618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24545619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24545620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24545621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24545622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24545623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24545624, '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 = 24546341 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': 3232272, 'mtr_portfolio_id': 24546341, 'created_at': datetime.datetime(2025, 7, 3, 6, 2, 32), 'result': '0.056220065462966415', 'result_long': None, 'result_double': None}] Qualite : 0.056220065462966415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24546341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24546341_03-07-2025_06_02_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24546341 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_P24546341_03-07-2025_06_02_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24546371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24546372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24546373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24546374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24546375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24546376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24546377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24546378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24546379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24546380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24546381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24546382, 'pht': 3726}}" where mtr_portfolio_id = 24546341 and dashboard_run_id = 1957998 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`=24546341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105485, 0.056220065462966415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24546341_03-07-2025_06_02_37.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24546371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24546372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24546373, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24546374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24546375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24546376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24546377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24546378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24546379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24546380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24546381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24546382, '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 = 24547151 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': 3232273, 'mtr_portfolio_id': 24547151, 'created_at': datetime.datetime(2025, 7, 3, 6, 2, 29), 'result': '0.08561988314877511', 'result_long': None, 'result_double': None}] Qualite : 0.08561988314877511 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24547151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24547151_03-07-2025_06_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24547151 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_P24547151_03-07-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24547194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547201, 'pht': 3726}}" where mtr_portfolio_id = 24547151 and dashboard_run_id = 1957998 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`=24547151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105486, 0.08561988314877511, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24547151_03-07-2025_06_02_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547189, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24547194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547197, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547201, '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 = 24547868 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': 3232274, 'mtr_portfolio_id': 24547868, 'created_at': datetime.datetime(2025, 7, 3, 6, 2, 59), 'result': '0.08629128629812323', 'result_long': None, 'result_double': None}] Qualite : 0.08629128629812323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24547868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24547868_03-07-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24547868 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_P24547868_03-07-2025_06_03_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24547896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547907, 'pht': 3726}}" where mtr_portfolio_id = 24547868 and dashboard_run_id = 1957998 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`=24547868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105487, 0.08629128629812323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24547868_03-07-2025_06_03_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24547896, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24547897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24547898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24547899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24547900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24547901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24547902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24547903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24547904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24547905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24547906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24547907, '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 = 24548657 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': 3232275, 'mtr_portfolio_id': 24548657, 'created_at': datetime.datetime(2025, 7, 3, 6, 3, 28), 'result': '0.03576371926503668', 'result_long': None, 'result_double': None}] Qualite : 0.03576371926503668 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24548657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24548657_03-07-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24548657 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_P24548657_03-07-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24548703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24548704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24548705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24548706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24548707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24548708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24548709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24548710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24548711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24548712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24548713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24548714, 'pht': 3726}}" where mtr_portfolio_id = 24548657 and dashboard_run_id = 1957998 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`=24548657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105488, 0.03576371926503668, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24548657_03-07-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24548703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24548704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24548705, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24548706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24548707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24548708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24548709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24548710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24548711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24548712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24548713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24548714, '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 = 24549313 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': 3232276, 'mtr_portfolio_id': 24549313, 'created_at': datetime.datetime(2025, 7, 3, 6, 3, 30), 'result': '0.14059115739693442', 'result_long': None, 'result_double': None}] Qualite : 0.14059115739693442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24549313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24549313_03-07-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24549313 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_P24549313_03-07-2025_06_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24549411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24549412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24549413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24549414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24549416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24549417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24549418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24549419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24549420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24549421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24549422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24549423, 'pht': 3726}}" where mtr_portfolio_id = 24549313 and dashboard_run_id = 1957998 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`=24549313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105489, 0.14059115739693442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24549313_03-07-2025_06_03_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24549411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24549412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24549413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24549414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24549416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24549417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24549418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24549419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24549420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24549421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24549422, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24549423, '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 = 24550150 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': 3232277, 'mtr_portfolio_id': 24550150, 'created_at': datetime.datetime(2025, 7, 3, 6, 3, 59), 'result': '0.26686138247572194', 'result_long': None, 'result_double': None}] Qualite : 0.26686138247572194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24550150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550150_03-07-2025_06_04_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24550150 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_P24550150_03-07-2025_06_04_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, 'pht': 3726}}" where mtr_portfolio_id = 24550150 and dashboard_run_id = 1957998 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`=24550150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105490, 0.26686138247572194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550150_03-07-2025_06_04_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550188, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550193, '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 = 24550895 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': 3232278, 'mtr_portfolio_id': 24550895, 'created_at': datetime.datetime(2025, 7, 3, 6, 4, 28), 'result': '0.3057790165231991', 'result_long': None, 'result_double': None}] Qualite : 0.3057790165231991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24550895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_06_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24550895 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_P24550895_03-07-2025_06_04_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, 'pht': 3726}}" where mtr_portfolio_id = 24550895 and dashboard_run_id = 1957998 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`=24550895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105491, 0.3057790165231991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24550895_03-07-2025_06_04_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24550901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24550902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24550903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24550904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24550905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24550906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24550907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24550908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24550909, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24550910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24550911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24550912, '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 = 24551663 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': 3232279, 'mtr_portfolio_id': 24551663, 'created_at': datetime.datetime(2025, 7, 3, 6, 4, 33), 'result': '0.2494263542540146', 'result_long': None, 'result_double': None}] Qualite : 0.2494263542540146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24551663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_06_04_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24551663 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_P24551663_03-07-2025_06_04_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, 'pht': 3726}}" where mtr_portfolio_id = 24551663 and dashboard_run_id = 1957998 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`=24551663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105492, 0.2494263542540146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24551663_03-07-2025_06_04_38.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24551726, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24551727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24551728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24551729, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24551730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24551731, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24551732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24551733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24551734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24551735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24551736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24551737, '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 = 24552414 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': 3232280, 'mtr_portfolio_id': 24552414, 'created_at': datetime.datetime(2025, 7, 3, 6, 4, 58), 'result': '0.07397921556478011', 'result_long': None, 'result_double': None}] Qualite : 0.07397921556478011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24552414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_06_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24552414 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_P24552414_03-07-2025_06_05_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, 'pht': 3726}}" where mtr_portfolio_id = 24552414 and dashboard_run_id = 1957998 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`=24552414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105493, 0.07397921556478011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24552414_03-07-2025_06_05_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24552502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24552503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24552504, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24552505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24552506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24552507, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24552508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24552509, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24552510, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24552511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24552512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24552514, '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 = 24553425 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': 3232281, 'mtr_portfolio_id': 24553425, 'created_at': datetime.datetime(2025, 7, 3, 10, 0, 32), 'result': '0.02544386583549642', 'result_long': None, 'result_double': None}] Qualite : 0.02544386583549642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24553425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_10_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24553425 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_P24553425_03-07-2025_10_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24553441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24553442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24553443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24553444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24553445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24553446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24553447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24553448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24553449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24553450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24553451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24553452, 'pht': 3726}}" where mtr_portfolio_id = 24553425 and dashboard_run_id = 1957998 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`=24553425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105494, 0.02544386583549642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24553425_03-07-2025_10_00_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24553441, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24553442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24553443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24553444, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24553445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24553446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24553447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24553448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24553449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24553450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24553451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24553452, '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 = 24570992 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 = 24570992 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 = 24570992 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24570992 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 = 24570992 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 = 24570992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24570992_03-07-2025_12_01_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24570992 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_P24570992_03-07-2025_12_01_04.pdf'}" where mtr_portfolio_id = 24570992 and dashboard_run_id = 1957998 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 = 24563061 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 = 24563061 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 = 24563061 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24563061 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 = 24563061 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 = 24563061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24563061_03-07-2025_11_00_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24563061 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_P24563061_03-07-2025_11_00_39.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24563081, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24563082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24563083, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24563084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24563085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24563086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24563087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24563088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24563089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24563090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24563091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24563092, 'pht': 3726}}" where mtr_portfolio_id = 24563061 and dashboard_run_id = 1957998 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 = 24561279 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': 3232351, 'mtr_portfolio_id': 24561279, 'created_at': datetime.datetime(2025, 7, 3, 9, 50, 59), 'result': '0.03209984448952775', 'result_long': None, 'result_double': None}] Qualite : 0.03209984448952775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24561279 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24561279_03-07-2025_09_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24561279 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_P24561279_03-07-2025_09_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561311, 'pht': 3726}}" where mtr_portfolio_id = 24561279 and dashboard_run_id = 1957998 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`=24561279 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105497, 0.03209984448952775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24561279_03-07-2025_09_50_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561301, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561307, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561311, '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 = 24561557 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': 3232398, 'mtr_portfolio_id': 24561557, 'created_at': datetime.datetime(2025, 7, 3, 9, 46, 59), 'result': '0.04580921020119948', 'result_long': None, 'result_double': None}] Qualite : 0.04580921020119948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24561557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24561557_03-07-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24561557 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_P24561557_03-07-2025_09_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561590, 'pht': 3726}}" where mtr_portfolio_id = 24561557 and dashboard_run_id = 1957998 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`=24561557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105498, 0.04580921020119948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24561557_03-07-2025_09_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24561579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24561580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24561581, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24561582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24561583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24561584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24561585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24561586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24561587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24561588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24561589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24561590, '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 = 24562734 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': 3232498, 'mtr_portfolio_id': 24562734, 'created_at': datetime.datetime(2025, 7, 3, 10, 3), 'result': '0.03627299278699644', 'result_long': None, 'result_double': None}] Qualite : 0.03627299278699644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24562734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24562734_03-07-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24562734 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_P24562734_03-07-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24562808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24562809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24562810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24562811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24562812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24562813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24562814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24562815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24562816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24562817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24562818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24562819, 'pht': 3726}}" where mtr_portfolio_id = 24562734 and dashboard_run_id = 1957998 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`=24562734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105499, 0.03627299278699644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24562734_03-07-2025_10_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24562808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24562809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24562810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24562811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24562812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24562813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24562814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24562815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24562816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24562817, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24562818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24562819, '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 = 24563587 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': 3232605, 'mtr_portfolio_id': 24563587, 'created_at': datetime.datetime(2025, 7, 3, 10, 16, 57), 'result': '0.03022860196349238', 'result_long': None, 'result_double': None}] Qualite : 0.03022860196349238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24563587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24563587_03-07-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24563587 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_P24563587_03-07-2025_10_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24563679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24563680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24563681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24563682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24563683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24563684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24563686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24563687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24563688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24563690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24563691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24563692, 'pht': 3726}}" where mtr_portfolio_id = 24563587 and dashboard_run_id = 1957998 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`=24563587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105500, 0.03022860196349238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24563587_03-07-2025_10_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24563679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24563680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24563681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24563682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24563683, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24563684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24563686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24563687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24563688, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24563690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24563691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24563692, '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 = 24564705 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': 3232719, 'mtr_portfolio_id': 24564705, 'created_at': datetime.datetime(2025, 7, 3, 10, 33, 5), 'result': '0.029308923451972287', 'result_long': None, 'result_double': None}] Qualite : 0.029308923451972287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24564705 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24564705_03-07-2025_10_33_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24564705 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_P24564705_03-07-2025_10_33_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24564731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24564732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24564733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24564734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24564735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24564736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24564737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24564738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24564739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24564740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24564741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24564742, 'pht': 3726}}" where mtr_portfolio_id = 24564705 and dashboard_run_id = 1957998 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`=24564705 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105501, 0.029308923451972287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24564705_03-07-2025_10_33_08.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24564731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24564732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24564733, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24564734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24564735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24564736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24564737, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24564738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24564739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24564740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24564741, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24564742, '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 = 24565474 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': 3232801, 'mtr_portfolio_id': 24565474, 'created_at': datetime.datetime(2025, 7, 3, 10, 47), 'result': '0.023989543620478938', 'result_long': None, 'result_double': None}] Qualite : 0.023989543620478938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24565474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24565474_03-07-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24565474 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_P24565474_03-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24565543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24565544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24565545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24565546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24565547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24565548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24565549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24565550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24565551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24565552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24565553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24565554, 'pht': 3726}}" where mtr_portfolio_id = 24565474 and dashboard_run_id = 1957998 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`=24565474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105502, 0.023989543620478938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24565474_03-07-2025_10_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24565543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24565544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24565545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24565546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24565547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24565548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24565549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24565550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24565551, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24565552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24565553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24565554, '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 = 24566265 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': 3232893, 'mtr_portfolio_id': 24566265, 'created_at': datetime.datetime(2025, 7, 3, 11, 3), 'result': '0.032009011519506324', 'result_long': None, 'result_double': None}] Qualite : 0.032009011519506324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24566265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24566265_03-07-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24566265 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_P24566265_03-07-2025_11_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24566297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24566298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24566299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24566300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24566301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24566302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24566303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24566304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24566305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24566306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24566307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24566308, 'pht': 3726}}" where mtr_portfolio_id = 24566265 and dashboard_run_id = 1957998 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`=24566265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105503, 0.032009011519506324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24566265_03-07-2025_11_03_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24566297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24566298, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24566299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24566300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24566301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24566302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24566303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24566304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24566305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24566306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24566307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24566308, '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 = 24567059 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': 3233011, 'mtr_portfolio_id': 24567059, 'created_at': datetime.datetime(2025, 7, 3, 11, 16, 58), 'result': '0.03682111058014902', 'result_long': None, 'result_double': None}] Qualite : 0.03682111058014902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24567059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24567059_03-07-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24567059 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_P24567059_03-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24567060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24567061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24567062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24567063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24567064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24567065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24567066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24567067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24567068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24567069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24567070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24567071, 'pht': 3726}}" where mtr_portfolio_id = 24567059 and dashboard_run_id = 1957998 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`=24567059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105504, 0.03682111058014902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24567059_03-07-2025_11_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24567060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24567061, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24567062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24567063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24567064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24567065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24567066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24567067, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24567068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24567069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24567070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24567071, '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 = 24568090 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': 3233110, 'mtr_portfolio_id': 24568090, 'created_at': datetime.datetime(2025, 7, 3, 11, 33), 'result': '0.06113735365724452', 'result_long': None, 'result_double': None}] Qualite : 0.06113735365724452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24568090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24568090_03-07-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24568090 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_P24568090_03-07-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24568110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24568111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24568112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24568113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24568114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24568115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24568116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24568118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24568119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24568120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24568121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24568122, 'pht': 3726}}" where mtr_portfolio_id = 24568090 and dashboard_run_id = 1957998 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`=24568090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105505, 0.06113735365724452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24568090_03-07-2025_11_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24568110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24568111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24568112, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24568113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24568114, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24568115, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24568116, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24568118, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24568119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24568120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24568121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24568122, '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 = 24569142 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': 3233268, 'mtr_portfolio_id': 24569142, 'created_at': datetime.datetime(2025, 7, 3, 11, 47, 1), 'result': '0.02516025977033602', 'result_long': None, 'result_double': None}] Qualite : 0.02516025977033602 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24569142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24569142_03-07-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24569142 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_P24569142_03-07-2025_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24569227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24569228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24569229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24569230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24569231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24569232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24569234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24569236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24569238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24569241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24569243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24569245, 'pht': 3726}}" where mtr_portfolio_id = 24569142 and dashboard_run_id = 1957998 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`=24569142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105506, 0.02516025977033602, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24569142_03-07-2025_11_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24569227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24569228, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24569229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24569230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24569231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24569232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24569234, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24569236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24569238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24569241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24569243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24569245, '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 = 24570319 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': 3233406, 'mtr_portfolio_id': 24570319, 'created_at': datetime.datetime(2025, 7, 3, 12, 2, 58), 'result': '0.04859403093575734', 'result_long': None, 'result_double': None}] Qualite : 0.04859403093575734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24570319 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24570319_03-07-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24570319 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_P24570319_03-07-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24570353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24570354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24570355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24570356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24570357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24570358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24570359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24570360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24570361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24570362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24570363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24570364, 'pht': 3726}}" where mtr_portfolio_id = 24570319 and dashboard_run_id = 1957998 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`=24570319 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105507, 0.04859403093575734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24570319_03-07-2025_12_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24570353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24570354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24570355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24570356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24570357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24570358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24570359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24570360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24570361, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24570362, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24570363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24570364, '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 = 24571162 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': 3233482, 'mtr_portfolio_id': 24571162, 'created_at': datetime.datetime(2025, 7, 3, 12, 16, 31), 'result': '0.03397078662741598', 'result_long': None, 'result_double': None}] Qualite : 0.03397078662741598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24571162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24571162_03-07-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24571162 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_P24571162_03-07-2025_12_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24571195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24571196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24571197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24571198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24571199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24571200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24571201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24571202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24571203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24571204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24571205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24571206, 'pht': 3726}}" where mtr_portfolio_id = 24571162 and dashboard_run_id = 1957998 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`=24571162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105508, 0.03397078662741598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24571162_03-07-2025_12_16_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24571195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24571196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24571197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24571198, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24571199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24571200, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24571201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24571202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24571203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24571204, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24571205, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24571206, '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 = 24572268 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': 3233579, 'mtr_portfolio_id': 24572268, 'created_at': datetime.datetime(2025, 7, 3, 12, 32, 57), 'result': '0.024182024964223916', 'result_long': None, 'result_double': None}] Qualite : 0.024182024964223916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24572268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24572268_03-07-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24572268 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_P24572268_03-07-2025_12_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24572290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24572291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24572292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24572293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24572294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24572295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24572296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24572297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24572298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24572299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24572300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24572301, 'pht': 3726}}" where mtr_portfolio_id = 24572268 and dashboard_run_id = 1957998 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`=24572268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105509, 0.024182024964223916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24572268_03-07-2025_12_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24572290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24572291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24572292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24572293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24572294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24572295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24572296, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24572297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24572298, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24572299, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24572300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24572301, '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 = 24573096 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': 3233674, 'mtr_portfolio_id': 24573096, 'created_at': datetime.datetime(2025, 7, 3, 12, 36, 32), 'result': '0.011760683475049162', 'result_long': None, 'result_double': None}] Qualite : 0.011760683475049162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24573096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24573096_03-07-2025_12_36_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24573096 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_P24573096_03-07-2025_12_36_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24573162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24573163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24573164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24573165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24573166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24573167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24573168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24573169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24573170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24573171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24573172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24573173, 'pht': 3726}}" where mtr_portfolio_id = 24573096 and dashboard_run_id = 1957998 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`=24573096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12105510, 0.011760683475049162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24573096_03-07-2025_12_36_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24573162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24573163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24573164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24573165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24573166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24573167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24573168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24573169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24573170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24573171, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24573172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24573173, '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 (24536200,24536995,24537684,24538618,24539400,24540440,24541210,24542140,24542941,24543938,24544741,24545553,24546341,24547151,24547868,24548657,24549313,24550150,24550895,24551663,24552414,24553425,24570992,24563061,24561279,24561557,24562734,24563587,24564705,24565474,24566265,24567059,24568090,24569142,24570319,24571162,24572268,24573096) result : ((1370175276,), (1370175280,), (1370175284,), (1370175303,), (1370175306,), (1370175466,), (1370175535,), (1370175666,), (1370175747,), (1370175818,), (1370175890,), (1370176180,), (1370176268,), (1370176300,), (1370176306,), (1370176316,), (1370176329,), (1370176770,), (1370176806,), (1370176843,), (1370176878,), (1370176924,), (1370176930,), (1370176958,), (1370176960,), (1370176992,), (1370176995,), (1370176998,), (1370176999,), (1370177001,), (1370177002,), (1370177011,), (1370177013,), (1370177035,), (1370177041,), (1370177103,), (1370177106,), (1370177107,), (1370177127,), (1370177165,), (1370177186,), (1370177208,), (1370177211,), (1370177222,), (1370177262,), (1370177296,), (1370177331,), (1370177453,), (1370177454,), (1370177462,), (1370177466,), (1370177539,), (1370177544,), (1370177593,), (1370177597,), (1370177656,), (1370177662,), (1370177699,), (1370177708,), (1370177836,), (1370177874,), (1370177928,), (1370177949,), (1370177957,), (1370177964,), (1370178170,), (1370178212,), (1370178292,), (1370178373,), (1370178448,), (1370178497,), (1370178730,), (1370178734,), (1370178752,), (1370178813,), (1370178877,), (1370178945,), (1370178993,), (1370178995,), (1370179000,), (1370179003,), (1370179004,), (1370179006,), (1370179011,), (1370179034,), (1370179065,), (1370179097,), (1370179161,), (1370179215,), (1370179997,), (1370180030,), (1370180063,), (1370180096,), (1370180104,), (1370180111,), (1370180188,), (1370180192,), (1370180194,), (1370180235,), (1370180267,), (1370180331,), (1370180476,), (1370180531,), (1370180582,), (1370180624,), (1370180649,), (1370180672,), (1370180801,), (1370180806,), (1370180834,), (1370180866,), (1370180880,), (1370180915,), (1370181017,), (1370181029,), (1370181038,), (1370181059,), (1370181073,), (1370181081,), (1370181095,), (1370181096,), (1370181098,), (1370181117,), (1370181160,), (1370181213,), (1370181257,), (1370181298,), (1370181306,), (1370181308,), (1370181311,), (1370181345,), (1370181570,), (1370181576,), (1370181588,), (1370181591,), (1370181600,), (1370181604,), (1370181628,), (1370181629,), (1370181631,), (1370181633,), (1370181636,), (1370181659,), (1370181848,), (1370181890,), (1370181946,), (1370181976,), (1370181982,), (1370181984,), (1370182706,), (1370182782,), (1370182866,), (1370182950,), (1370183032,), (1370183120,), (1370183360,), (1370183369,), (1370183371,), (1370183373,), (1370183376,), (1370183378,), (1370183391,), (1370183396,), (1370183397,), (1370183398,), (1370183399,), (1370183401,), (1370183514,), (1370183516,), (1370183526,), (1370183529,), (1370183532,), (1370183536,), (1370183629,), (1370183654,), (1370183655,), (1370183684,), (1370183702,), (1370183738,), (1370183794,), (1370183795,), (1370183828,), (1370183864,), (1370183899,), (1370183930,), (1370184169,), (1370184185,), (1370184211,), (1370184237,), (1370184266,), (1370184284,), (1370184372,), (1370184373,), (1370184385,), (1370184386,), (1370184392,), (1370184398,), (1370184433,), (1370184438,), (1370184479,), (1370184482,), (1370184483,), (1370184485,), (1370184507,), (1370184545,), (1370184557,), (1370184568,), (1370184571,), (1370184601,), (1370184671,), (1370184688,), (1370184698,), (1370184701,), (1370184717,), (1370184718,), (1370184964,), (1370184966,), (1370184996,), (1370184999,), (1370185038,), (1370185042,), (1370185078,), (1370185084,), (1370185135,), (1370185146,), (1370185201,), (1370185213,), (1370185353,), (1370185410,), (1370185474,), (1370185544,), (1370185597,), (1370185633,), (1370185667,), (1370185669,), (1370185698,), (1370185745,), (1370185785,), (1370185815,), (1370186321,), (1370186353,), (1370186389,), (1370186421,), (1370186488,), (1370186551,), (1370186758,), (1370186803,), (1370186834,), (1370186859,), (1370186884,), (1370186929,), (1370187259,), (1370187322,), (1370187384,), (1370187419,), (1370187465,), (1370187519,), (1370187721,), (1370187761,), (1370187797,), (1370187860,), (1370187955,), (1370187996,), (1370188087,), (1370188125,), (1370188148,), (1370188179,), (1370188210,), (1370188245,), (1370188440,), (1370188464,), (1370188466,), (1370188473,), (1370188522,), (1370188577,), (1370189007,), (1370189072,), (1370189141,), (1370189208,), (1370189309,), (1370189407,), (1370189567,), (1370189609,), (1370189626,), (1370189680,), (1370189712,), (1370189725,), (1370190468,), (1370190560,), (1370190618,), (1370190649,), (1370190685,), (1370190734,), (1370190866,), (1370190894,), (1370190895,), (1370190896,), (1370190902,), (1370190913,), (1370190964,), (1370190974,), (1370191014,), (1370191045,), (1370191093,), (1370191129,), (1370191337,), (1370191354,), (1370191399,), (1370191464,), (1370191530,), (1370191564,), (1370191656,), (1370191695,), (1370191765,), (1370191829,), (1370191924,), (1370192022,), (1370192339,), (1370192416,), (1370192486,), (1370192549,), (1370192586,), (1370192618,), (1370192868,), (1370192873,), (1370192885,), (1370192892,), (1370192912,), (1370192922,), (1370192961,), (1370192975,), (1370192986,), (1370192988,), (1370192989,), (1370192990,), (1370193002,), (1370193017,), (1370193018,), (1370193019,), (1370193020,), (1370193021,), (1370193119,), (1370193120,), (1370193132,), (1370193133,), (1370193152,), (1370193153,), (1370193155,), (1370193156,), (1370193179,), (1370193182,), (1370193196,), (1370193197,), (1370193224,), (1370193230,), (1370193237,), (1370193239,), (1370193241,), (1370193243,), (1370193256,), (1370193267,), (1370193297,), (1370193338,), (1370193375,), (1370193426,), (1370194061,), (1370194107,), (1370194135,), (1370194145,), (1370194152,), (1370194155,), (1370194230,), (1370194278,), (1370194342,), (1370194415,), (1370194504,), (1370194616,), (1370195882,), (1370195912,), (1370195987,), (1370196062,), (1370196125,), (1370196173,), (1370196535,), (1370196537,), (1370196560,), (1370196561,), (1370196573,), (1370196574,), (1370196593,), (1370196595,), (1370196612,), (1370196617,), (1370196674,), (1370196723,), (1370196775,), (1370196828,), (1370196859,), (1370196871,), (1370197028,), (1370197080,), (1370197112,), (1370197157,), (1370197203,), (1370197240,), (1370198193,), (1370198281,), (1370198352,), (1370198458,), (1370198574,), (1370198666,), (1370198942,), (1370198976,), (1370199010,), (1370199057,), (1370199093,), (1370199154,), (1370199232,), (1370199253,), (1370199262,), (1370199287,), (1370199316,), (1370199321,), (1370200070,), (1370200128,), (1370200137,), (1370200140,), (1370200170,), (1370200200,), (1370200219,), (1370200245,), (1370200283,), (1370200341,), (1370200385,), (1370200421,), (1370200568,), (1370200604,), (1370200667,), (1370200738,), (1370200808,), (1370200842,), (1370200860,), (1370200894,), (1370200901,), (1370200918,), (1370200931,), (1370200945,), (1370201332,), (1370201344,), (1370201351,), (1370201352,), (1370201361,), (1370201372,), (1370201419,), (1370201456,), (1370201500,), (1370201533,), (1370201556,), (1370201591,), (1370201684,), (1370201718,), (1370201755,), (1370201788,), (1370201835,), (1370201906,), (1370202482,), (1370202513,), (1370202546,), (1370202553,), (1370202555,), (1370202558,), (1370202673,), (1370202676,), (1370202681,), (1370202700,), (1370202746,), (1370202799,), (1370202848,), (1370202856,), (1370202880,), (1370202943,), (1370203006,), (1370203066,), (1370204012,), (1370204093,), (1370204164,), (1370204248,), (1370204274,), (1370204303,), (1370204424,), (1370204440,), (1370204459,), (1370204480,), (1370204518,), (1370204568,), (1370204629,), (1370204650,), (1370204653,), (1370204655,), (1370204668,), (1370204698,), (1370204958,), (1370205028,), (1370205056,), (1370205089,), (1370205111,), (1370205125,), (1370205197,), (1370205229,), (1370205237,), (1370205243,), (1370205258,), (1370205267,), (1370205351,), (1370205398,), (1370205436,), (1370205462,), (1370205479,), (1370205480,), (1370205608,), (1370205654,), (1370205707,), (1370205789,), (1370205839,), (1370205878,), (1370206131,), (1370206174,), (1370206177,), (1370206179,), (1370206190,), (1370206208,), (1370206310,), (1370206362,), (1370206395,), (1370206429,), (1370206468,), (1370206539,), (1370206618,), (1370206620,), (1370206633,), (1370206636,), (1370206638,), (1370206653,), (1370206957,), (1370206972,), (1370206982,), (1370207017,), (1370207032,), (1370207050,), (1370207265,), (1370207319,), (1370207387,), (1370207450,), (1370207517,), (1370207566,), (1370207691,), (1370207693,), (1370207695,), (1370207697,), (1370207724,), (1370207756,), (1370208212,), (1370208245,), (1370208275,), (1370208285,), (1370208291,), (1370208312,), (1370208359,), (1370208387,), (1370208396,), (1370208402,), (1370208409,), (1370208411,), (1370208413,), (1370208414,), (1370208457,), (1370208492,), (1370208523,), (1370208532,), (1370209619,), (1370209717,), (1370209835,), (1370209899,), (1370209967,), (1370210009,), (1370210119,), (1370210121,), (1370210124,), (1370210125,), (1370210152,), (1370210153,), (1370210168,), (1370210170,), (1370210185,), (1370210191,), (1370210205,), (1370210206,), (1370210274,), (1370210275,), (1370210283,), (1370210300,), (1370210302,), (1370210311,), (1370210513,), (1370210655,), (1370210761,), (1370210857,), (1370210954,), (1370211070,), (1370211940,), (1370211955,), (1370212025,), (1370212039,), (1370212095,), (1370212120,), (1370212198,), (1370212223,), (1370212282,), (1370212299,), (1370212324,), (1370212395,), (1370212585,), (1370212601,), (1370212606,), (1370212608,), (1370212622,), (1370212633,), (1370212677,), (1370212681,), (1370212726,), (1370212731,), (1370212742,), (1370212751,), (1370213023,), (1370213075,), (1370213121,), (1370213183,), (1370213227,), (1370213289,), (1370213554,), (1370213618,), (1370213655,), (1370213713,), (1370213751,), (1370213785,), (1370213861,), (1370213896,), (1370213933,), (1370213964,), (1370213967,), (1370213969,), (1370214040,), (1370214052,), (1370214056,), (1370214061,), (1370214064,), (1370214080,), (1370214105,), (1370214125,), (1370214126,), (1370214155,), (1370214198,), (1370214285,), (1370214590,), (1370214630,), (1370214649,), (1370214652,), (1370214661,), (1370214694,), (1370214856,), (1370214955,), (1370215056,), (1370215102,), (1370215144,), (1370215183,), (1370215662,), (1370215664,), (1370215688,), (1370215689,), (1370215692,), (1370215693,), (1370215694,), (1370215695,), (1370215696,), (1370215697,), (1370215707,), (1370215710,), (1370215864,), (1370215866,), (1370215869,), (1370215870,), (1370215891,), (1370215892,), (1370215934,), (1370215965,), (1370215996,), (1370216046,), (1370216085,), (1370216126,), (1370216571,), (1370216576,), (1370216609,), (1370216616,), (1370216643,), (1370216652,), (1370216671,), (1370216678,), (1370216680,), (1370216682,), (1370216686,), (1370216705,), (1370216832,), (1370216865,), (1370216895,), (1370216904,), (1370216938,), (1370216971,), (1370217004,), (1370217080,), (1370217128,), (1370217177,), (1370217217,), (1370217236,), (1370217836,), (1370217878,), (1370217912,), (1370217945,), (1370217972,), (1370218007,), (1370218023,), (1370218042,), (1370218045,), (1370218047,), (1370218050,), (1370218051,), (1370218200,), (1370218262,), (1370218339,), (1370218394,), (1370218431,), (1370218500,), (1370218884,), (1370218923,), (1370218947,), (1370218969,), (1370218986,), (1370219028,), (1370219143,), (1370219208,), (1370219262,), (1370219291,), (1370219336,), (1370219364,), (1370219386,), (1370219388,), (1370219393,), (1370219395,), (1370219406,), (1370219416,), (1370220272,), (1370220376,), (1370220417,), (1370220451,), (1370220485,), (1370220538,), (1370221096,), (1370221153,), (1370221225,), (1370221290,), (1370221399,), (1370221933,), (1370222027,), (1370222098,), (1370222197,), (1370222325,), (1370222415,), (1370222709,), (1370222787,), (1370222851,), (1370222912,), (1370223005,), (1370223128,), (1370223538,), (1370223542,), (1370223572,), (1370223584,), (1370223607,), (1370223619,), (1370223641,), (1370223654,), (1370223675,), (1370223684,), (1370223686,), (1370223687,), (1370223691,), (1370223693,), (1370223725,), (1370223766,), (1370223834,), (1370223899,), (1370224119,), (1370224211,), (1370224310,), (1370224478,), (1370224535,), (1370224573,), (1370225073,), (1370225111,), (1370225151,), (1370225185,), (1370225217,), (1370225252,), (1370225360,), (1370225392,), (1370225422,), (1370225455,), (1370225487,), (1370225520,), (1370225670,), (1370225673,), (1370225676,), (1370225679,), (1370225702,), (1370225704,), (1370225720,), (1370225745,), (1370225756,), (1370225766,), (1370225768,), (1370225770,), (1370226411,), (1370226421,), (1370226423,), (1370226439,), (1370226473,), (1370226480,), (1370226519,), (1370226550,), (1370226569,), (1370226583,), (1370226584,), (1370226585,), (1370226615,), (1370226628,), (1370226640,), (1370226645,), (1370226647,), (1370226648,), (1370226729,), (1370226740,), (1370226747,), (1370226756,), (1370226759,), (1370226770,), (1370226935,), (1370227035,), (1370227111,), (1370227162,), (1370227165,), (1370227168,), (1370227700,), (1370227719,), (1370227745,), (1370227768,), (1370227810,), (1370227899,), (1370228022,), (1370228024,), (1370228043,), (1370228105,), (1370228159,), (1370228198,), (1370228397,), (1370228457,), (1370228504,), (1370228547,), (1370228601,), (1370228602,), (1370229099,), (1370229195,), (1370229309,), (1370229409,), (1370229502,), (1370229644,), (1370229936,), (1370230047,), (1370230125,), (1370230169,), (1370230189,), (1370230191,), (1370230317,), (1370230345,), (1370230347,), (1370230349,), (1370230372,), (1370230395,), (1370230433,), (1370230475,), (1370230484,), (1370230510,), (1370230521,), (1370230527,), (1370231090,), (1370231140,), (1370231178,), (1370231205,), (1370231236,), (1370231275,), (1370231302,), (1370231349,), (1370231420,), (1370231479,), (1370231530,), (1370231554,), (1370231719,), (1370231796,), (1370231855,), (1370231916,), (1370231948,), (1370231982,), (1370232450,), (1370232525,), (1370232594,), (1370232634,), (1370232668,), (1370232720,), (1370232895,), (1370232959,), (1370233029,), (1370233070,), (1370233103,), (1370233141,), (1370233243,), (1370233278,), (1370233304,), (1370233328,), (1370233367,), (1370233410,), (1370233732,), (1370233750,), (1370233781,), (1370233804,), (1370233807,), (1370233824,), (1370233889,), (1370233891,), (1370233903,), (1370233909,), (1370233912,), (1370233915,), (1370233926,), (1370233984,), (1370234018,), (1370234048,), (1370234103,), (1370234139,), (1370234206,), (1370234251,), (1370234255,), (1370234261,), (1370234294,), (1370234331,), (1370235287,), (1370235321,), (1370235357,), (1370235373,), (1370235406,), (1370235446,), (1370235629,), (1370235697,), (1370235789,), (1370235852,), (1370235913,), (1370235937,), (1370235997,), (1370236046,), (1370236057,), (1370236064,), (1370236066,), (1370236068,), (1370236074,), (1370236082,), (1370236104,), (1370236112,), (1370236114,), (1370236122,), (1370236592,), (1370236627,), (1370236768,), (1370236922,), (1370236987,), (1370237049,), (1370237293,), (1370237363,), (1370237432,), (1370237478,), (1370237532,), (1370237609,), (1370237700,), (1370237730,), (1370237758,), (1370237771,), (1370237799,), (1370237866,), (1370237931,), (1370237975,), (1370238010,), (1370238050,), (1370238073,), (1370238078,), (1370238337,), (1370238339,), (1370238359,), (1370238391,), (1370238424,), (1370238450,), (1370238473,), (1370238510,), (1370238569,), (1370238599,), (1370238636,), (1370238676,), (1370238827,), (1370238889,), (1370238932,), (1370238965,), (1370238999,), (1370239031,), (1370239256,), (1370239281,), (1370239297,), (1370239306,), (1370239311,), (1370239332,), (1370239351,), (1370239368,), (1370239414,), (1370239468,), (1370239507,), (1370239549,), (1370240288,), (1370240395,), (1370240519,), (1370240643,), (1370240729,), (1370240816,), (1370241187,), (1370241319,), (1370241418,), (1370241449,), (1370241539,), (1370241600,), (1370241793,), (1370241842,), (1370241888,), (1370241927,), (1370241928,), (1370241956,), (1370242099,), (1370242134,), (1370242169,), (1370242174,), (1370242176,), (1370242205,), (1370242315,), (1370242346,), (1370242374,), (1370242375,), (1370242377,), (1370242381,), (1370242701,), (1370242723,), (1370242731,), (1370242736,), (1370242755,), (1370242758,), (1370242856,), (1370242899,), (1370242961,), (1370242996,), (1370243043,), (1370243077,), (1370243131,), (1370243135,), (1370243139,), (1370243171,), (1370243204,), (1370243244,), (1370243375,), (1370243414,), (1370243455,), (1370243472,), (1370243474,), (1370243475,), (1370243502,), (1370243503,), (1370243504,), (1370243505,), (1370243514,), (1370243516,), (1370243520,), (1370243521,), (1370243527,), (1370243529,), (1370243535,), (1370243546,), (1370243552,), (1370243553,), (1370243574,), (1370243637,), (1370243697,), (1370243756,), (1370243995,), (1370244062,), (1370244124,), (1370244191,), (1370244225,), (1370244240,), (1370244643,), (1370244644,), (1370244694,), (1370244695,), (1370244763,), (1370244765,), (1370244798,), (1370244801,), (1370244832,), (1370244836,), (1370244865,), (1370244873,), (1370245597,), (1370245634,), (1370245673,), (1370245719,), (1370245763,), (1370245801,), (1370247010,), (1370247012,), (1370247053,), (1370247055,), (1370247119,), (1370247125,), (1370247169,), (1370247176,), (1370247231,), (1370247240,), (1370247428,), (1370247466,), (1370247515,), (1370247584,), (1370247651,), (1370247770,), (1370248231,), (1370248238,), (1370248239,), (1370248245,), (1370248277,), (1370248328,), (1370248385,), (1370248386,), (1370248387,), (1370248388,), (1370248390,), (1370248392,), (1370248397,), (1370248457,), (1370248460,), (1370248464,), (1370248466,), (1370248467,), (1370248498,), (1370248508,), (1370248524,), (1370248537,), (1370248582,), (1370248633,), (1370248959,), (1370248994,), (1370249053,), (1370249059,), (1370249062,), (1370249071,), (1370249084,), (1370249122,), (1370249161,), (1370249178,), (1370249190,), (1370249208,), (1370249225,), (1370249227,), (1370249290,), (1370249313,), (1370249324,), (1370249339,), (1370249709,), (1370249740,), (1370249796,), (1370249814,), (1370249824,), (1370249825,), (1370249871,), (1370249872,), (1370249873,), (1370249874,), (1370249884,), (1370249926,), (1370249982,), (1370250014,), (1370250048,), (1370250079,), (1370250117,), (1370250158,), (1370250272,), (1370250307,), (1370250340,), (1370250379,), (1370250421,), (1370250455,), (1370250589,), (1370250612,), (1370250624,), (1370250635,), (1370250642,), (1370250645,), (1370250672,), (1370250697,), (1370250699,), (1370250731,), (1370250768,), (1370250802,), (1370250961,), (1370251041,), (1370251117,), (1370251234,), (1370251321,), (1370251384,), (1370251853,), (1370251925,), (1370251962,), (1370251997,), (1370252019,), (1370252043,), (1370252055,), (1370252067,), (1370252125,), (1370252195,), (1370252255,), (1370252285,), (1370252337,), (1370252424,), (1370252470,), (1370252534,), (1370252620,), (1370252669,), (1370252856,), (1370252861,), (1370252883,), (1370252937,), (1370253005,), (1370253072,), (1370253266,), (1370253272,), (1370253274,), (1370253288,), (1370253297,), (1370253304,), (1370253362,), (1370253388,), (1370253394,), (1370253396,), (1370253415,), (1370253416,), (1370253419,), (1370253454,), (1370253487,), (1370253545,), (1370253578,), (1370253610,), (1370253686,), (1370253690,), (1370253699,), (1370253726,), (1370253744,), (1370253759,), (1370253770,), (1370253796,), (1370253845,), (1370253856,), (1370253871,), (1370253907,), (1370254032,), (1370254066,), (1370254088,), (1370254089,), (1370254090,), (1370254110,), (1370254264,), (1370254295,), (1370254345,), (1370254402,), (1370254436,), (1370254482,), (1370254674,), (1370254702,), (1370254733,), (1370254740,), (1370254746,), (1370254775,), (1370255019,), (1370255094,), (1370255145,), (1370255197,), (1370255258,), (1370255286,), (1370255355,), (1370255396,), (1370255471,), (1370255521,), (1370255569,), (1370255633,), (1370256156,), (1370256255,), (1370256294,), (1370256328,), (1370256366,), (1370256401,), (1370256503,), (1370256507,), (1370256509,), (1370256520,), (1370256529,), (1370256532,), (1370256554,), (1370256566,), (1370256603,), (1370256649,), (1370256683,), (1370256750,), (1370256958,), (1370257017,), (1370257021,), (1370257033,), (1370257059,), (1370257062,), (1370257117,), (1370257120,), (1370257122,), (1370257125,), (1370257145,), (1370257176,), (1370257347,), (1370257362,), (1370257365,), (1370257368,), (1370257398,), (1370257410,), (1370257427,), (1370257473,), (1370257509,), (1370257533,), (1370257571,), (1370257599,), (1370257658,), (1370257664,), (1370257670,), (1370257700,), (1370257775,), (1370257829,), (1370257975,), (1370258012,), (1370258045,), (1370258064,), (1370258078,), (1370258080,), (1370258137,), (1370258138,), (1370258140,), (1370258141,), (1370258144,), (1370258145,), (1370258167,), (1370258173,), (1370258200,), (1370258206,), (1370258236,), (1370258242,), (1370258417,), (1370258452,), (1370258495,), (1370258500,), (1370258506,), (1370258536,), (1370258566,), (1370258621,), (1370258665,), (1370258708,), (1370258746,), (1370258817,), (1370259481,), (1370259524,), (1370259568,), (1370259603,), (1370259644,), (1370259694,), (1370259935,), (1370259990,), (1370260046,), (1370260084,), (1370260104,), (1370260137,), (1370260202,), (1370260233,), (1370260303,), (1370260389,), (1370260446,), (1370260477,), (1370260729,), (1370260817,), (1370260860,), (1370260893,), (1370260919,), (1370260960,), (1370260974,), (1370260977,), (1370260989,), (1370260997,), (1370261067,), (1370261171,), (1370261416,), (1370261456,), (1370261462,), (1370261464,), (1370261466,), (1370261471,), (1370261599,), (1370261634,), (1370261644,), (1370261673,), (1370261689,), (1370261742,), (1370261824,), (1370261835,), (1370261836,), (1370261843,), (1370261844,), (1370261845,), (1370261887,), (1370261905,), (1370261934,), (1370261963,), (1370261964,), (1370261973,), (1370261983,), (1370261985,), (1370261998,), (1370261999,), (1370262000,), (1370262032,), (1370262063,), (1370262095,), (1370262100,), (1370262117,), (1370262165,), (1370262207,), (1370262416,), (1370262417,), (1370262419,), (1370262453,), (1370262489,), (1370262520,), (1370262525,), (1370262534,), (1370262558,), (1370262578,), (1370262586,), (1370262617,), (1370262729,), (1370262765,), (1370262792,), (1370262794,), (1370262798,), (1370262804,), (1370263217,), (1370263248,), (1370263281,), (1370263323,), (1370263380,), (1370263386,), (1370263543,), (1370263578,), (1370263623,), (1370263701,), (1370263782,), (1370263843,), (1370264080,), (1370264162,), (1370264285,), (1370264328,), (1370264377,), (1370264436,), (1370265381,), (1370265429,), (1370265461,), (1370265507,), (1370265524,), (1370265586,), (1370266341,), (1370266377,), (1370266443,), (1370266509,), (1370266554,), (1370266591,), (1370266592,), (1370266593,), (1370266594,), (1370266613,), (1370266615,), (1370266656,), (1370266665,), (1370266699,), (1370266707,), (1370266735,), (1370266742,), (1370266884,), (1370266930,), (1370266959,), (1370266998,), (1370267032,), (1370267066,), (1370267193,), (1370267259,), (1370267321,), (1370267405,), (1370267466,), (1370267530,), (1370268058,), (1370268061,), (1370268063,), (1370268065,), (1370268067,), (1370268072,), (1370268080,), (1370268089,), (1370268091,), (1370268092,), (1370268093,), (1370268100,), (1370268240,), (1370268283,), (1370268322,), (1370268367,), (1370268407,), (1370268490,), (1370268977,), (1370269006,), (1370269056,), (1370269071,), (1370269084,), (1370269114,), (1370269288,), (1370269320,), (1370269364,), (1370269433,), (1370269539,), (1370269578,), (1370269596,), (1370269598,), (1370269605,), (1370269628,), (1370269739,), (1370269815,), (1370269932,), (1370269968,), (1370270024,), (1370270095,), (1370270131,), (1370270167,), (1370270527,), (1370270529,), (1370270561,), (1370270563,), (1370270624,), (1370270628,), (1370270700,), (1370270703,), (1370270776,), (1370270782,), (1370270798,), (1370270799,), (1370270812,), (1370270837,), (1370270843,), (1370270868,), (1370270876,), (1370270878,), (1370270882,), (1370270913,), (1370270948,), (1370270976,), (1370270987,), (1370270991,), (1370271133,), (1370271134,), (1370271184,), (1370271193,), (1370271255,), (1370271259,), (1370271301,), (1370271302,), (1370271340,), (1370271342,), (1370271376,), (1370271385,), (1370271510,), (1370271544,), (1370271577,), (1370271610,), (1370271639,), (1370271656,), (1370271662,), (1370271667,), (1370271669,), (1370271671,), (1370271677,), (1370271691,), (1370271887,), (1370271892,), (1370271902,), (1370271934,), (1370271955,), (1370271982,), (1370272020,), (1370272058,), (1370272092,), (1370272150,), (1370272168,), (1370272172,), (1370272262,), (1370272323,), (1370272365,), (1370272372,), (1370272394,), (1370272441,), (1370272594,), (1370272636,), (1370272658,), (1370272675,), (1370272702,), (1370272710,), (1370273401,), (1370273417,), (1370273448,), (1370273480,), (1370273484,), (1370273493,), (1370273531,), (1370273581,), (1370273643,), (1370273695,), (1370273724,), (1370273739,), (1370273914,), (1370273998,), (1370274064,), (1370274103,), (1370274140,), (1370274182,), (1370274696,), (1370274699,), (1370274727,), (1370274731,), (1370274761,), (1370274764,), (1370274767,), (1370274768,), (1370274770,), (1370274771,), (1370274773,), (1370274774,), (1370274850,), (1370274915,), (1370274977,), (1370275047,), (1370275111,), (1370275178,), (1370275303,), (1370275337,), (1370275379,), (1370275435,), (1370275487,), (1370275519,), (1370276097,), (1370276099,), (1370276153,), (1370276154,), (1370276185,), (1370276186,), (1370276217,), (1370276220,), (1370276252,), (1370276253,), (1370276285,), (1370276287,), (1370276341,), (1370276344,), (1370276349,), (1370276360,), (1370276378,), (1370276379,), (1370276380,), (1370276387,), (1370276405,), (1370276416,), (1370276419,), (1370276422,), (1370276505,), (1370276508,), (1370276521,), (1370276525,), (1370276537,), (1370276543,), (1370276604,), (1370276626,), (1370276628,), (1370276631,), (1370276633,), (1370276635,), (1370276755,), (1370276790,), (1370276823,), (1370276858,), (1370276873,), (1370276876,), (1370277125,), (1370277156,), (1370277190,), (1370277222,), (1370277283,), (1370277335,), (1370277555,), (1370277587,), (1370277607,), (1370277609,), (1370277610,), (1370277611,), (1370277616,), (1370277619,), (1370277625,), (1370277642,), (1370277645,), (1370277672,), (1370278020,), (1370278073,), (1370278092,), (1370278108,), (1370278125,), (1370278168,), (1370278340,), (1370278345,), (1370278354,), (1370278373,), (1370278448,), (1370278454,), (1370278511,), (1370278578,), (1370278592,), (1370278594,), (1370278596,), (1370278606,), (1370278839,), (1370278843,), (1370278880,), (1370278884,), (1370278927,), (1370278933,), (1370278946,), (1370278950,), (1370278964,), (1370278965,), (1370278968,), (1370278969,), (1370278997,), (1370279030,), (1370279065,), (1370279094,), (1370279101,), (1370279109,), (1370279118,), (1370279120,), (1370279122,), (1370279124,), (1370279127,), (1370279130,), (1370279520,), (1370279570,), (1370279630,), (1370279684,), (1370279693,), (1370279778,), (1370279881,), (1370279919,), (1370279978,), (1370280003,), (1370280009,), (1370280014,), (1370280115,), (1370280148,), (1370280191,), (1370280242,), (1370280253,), (1370280255,), (1370280794,), (1370280799,), (1370280830,), (1370280893,), (1370280955,), (1370281017,), (1370280308,), (1370280311,), (1370280342,), (1370280382,), (1370280434,), (1370280457,), (1370280485,), (1370280516,), (1370280593,), (1370280645,), (1370280695,), (1370280722,), (1370281357,), (1370281412,), (1370281479,), (1370281515,), (1370281569,), (1370281618,), (1370281835,), (1370281894,), (1370281953,), (1370281987,), (1370282019,), (1370282059,), (1370282174,), (1370282181,), (1370282188,), (1370282190,), (1370282192,), (1370282193,), (1370282686,), (1370282739,), (1370282763,), (1370282769,), (1370282774,), (1370282779,), (1370282848,), (1370282862,), (1370282866,), (1370282869,), (1370282878,), (1370282880,), (1370282962,), (1370282965,), (1370282968,), (1370282971,), (1370282987,), (1370283027,), (1370283485,), (1370283527,), (1370283561,), (1370283596,), (1370283634,), (1370283664,), (1370283755,), (1370283785,), (1370283818,), (1370283848,), (1370283878,), (1370283903,), (1370283938,), (1370283954,), (1370283956,), (1370283963,), (1370284006,), (1370284024,), (1370284605,), (1370284650,), (1370284684,), (1370284729,), (1370284827,), (1370284895,), (1370285050,), (1370285128,), (1370285233,), (1370285330,), (1370285376,), (1370285415,), (1370286086,), (1370286119,), (1370286178,), (1370286268,), (1370286339,), (1370286381,), (1370286768,), (1370286867,), (1370286969,), (1370287097,), (1370287171,), (1370287597,), (1370287671,), (1370287750,), (1370287843,), (1370287941,), (1370288053,), (1370288309,), (1370288373,), (1370288438,), (1370288473,), (1370288509,), (1370288552,), (1370288903,), (1370288966,), (1370289037,), (1370289110,), (1370289185,), (1370289260,), (1370289516,), (1370289522,), (1370289580,), (1370289586,), (1370289592,), (1370289593,), (1370289599,), (1370289600,), (1370289622,), (1370289629,), (1370289669,), (1370289671,), (1370289800,), (1370289803,), (1370289805,), (1370289806,), (1370289811,), (1370289874,), (1370290124,), (1370290157,), (1370290171,), (1370290198,), (1370290224,), (1370290241,), (1370290456,), (1370290459,), (1370290462,), (1370290465,), (1370290467,), (1370290485,), (1370290610,), (1370290653,), (1370290690,), (1370290726,), (1370290739,), (1370290740,), (1370290879,), (1370290929,), (1370290973,), (1370291010,), (1370291014,), (1370291053,), (1370291509,), (1370291511,), (1370291522,), (1370291523,), (1370291542,), (1370291545,), (1370291606,), (1370291616,), (1370291624,), (1370291625,), (1370291644,), (1370291651,), (1370291701,), (1370291703,), (1370291705,), (1370291708,), (1370291710,), (1370291718,), (1370291827,), (1370291859,), (1370291868,), (1370291871,), (1370291874,), (1370291877,), (1370292229,), (1370292231,), (1370292237,), (1370292255,), (1370292294,), (1370292334,), (1370292353,), (1370292361,), (1370292363,), (1370292366,), (1370292382,), (1370292384,), (1370292396,), (1370292399,), (1370292409,), (1370292415,), (1370292419,), (1370292424,), (1370292575,), (1370292579,), (1370292582,), (1370292583,), (1370292613,), (1370292638,), (1370292689,), (1370292711,), (1370292745,), (1370292780,), (1370292842,), (1370292893,), (1370292941,), (1370292943,), (1370293011,), (1370293034,), (1370293050,), (1370293064,), (1370293207,), (1370293256,), (1370293320,), (1370293367,), (1370293401,), (1370293434,), (1370293550,), (1370293589,), (1370293623,), (1370293656,), (1370293691,), (1370293752,), (1370293934,), (1370293937,), (1370293984,), (1370293989,), (1370294040,), (1370294067,), (1370294097,), (1370294105,), (1370294128,), (1370294137,), (1370294172,), (1370294184,), (1370294368,), (1370294423,), (1370294459,), (1370294501,), (1370294535,), (1370294571,), (1370294794,), (1370294857,), (1370294923,), (1370294977,), (1370295010,), (1370295024,), (1370295391,), (1370295427,), (1370295467,), (1370295498,), (1370295533,), (1370295567,), (1370295604,), (1370295645,), (1370295709,), (1370295784,), (1370295860,), (1370295961,), (1370296266,), (1370296360,), (1370296456,), (1370296553,), (1370296630,), (1370296691,), (1370367110,), (1370367127,), (1370367155,), (1370367173,), (1370367185,), (1370367194,), (1370367211,), (1370367240,), (1370367263,), (1370367266,), (1370367294,), (1370367307,), (1370367346,), (1370367356,), (1370367365,), (1370367376,), (1370367381,), (1370367386,), (1370367408,), (1370367419,), (1370367476,), (1370367493,), (1370367505,), (1370367515,), (1370367563,), (1370367574,), (1370367626,), (1370367679,), (1370367741,), (1370367832,), (1370368009,), (1370368018,), (1370368037,), (1370368090,), (1370368153,), (1370368186,), (1370368282,), (1370368285,), (1370368315,), (1370368331,), (1370368369,), (1370368393,), (1370368397,), (1370368399,), (1370368403,), (1370368404,), (1370368428,), (1370368429,), (1370368477,), (1370368489,), (1370368501,), (1370368515,), (1370368524,), (1370368525,), (1370368637,), (1370368643,), (1370368647,), (1370368651,), (1370368678,), (1370368688,), (1370369422,), (1370369464,), (1370369479,), (1370369487,), (1370369493,), (1370369510,), (1370370419,), (1370370472,), (1370370542,), (1370370576,), (1370370603,), (1370370624,), (1370371551,), (1370371596,), (1370371632,), (1370371665,), (1370371709,), (1370371750,), (1370372468,), (1370372478,), (1370372481,), (1370372486,), (1370372495,), (1370372501,), (1370372983,), (1370373023,), (1370373031,), (1370373076,), (1370373089,), (1370373101,), (1370373884,), (1370373888,), (1370373892,), (1370373903,), (1370373907,), (1370373909,), (1370368549,), (1370368562,), (1370368570,), (1370368576,), (1370368589,), (1370368595,), (1370368730,), (1370368731,), (1370368735,), (1370368736,), (1370368741,), (1370368746,), (1370368752,), (1370368754,), (1370368758,), (1370368759,), (1370368765,), (1370368766,), (1370368809,), (1370368853,), (1370368899,), (1370368937,), (1370368989,), (1370369033,), (1370369066,), (1370369104,), (1370369183,), (1370369243,), (1370369294,), (1370369339,), (1370369597,), (1370369607,), (1370369609,), (1370369611,), (1370369620,), (1370369626,), (1370369638,), (1370369642,), (1370369644,), (1370369645,), (1370369651,), (1370369691,), (1370369727,), (1370369750,), (1370369762,), (1370369764,), (1370369839,), (1370369963,), (1370370178,), (1370370242,), (1370370261,), (1370370264,), (1370370291,), (1370370340,), (1370370741,), (1370370752,), (1370370810,), (1370370831,), (1370370844,), (1370370864,), (1370370899,), (1370370912,), (1370370947,), (1370370965,), (1370370989,), (1370371003,), (1370371075,), (1370371118,), (1370371157,), (1370371175,), (1370371187,), (1370371199,), (1370371354,), (1370371366,), (1370371389,), (1370371392,), (1370371402,), (1370371416,), (1370371898,), (1370371903,), (1370371911,), (1370371912,), (1370371930,), (1370371941,), (1370371971,), (1370371983,), (1370372008,), (1370372013,), (1370372017,), (1370372019,), (1370372035,), (1370372039,), (1370372050,), (1370372065,), (1370372101,), (1370372142,), (1370372290,), (1370372332,), (1370372369,), (1370372404,), (1370372429,), (1370372434,), (1370372599,), (1370372623,), (1370372628,), (1370372633,), (1370372636,), (1370372638,), (1370372665,), (1370372684,), (1370372690,), (1370372696,), (1370372703,), (1370372721,), (1370372758,), (1370372772,), (1370372807,), (1370372816,), (1370372835,), (1370372861,), (1370373267,), (1370373315,), (1370373333,), (1370373337,), (1370373368,), (1370373418,), (1370373567,), (1370373584,), (1370373612,), (1370373618,), (1370373621,), (1370373631,), (1370373709,), (1370373764,), (1370373792,), (1370373809,), (1370373813,), (1370373824,), (1370373971,), (1370374034,), (1370374049,), (1370374056,), (1370374060,), (1370374189,), (1370374364,), (1370374433,), (1370374476,), (1370374512,), (1370374546,), (1370374586,), (1370374672,), (1370374692,), (1370374707,), (1370374728,), (1370374750,), (1370374755,), (1370374874,), (1370374881,), (1370374891,), (1370374898,), (1370374902,), (1370374923,), (1370374983,), (1370375018,), (1370375061,), (1370375098,), (1370375132,), (1370375136,), (1370375191,), (1370375209,), (1370375212,), (1370375230,), (1370375241,), (1370375246,), (1370375262,), (1370375283,), (1370375342,), (1370375385,), (1370375419,), (1370375445,), (1370375811,), (1370375817,), (1370375826,), (1370375832,), (1370375839,), (1370375849,), (1370375978,), (1370376015,), (1370376047,), (1370376081,), (1370376121,), (1370376158,), (1370376690,), (1370376747,), (1370376823,), (1370376889,), (1370376967,), (1370377035,), (1370374785,), (1370374803,), (1370374812,), (1370374822,), (1370374829,), (1370374833,), (1370375575,), (1370375587,), (1370375590,), (1370375613,), (1370375670,), (1370375706,), (1370377112,), (1370377130,), (1370377175,), (1370377210,), (1370377266,), (1370377275,), (1370377482,), (1370377484,), (1370377989,), (1370378049,), (1370378108,), (1370378142,), (1370378159,), (1370378194,), (1370378812,), (1370378844,), (1370378891,), (1370378937,), (1370378975,), (1370379033,), (1370380354,), (1370380362,), (1370380365,), (1370380376,), (1370380381,), (1370380394,), (1370380938,), (1370380939,), (1370380948,), (1370380953,), (1370380964,), (1370381020,), (1370381534,), (1370381541,), (1370381551,), (1370381557,), (1370381594,), (1370381610,), (1370382389,), (1370382391,), (1370382418,), (1370382432,), (1370382436,), (1370382439,), (1370383304,), (1370383313,), (1370383342,), (1370383358,), (1370383365,), (1370383376,), (1370383825,), (1370383835,), (1370383866,), (1370383882,), (1370383903,), (1370383905,), (1370384811,), (1370384814,), (1370384826,), (1370384839,), (1370384846,), (1370384881,), (1370386689,), (1370386763,), (1370386825,), (1370386867,), (1370386918,), (1370386958,), (1370387943,), (1370387949,), (1370387958,), (1370387962,), (1370387968,), (1370387971,), (1370388760,), (1370388762,), (1370388765,), (1370388772,), (1370388777,), (1370377418,), (1370377420,), (1370377440,), (1370377441,), (1370377443,), (1370377445,), (1370377454,), (1370377455,), (1370377457,), (1370377458,), (1370377544,), (1370377549,), (1370377564,), (1370377598,), (1370377618,), (1370377622,), (1370377650,), (1370377684,), (1370377720,), (1370377762,), (1370377817,), (1370377853,), (1370378251,), (1370378285,), (1370378294,), (1370378297,), (1370378298,), (1370378305,), (1370378332,), (1370378339,), (1370378364,), (1370378370,), (1370378382,), (1370378389,), (1370378474,), (1370378593,), (1370378677,), (1370378683,), (1370378694,), (1370378699,), (1370379215,), (1370379314,), (1370379372,), (1370379411,), (1370379457,), (1370379504,), (1370379598,), (1370379624,), (1370379655,), (1370379707,), (1370379752,), (1370379810,), (1370380035,), (1370380115,), (1370380183,), (1370380200,), (1370380227,), (1370380250,), (1370380507,), (1370380521,), (1370380558,), (1370380571,), (1370380572,), (1370380586,), (1370380616,), (1370380629,), (1370380646,), (1370380659,), (1370380679,), (1370380681,), (1370380750,), (1370380788,), (1370380822,), (1370380851,), (1370380892,), (1370380922,), (1370381084,), (1370381110,), (1370381127,), (1370381135,), (1370381137,), (1370381148,), (1370381212,), (1370381253,), (1370381273,), (1370381283,), (1370381294,), (1370381302,), (1370381357,), (1370381392,), (1370381447,), (1370381472,), (1370381483,), (1370381488,), (1370381646,), (1370381673,), (1370381680,), (1370381683,), (1370381686,), (1370381727,), (1370381840,), (1370381870,), (1370381877,), (1370381886,), (1370381919,), (1370381999,), (1370382177,), (1370382226,), (1370382234,), (1370382245,), (1370382255,), (1370382267,), (1370382457,), (1370382467,), (1370382482,), (1370382492,), (1370382506,), (1370382551,), (1370382575,), (1370382590,), (1370382627,), (1370382640,), (1370382644,), (1370382655,), (1370382794,), (1370382866,), (1370382931,), (1370382985,), (1370383024,), (1370383057,), (1370383106,), (1370383115,), (1370383120,), (1370383126,), (1370383157,), (1370383192,), (1370383405,), (1370383439,), (1370383440,), (1370383444,), (1370383445,), (1370383462,), (1370383475,), (1370383486,), (1370383491,), (1370383495,), (1370383528,), (1370383538,), (1370383584,), (1370383604,), (1370383619,), (1370383630,), (1370383635,), (1370383683,), (1370383702,), (1370383713,), (1370383730,), (1370383751,), (1370383778,), (1370383781,), (1370383940,), (1370384025,), (1370384153,), (1370384253,), (1370384288,), (1370384318,), (1370384363,), (1370384374,), (1370384383,), (1370384393,), (1370384397,), (1370384416,), (1370384480,), (1370384481,), (1370384496,), (1370384497,), (1370384504,), (1370384508,), (1370384517,), (1370384522,), (1370384528,), (1370384535,), (1370384537,), (1370384541,), (1370384665,), (1370384678,), (1370384681,), (1370384688,), (1370384697,), (1370384715,), (1370384760,), (1370384768,), (1370384773,), (1370384781,), (1370384785,), (1370384787,), (1370384942,), (1370384961,), (1370385017,), (1370385084,), (1370385149,), (1370385253,), (1370385556,), (1370385591,), (1370385652,), (1370385705,), (1370385743,), (1370385795,), (1370385897,), (1370385898,), (1370385901,), (1370385902,), (1370385906,), (1370385925,), (1370385958,), (1370385965,), (1370386004,), (1370386038,), (1370386041,), (1370386074,), (1370386193,), (1370386250,), (1370386283,), (1370386302,), (1370386312,), (1370386340,), (1370386381,), (1370386397,), (1370386405,), (1370386415,), (1370386435,), (1370386467,), (1370386986,), (1370386991,), (1370387037,), (1370387075,), (1370387079,), (1370387095,), (1370387142,), (1370387144,), (1370387148,), (1370387183,), (1370387203,), (1370387216,), (1370387236,), (1370387237,), (1370387247,), (1370387252,), (1370387341,), (1370387390,), (1370387418,), (1370387449,), (1370387490,), (1370387501,), (1370387536,), (1370387562,), (1370387590,), (1370387599,), (1370387603,), (1370387636,), (1370387679,), (1370387684,), (1370387695,), (1370387697,), (1370387699,), (1370387708,), (1370387714,), (1370387720,), (1370387738,), (1370387739,), (1370387764,), (1370387808,), (1370387825,), (1370387831,), (1370387860,), (1370387864,), (1370387873,), (1370387883,), (1370387887,), (1370387892,), (1370387901,), (1370387909,), (1370387912,), (1370387913,), (1370387921,), (1370387931,), (1370387989,), (1370387992,), (1370387996,), (1370387998,), (1370388000,), (1370388007,), (1370388019,), (1370388028,), (1370388035,), (1370388038,), (1370388042,), (1370388089,), (1370388145,), (1370388158,), (1370388186,), (1370388191,), (1370388203,), (1370388210,), (1370388249,), (1370388251,), (1370388253,), (1370388262,), (1370388266,), (1370388269,), (1370388275,), (1370388277,), (1370388283,), (1370388286,), (1370388303,), (1370388307,), (1370388317,), (1370388329,), (1370388336,), (1370388339,), (1370388346,), (1370388349,), (1370388423,), (1370388461,), (1370388490,), (1370388523,), (1370388539,), (1370388554,), (1370388645,), (1370388648,), (1370388658,), (1370388662,), (1370388665,), (1370388668,), (1370388686,), (1370388693,), (1370388701,), (1370388706,), (1370388709,), (1370388713,), (1370388716,), (1370388719,), (1370388736,), (1370388739,), (1370388747,), (1370388748,), (1370388831,), (1370388836,), (1370388838,), (1370388841,), (1370388845,), (1370388846,), (1370388859,), (1370388860,), (1370388865,), (1370388866,), (1370388868,), (1370388869,), (1370388871,), (1370388872,), (1370388873,), (1370388874,), (1370388875,), (1370388876,), (1370388893,), (1370388901,), (1370388904,), (1370388906,), (1370388907,), (1370388916,), (1370388944,), (1370388981,), (1370388990,), (1370388992,), (1370389017,), (1370389024,), (1370389087,), (1370389088,), (1370389094,), (1370389100,), (1370389153,), (1370389203,), (1370389903,), (1370389980,), (1370390073,), (1370390158,), (1370390226,), (1370390296,), (1370391196,), (1370391312,), (1370391346,), (1370391420,), (1370391438,), (1370391483,), (1370391502,), (1370391545,), (1370391570,), (1370391683,), (1370391727,), (1370391916,), (1370391970,), (1370392014,), (1370392060,), (1370392085,), (1370392094,), (1370392137,), (1370392147,), (1370392152,), (1370392153,), (1370392189,), (1370392224,), (1370392323,), (1370392341,), (1370392377,), (1370392386,), (1370392402,), (1370392428,), (1370392442,), (1370392443,), (1370392447,), (1370392449,), (1370392464,), (1370392467,), (1370392481,), (1370392487,), (1370392492,), (1370392496,), (1370392501,), (1370392521,), (1370392558,), (1370392593,), (1370392627,), (1370392702,), (1370392792,), (1370392837,), (1370392856,), (1370392917,), (1370392967,), (1370392989,), (1370393012,), (1370393111,), (1370393147,), (1370393182,), (1370393267,), (1370393352,), (1370393425,), (1370393628,), (1370393668,), (1370393680,), (1370393682,), (1370393720,), (1370393807,), (1370393967,), (1370394037,), (1370394060,), (1370394136,), (1370394203,), (1370394273,), (1370394408,), (1370394420,), (1370394497,), (1370394560,), (1370394582,), (1370394594,), (1370394638,), (1370394645,), (1370394672,), (1370394682,), (1370394685,), (1370394715,), (1370395158,), (1370395210,), (1370395288,), (1370395321,), (1370395324,), (1370395330,), (1370395493,), (1370395532,), (1370395547,), (1370395607,), (1370395690,), (1370395703,), (1370395803,), (1370395810,), (1370395848,), (1370395872,), (1370395901,), (1370395937,), (1370396020,), (1370396032,), (1370396070,), (1370396096,), (1370396097,), (1370396098,), (1370396103,), (1370396107,), (1370396111,), (1370396113,), (1370396121,), (1370396155,), (1370396580,), (1370396617,), (1370396638,), (1370396652,), (1370396677,), (1370396747,), (1370396911,), (1370396920,), (1370396922,), (1370396923,), (1370396927,), (1370396950,), (1370397015,), (1370397047,), (1370397080,), (1370397111,), (1370397130,), (1370397142,), (1370397421,), (1370397424,), (1370397432,), (1370397512,), (1370397563,), (1370397599,), (1370397686,), (1370397689,), (1370397695,), (1370397697,), (1370397703,), (1370397720,), (1370397787,), (1370397788,), (1370397834,), (1370397843,), (1370397881,), (1370397890,), (1370397918,), (1370397923,), (1370397945,), (1370397949,), (1370397962,), (1370397963,), (1370397993,), (1370397999,), (1370398001,), (1370398028,), (1370398057,), (1370398092,), (1370398184,), (1370398196,), (1370398197,), (1370398233,), (1370398247,), (1370398255,), (1370398536,), (1370398570,), (1370398601,), (1370398663,), (1370398721,), (1370398785,), (1370399101,), (1370399161,), (1370399203,), (1370399258,), (1370399299,), (1370399335,), (1370399488,), (1370399525,), (1370399551,), (1370399554,), (1370399570,), (1370399581,), (1370399760,), (1370399783,), (1370399786,), (1370399792,), (1370399794,), (1370399798,), (1370399822,), (1370399868,), (1370399902,), (1370399937,), (1370399969,), (1370399994,), (1370400004,), (1370400008,), (1370400024,), (1370400048,), (1370400054,), (1370400062,), (1370400107,), (1370400117,), (1370400119,), (1370400123,), (1370400132,), (1370400140,), (1370400180,), (1370400183,), (1370400187,), (1370400209,), (1370400224,), (1370400229,), (1370400238,), (1370400242,), (1370400296,), (1370400297,), (1370400298,), (1370400307,), (1370400341,), (1370400351,), (1370400362,), (1370400385,), (1370400417,), (1370400432,), (1370400543,), (1370400547,), (1370400553,), (1370400559,), (1370400585,), (1370400601,), (1370400794,), (1370400863,), (1370400952,), (1370401008,), (1370401065,), (1370401104,), (1370401733,), (1370401758,), (1370401794,), (1370401808,), (1370401816,), (1370401817,), (1370401910,), (1370401942,), (1370401979,), (1370402016,), (1370402036,), (1370402064,), (1370402086,), (1370402087,), (1370402121,), (1370402171,), (1370402209,), (1370402231,), (1370402855,), (1370402890,), (1370402947,), (1370403012,), (1370403114,), (1370403214,), (1370403512,), (1370403555,), (1370403604,), (1370403648,), (1370403702,), (1370403782,), (1370403890,), (1370403910,), (1370403950,), (1370404007,), (1370404028,), (1370404040,), (1370404531,), (1370404556,), (1370404665,), (1370404727,), (1370404743,), (1370404760,), (1370404792,), (1370404799,), (1370404804,), (1370404807,), (1370404854,), (1370404916,), (1370405102,), (1370405104,), (1370405148,), (1370405150,), (1370405182,), (1370405187,), (1370405231,), (1370405234,), (1370405265,), (1370405273,), (1370405298,), (1370405304,), (1370405404,), (1370405407,), (1370405415,), (1370405420,), (1370405423,), (1370405458,), (1370405614,), (1370405669,), (1370405685,), (1370405740,), (1370405792,), (1370405839,), (1370406643,), (1370406690,), (1370406706,), (1370406764,), (1370406784,), (1370406866,), (1370406894,), (1370406966,), (1370407017,), (1370407121,), (1370407149,), (1370407226,), (1370407416,), (1370407471,), (1370407533,), (1370407601,), (1370407665,), (1370407755,), (1370407992,), (1370408070,), (1370408170,), (1370408240,), (1370408343,), (1370408413,), (1370408737,), (1370408738,), (1370408774,), (1370408776,), (1370408790,), (1370408791,), (1370408812,), (1370408813,), (1370408831,), (1370408833,), (1370408872,), (1370408874,), (1370408902,), (1370408904,), (1370408912,), (1370408913,), (1370408944,), (1370408946,), (1370408976,), (1370408980,), (1370409012,), (1370409014,), (1370409045,), (1370409049,), (1370409202,), (1370409303,), (1370409397,), (1370409476,), (1370409546,), (1370409609,), (1370409914,), (1370410017,), (1370410069,), (1370410117,), (1370410156,), (1370410194,), (1370410722,), (1370410763,), (1370410802,), (1370410862,), (1370410894,), (1370410972,), (1370410991,), (1370411046,), (1370411062,), (1370411110,), (1370411128,), (1370411177,), (1370411340,), (1370411375,), (1370411381,), (1370411383,), (1370411398,), (1370411414,), (1370411437,), (1370411438,), (1370411448,), (1370411472,), (1370411520,), (1370411554,), (1370412205,), (1370412304,), (1370412392,), (1370412479,), (1370412579,), (1370412693,), (1370388784,), (1370389055,), (1370389058,), (1370389062,), (1370389066,), (1370389068,), (1370389077,), (1370390550,), (1370390677,), (1370390723,), (1370390773,), (1370390903,), (1370391007,), (1370391627,), (1370392504,), (1370393435,), (1370393436,), (1370393437,), (1370393451,), (1370393495,), (1370393569,), (1370394843,), (1370394854,), (1370394917,), (1370394960,), (1370394962,), (1370394979,), (1370396357,), (1370396404,), (1370396431,), (1370396480,), (1370396496,), (1370396521,), (1370397200,), (1370397239,), (1370397274,), (1370397325,), (1370397395,), (1370397405,), (1370398317,), (1370398356,), (1370398372,), (1370398374,), (1370398390,), (1370398415,), (1370399615,), (1370399628,), (1370399631,), (1370399638,), (1370399672,), (1370399691,), (1370401312,), (1370401383,), (1370401487,), (1370401550,), (1370401604,), (1370401625,), (1370402376,), (1370402433,), (1370402441,), (1370402465,), (1370402535,), (1370402584,), (1370404179,), (1370404236,), (1370404339,), (1370404421,), (1370404488,), (1370404511,), (1370406056,), (1370406123,), (1370406169,), (1370406210,), (1370406294,), (1370406388,), (1370408541,), (1370408556,), (1370408577,), (1370408590,), (1370408607,), (1370408641,), (1370410315,), (1370410341,), (1370410400,), (1370410476,), (1370410515,), (1370410551,), (1370413890,), (1370414013,), (1370414149,), (1370414219,), (1370414271,), (1370414514,), (1370414608,), (1370414674,), (1370414741,), (1370414796,), (1370414829,), (1370415010,), (1370415071,), (1370415103,), (1370415158,), (1370415188,), (1370415230,), (1370415569,), (1370415572,), (1370415574,), (1370415601,), (1370415607,), (1370415610,), (1370415631,), (1370415643,), (1370415651,), (1370415676,), (1370415683,), (1370415685,), (1370415739,), (1370415827,), (1370415892,), (1370416013,), (1370416108,), (1370416203,), (1370416718,), (1370416729,), (1370416777,), (1370416833,), (1370416866,), (1370416901,), (1370417141,), (1370417144,), (1370417261,), (1370417269,), (1370417383,), (1370417399,), (1370417487,), (1370417499,), (1370417558,), (1370417566,), (1370417624,), (1370417630,), (1370418050,), (1370418124,), (1370418172,), (1370418219,), (1370418252,), (1370418283,), (1370418416,), (1370418450,), (1370418492,), (1370418559,), (1370418617,), (1370418651,), (1370418886,), (1370418889,), (1370418915,), (1370418945,), (1370418959,), (1370418968,), (1370419120,), (1370419204,), (1370419210,), (1370419225,), (1370419232,), (1370419240,), (1370419445,), (1370419551,), (1370419771,), (1370419902,), (1370419981,), (1370420074,), (1370420612,), (1370420642,), (1370420678,), (1370420746,), (1370420845,), (1370420925,), (1370421196,), (1370421238,), (1370421295,), (1370421344,), (1370421393,), (1370421471,), (1370421794,), (1370421899,), (1370421963,), (1370422000,), (1370422013,), (1370422021,), (1370422025,), (1370422056,), (1370422096,), (1370422099,), (1370422128,), (1370422159,), (1370422823,), (1370422833,), (1370422842,), (1370422844,), (1370422854,), (1370422855,), (1370422977,), (1370423006,), (1370423020,), (1370423022,), (1370423024,), (1370423025,), (1370423035,), (1370423039,), (1370423049,), (1370423078,), (1370423132,), (1370423166,), (1370423425,), (1370423500,), (1370423555,), (1370423650,), (1370423684,), (1370423764,), (1370424118,), (1370424241,), (1370424345,), (1370424409,), (1370424452,), (1370424494,), (1370424621,), (1370424653,), (1370424732,), (1370424794,), (1370424831,), (1370424869,), (1370425396,), (1370425398,), (1370425401,), (1370425403,), (1370425414,), (1370425422,), (1370425454,), (1370425480,), (1370425513,), (1370425525,), (1370425541,), (1370425543,), (1370425608,), (1370425650,), (1370425686,), (1370425733,), (1370425802,), (1370425919,), (1370426253,), (1370426298,), (1370426351,), (1370426411,), (1370426471,), (1370426553,), (1370426792,), (1370426826,), (1370426880,), (1370426930,), (1370426984,), (1370426993,), (1370427399,), (1370427409,), (1370427439,), (1370427452,), (1370427480,), (1370427510,), (1370427790,), (1370427794,), (1370427883,), (1370427884,), (1370427940,), (1370427944,), (1370427976,), (1370427980,), (1370427995,), (1370427996,), (1370428006,), (1370428011,), (1370428080,), (1370428090,), (1370428149,), (1370428230,), (1370428263,), (1370428267,), (1370428328,), (1370428339,), (1370428345,), (1370428356,), (1370428366,), (1370428370,), (1370428609,), (1370428612,), (1370428674,), (1370428675,), (1370428743,), (1370428746,), (1370428767,), (1370428768,), (1370428778,), (1370428779,), (1370428788,), (1370428789,), (1370428848,), (1370428886,), (1370428905,), (1370428911,), (1370428918,), (1370428948,), (1370428985,), (1370429030,), (1370429101,), (1370429203,), (1370429252,), (1370429272,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03072025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24573096]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] map_info['map_portfolio_photo'] : {24573096: [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848, 1370428789, 1370428788, 1370428779, 1370428778, 1370428768, 1370428767, 1370428746, 1370428743, 1370428675, 1370428674, 1370428612, 1370428609, 1370428370, 1370428366, 1370428356, 1370428345, 1370428339, 1370428328, 1370428267, 1370428263, 1370428230, 1370428149, 1370428090, 1370428080]} final : True mtd_id 4302 list_pids : [1370429272, 1370429252, 1370429203, 1370429101, 1370429030, 1370428985, 1370428948, 1370428918, 1370428911, 1370428905, 1370428886, 1370428848] Looping around the photos to save general results len do output : 1 /24573096Didn'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, '3233674') ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674') ('4302', None, None, None, None, None, None, None, '3233674') ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24573096', 'None', None, None, None, None, '3233674'), ('4302', '24573096', '1370429272', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429252', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429203', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429101', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370429030', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428985', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428948', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428918', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428911', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428905', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428886', None, None, None, None, None, '3233674'), ('4302', '24573096', '1370428848', None, None, None, None, None, '3233674')] time used for this insertion : 0.015410423278808594 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2709603309631348 time spend to save output : 0.01566147804260254 total time spend for step 5 : 2.2866218090057373 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 (3233674) 2.57user 2.09system 0:09.82elapsed 47%CPU (0avgtext+0avgdata 159728maxresident)k 5000inputs+7712outputs (68major+83662minor)pagefaults 0swaps