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 : 1802051 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 (3229745) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3229745) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523081 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3229745'] with mtr_portfolio_ids : ['24523081'] and first list_photo_ids : [] new path : /proc/1802051/ Name: python3 Umask: 0002 State: R (running) Tgid: 1802051 Ngid: 0 Pid: 1802051 PPid: 1802050 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1802051 NSpid: 1802051 NSpgid: 1801199 NSsid: 1801199 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98640 kB VmRSS: 98640 kB RssAnon: 59820 kB RssFile: 38820 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 81 nonvoluntary_ctxt_switches: 114 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1802051', 'Ngid': '0', 'Pid': '1802051', 'PPid': '1802050', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1802051', 'NSpid': '1802051', 'NSpgid': '1801199', 'NSsid': '1801199', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98640 kB', 'VmRSS': '98640 kB', 'RssAnon': '59820 kB', 'RssFile': '38820 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '81', 'nonvoluntary_ctxt_switches': '114'} ('datou_batch_current', '1802051', '1106868', '0', '1106868', '865620', '98640', b'', 'marlene', '3229745') 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 (24523081) 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 (3229745 ) ) 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 (24523081) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370077983, 'portfolio_id': 24523081}, {'photo_id': 1370077982, 'portfolio_id': 24523081}, {'photo_id': 1370077963, 'portfolio_id': 24523081}, {'photo_id': 1370077905, 'portfolio_id': 24523081}, {'photo_id': 1370077843, 'portfolio_id': 24523081}, {'photo_id': 1370077811, 'portfolio_id': 24523081}, {'photo_id': 1370077630, 'portfolio_id': 24523081}, {'photo_id': 1370077540, 'portfolio_id': 24523081}, {'photo_id': 1370077475, 'portfolio_id': 24523081}, {'photo_id': 1370077439, 'portfolio_id': 24523081}, {'photo_id': 1370077377, 'portfolio_id': 24523081}, {'photo_id': 1370077314, 'portfolio_id': 24523081}, {'photo_id': 1370077036, 'portfolio_id': 24523081}, {'photo_id': 1370077035, 'portfolio_id': 24523081}, {'photo_id': 1370077011, 'portfolio_id': 24523081}, {'photo_id': 1370076917, 'portfolio_id': 24523081}, {'photo_id': 1370076841, 'portfolio_id': 24523081}, {'photo_id': 1370076767, 'portfolio_id': 24523081}, {'photo_id': 1370076468, 'portfolio_id': 24523081}, {'photo_id': 1370076386, 'portfolio_id': 24523081}, {'photo_id': 1370076270, 'portfolio_id': 24523081}, {'photo_id': 1370076147, 'portfolio_id': 24523081}, {'photo_id': 1370076041, 'portfolio_id': 24523081}, {'photo_id': 1370075922, 'portfolio_id': 24523081}, {'photo_id': 1370075544, 'portfolio_id': 24523081}, {'photo_id': 1370075481, 'portfolio_id': 24523081}, {'photo_id': 1370075454, 'portfolio_id': 24523081}, {'photo_id': 1370075370, 'portfolio_id': 24523081}, {'photo_id': 1370075302, 'portfolio_id': 24523081}, {'photo_id': 1370075211, 'portfolio_id': 24523081}, {'photo_id': 1370075145, 'portfolio_id': 24523081}, {'photo_id': 1370075092, 'portfolio_id': 24523081}, {'photo_id': 1370075034, 'portfolio_id': 24523081}, {'photo_id': 1370074975, 'portfolio_id': 24523081}, {'photo_id': 1370074935, 'portfolio_id': 24523081}, {'photo_id': 1370074918, 'portfolio_id': 24523081}, {'photo_id': 1370074793, 'portfolio_id': 24523081}, {'photo_id': 1370074689, 'portfolio_id': 24523081}, {'photo_id': 1370074656, 'portfolio_id': 24523081}, {'photo_id': 1370074652, 'portfolio_id': 24523081}, {'photo_id': 1370074644, 'portfolio_id': 24523081}, {'photo_id': 1370074617, 'portfolio_id': 24523081}, {'photo_id': 1370074083, 'portfolio_id': 24523081}, {'photo_id': 1370073976, 'portfolio_id': 24523081}, {'photo_id': 1370073905, 'portfolio_id': 24523081}, {'photo_id': 1370073840, 'portfolio_id': 24523081}, {'photo_id': 1370073791, 'portfolio_id': 24523081}, {'photo_id': 1370073757, 'portfolio_id': 24523081}] map_portfolio_id_photo_id: {24523081: [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314, 1370077036, 1370077035, 1370077011, 1370076917, 1370076841, 1370076767, 1370076468, 1370076386, 1370076270, 1370076147, 1370076041, 1370075922, 1370075544, 1370075481, 1370075454, 1370075370, 1370075302, 1370075211, 1370075145, 1370075092, 1370075034, 1370074975, 1370074935, 1370074918, 1370074793, 1370074689, 1370074656, 1370074652, 1370074644, 1370074617, 1370074083, 1370073976, 1370073905, 1370073840, 1370073791, 1370073757]} ##### 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.014517545700073242 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jul 2 20:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24523081) 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 : 24523081 get user id for portfolio 24523081 get sub ptf for main ptf 24523081, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'flou', 'metal', 'kraft', 'plastique', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'environnement', 'papier', 'cartonnette'] 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`=24523081 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','flou','metal','kraft','plastique','mal_croppe','Carton_brun','Carton_gris','environnement','papier','cartonnette')) 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`=24523081 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','flou','metal','kraft','plastique','mal_croppe','Carton_brun','Carton_gris','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 24523081, 'sub_port_id': 24523103, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458214, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'autre_refus': {'main_port_id': 24523081, 'sub_port_id': 24523104, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458215, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'mal_croppe': {'main_port_id': 24523081, 'sub_port_id': 24523105, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458216, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'Carton_brun': {'main_port_id': 24523081, 'sub_port_id': 24523106, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458217, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'cartonnette': {'main_port_id': 24523081, 'sub_port_id': 24523107, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458218, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'kraft': {'main_port_id': 24523081, 'sub_port_id': 24523108, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458219, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'metal': {'main_port_id': 24523081, 'sub_port_id': 24523109, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458220, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'flou': {'main_port_id': 24523081, 'sub_port_id': 24523111, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458221, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'environnement': {'main_port_id': 24523081, 'sub_port_id': 24523112, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458222, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'Carton_gris': {'main_port_id': 24523081, 'sub_port_id': 24523113, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458223, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'papier': {'main_port_id': 24523081, 'sub_port_id': 24523114, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458224, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}, 'plastique': {'main_port_id': 24523081, 'sub_port_id': 24523115, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458225, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24523103 , 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=24523081 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 (24523103) result : ((1370077049,), (1370077050,), (1370077051,), (1370077488,), (1370077491,), (1370077494,), (1370077497,), (1370077500,), (1370077503,), (1370077506,), (1370077509,), (1370077512,), (1370077515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523104 , 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=24523081 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 (24523104) result : ((1370077052,), (1370077530,), (1370077533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523105 , 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=24523081 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 (24523105) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523106 , 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=24523081 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 (24523106) result : ((1370077643,), (1370077646,), (1370077649,), (1370077652,), (1370077655,), (1370077658,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523107 , 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=24523081 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 (24523107) result : ((1370077055,), (1370077056,), (1370077057,), (1370077618,), (1370077621,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523108 , 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=24523081 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 (24523108) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523109 , 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=24523081 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 (24523109) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523111 , 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=24523081 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 (24523111) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523112 , 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=24523081 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 (24523112) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523113 , 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=24523081 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 (24523113) result : ((1370077054,), (1370077576,), (1370077580,), (1370077584,), (1370077588,), (1370077592,), (1370077596,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523114 , 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=24523081 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 (24523114) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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 24523115 , 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=24523081 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 (24523115) result : ((1370077062,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24523081) result : ((1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) 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`=24523081 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','flou','metal','kraft','plastique','mal_croppe','Carton_brun','Carton_gris','environnement','papier','cartonnette')) 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`=24523081 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','flou','metal','kraft','plastique','mal_croppe','Carton_brun','Carton_gris','environnement','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 24523081, 'sub_port_id': 24523116, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458226, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'autre_refus': {'main_port_id': 24523081, 'sub_port_id': 24523117, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458227, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'mal_croppe': {'main_port_id': 24523081, 'sub_port_id': 24523118, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458228, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'Carton_brun': {'main_port_id': 24523081, 'sub_port_id': 24523119, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458229, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'cartonnette': {'main_port_id': 24523081, 'sub_port_id': 24523120, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458230, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'kraft': {'main_port_id': 24523081, 'sub_port_id': 24523121, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458231, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'metal': {'main_port_id': 24523081, 'sub_port_id': 24523123, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458232, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'flou': {'main_port_id': 24523081, 'sub_port_id': 24523124, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458233, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'environnement': {'main_port_id': 24523081, 'sub_port_id': 24523125, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458234, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'Carton_gris': {'main_port_id': 24523081, 'sub_port_id': 24523126, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458235, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'papier': {'main_port_id': 24523081, 'sub_port_id': 24523127, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458236, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}, 'plastique': {'main_port_id': 24523081, 'sub_port_id': 24523128, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16458237, 'last_updated_at': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 2, 20, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 2, 20, 33, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523116,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523103 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523117,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523104 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523105 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24523128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24523115 lien utilise dans velours : https://www.fotonower.com/velours/24523116,24523117,24523118,24523119,24523120,24523121,24523123,24523124,24523125,24523126,24523127,24523128?tags=Teint_Dans_La_Masse,autre_refus,mal_croppe,Carton_brun,cartonnette,kraft,metal,flou,environnement,Carton_gris,papier,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24523081]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] map_info['map_portfolio_photo'] : {24523081: [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314, 1370077036, 1370077035, 1370077011, 1370076917, 1370076841, 1370076767, 1370076468, 1370076386, 1370076270, 1370076147, 1370076041, 1370075922, 1370075544, 1370075481, 1370075454, 1370075370, 1370075302, 1370075211, 1370075145, 1370075092, 1370075034, 1370074975, 1370074935, 1370074918, 1370074793, 1370074689, 1370074656, 1370074652, 1370074644, 1370074617, 1370074083, 1370073976, 1370073905, 1370073840, 1370073791, 1370073757]} final : False mtd_id 4302 list_pids : [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] Looping around the photos to save general results len do output : 1 /24523081. 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, '3229745') ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745') 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, '24523081', "{'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115}", None, None, None, None, '3229745'), ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745')] time used for this insertion : 0.014504671096801758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6469058990478516 time spend to save output : 0.014786958694458008 total time spend for step 1 : 1.6616928577423096 step2:final Wed Jul 2 20:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (24523081) 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 24523081 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370074083,1370073976,1370073905,1370073840,1370073791,1370073757,1370074793,1370074689,1370074656,1370074652,1370074644,1370074617,1370075544,1370075481,1370075454,1370075370,1370075211,1370075302,1370075092,1370075145,1370075034,1370074975,1370074935,1370074918,1370076468,1370076386,1370076270,1370076147,1370076041,1370075922,1370077036,1370077035,1370077011,1370076917,1370076841,1370076767,1370077630,1370077540,1370077475,1370077439,1370077377,1370077314,1370077983,1370077982,1370077963,1370077905,1370077843,1370077811); 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([24523081]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} new output for save of step final : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] map_info['map_portfolio_photo'] : {24523081: [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314, 1370077036, 1370077035, 1370077011, 1370076917, 1370076841, 1370076767, 1370076468, 1370076386, 1370076270, 1370076147, 1370076041, 1370075922, 1370075544, 1370075481, 1370075454, 1370075370, 1370075302, 1370075211, 1370075145, 1370075092, 1370075034, 1370074975, 1370074935, 1370074918, 1370074793, 1370074689, 1370074656, 1370074652, 1370074644, 1370074617, 1370074083, 1370073976, 1370073905, 1370073840, 1370073791, 1370073757]} final : False mtd_id 4302 list_pids : [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] Looping around the photos to save general results len do output : 12 /1370077983.Didn't retrieve data . /1370077982.Didn't retrieve data . /1370077963.Didn't retrieve data . /1370077905.Didn't retrieve data . /1370077843.Didn't retrieve data . /1370077811.Didn't retrieve data . /1370077630.Didn't retrieve data . /1370077540.Didn't retrieve data . /1370077475.Didn't retrieve data . /1370077439.Didn't retrieve data . /1370077377.Didn't retrieve data . /1370077314.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, '3229745') ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745') 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', '24523081', '1370077983', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077982', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077963', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077905', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077843', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077811', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077630', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077540', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077475', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077439', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077377', '0.03151401584928848', None, None, None, None, '3229745'), ('4302', '24523081', '1370077314', '0.03151401584928848', None, None, None, None, '3229745')] time used for this insertion : 0.017168045043945312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06577444076538086 time spend to save output : 0.017760276794433594 total time spend for step 2 : 0.08353471755981445 step3:velours_tree Wed Jul 2 20:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24523081: [{'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115}]} input_args_next_step : {24523081: ()} output_args : {24523081: [{'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115}]} args : 24523081 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 : ({'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24523081) 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([24523081]) 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.3609902858734131 time spend to save output : 8.344650268554688e-05 total time spend for step 3 : 0.36107373237609863 step4:send_mail_cod Wed Jul 2 20:39:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} input_args_next_step : {1370077983: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077983 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077982 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077963 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077905 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077843 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077811 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077630 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077540 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077475 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077439 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077377 depend.output_id : 0 input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ()} output_args : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',)} args : 1370077314 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 : {24523081: [{'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115}]} input_args_next_step : {1370077983: ('0.03151401584928848',), 1370077982: ('0.03151401584928848',), 1370077963: ('0.03151401584928848',), 1370077905: ('0.03151401584928848',), 1370077843: ('0.03151401584928848',), 1370077811: ('0.03151401584928848',), 1370077630: ('0.03151401584928848',), 1370077540: ('0.03151401584928848',), 1370077475: ('0.03151401584928848',), 1370077439: ('0.03151401584928848',), 1370077377: ('0.03151401584928848',), 1370077314: ('0.03151401584928848',), 24523081: ()} output_args : {24523081: [{'Teint_Dans_La_Masse': 24523103, 'autre_refus': 24523104, 'mal_croppe': 24523105, 'Carton_brun': 24523106, 'cartonnette': 24523107, 'kraft': 24523108, 'metal': 24523109, 'flou': 24523111, 'environnement': 24523112, 'Carton_gris': 24523113, 'papier': 24523114, 'plastique': 24523115}]} args : 24523081 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.03151401584928848',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24523081) 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 (1370077983,1370077982,1370077963,1370077905,1370077843,1370077811,1370077630,1370077540,1370077475,1370077439,1370077377,1370077314) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370077314 begin to download photo : 1370077475 begin to download photo : 1370077811 begin to download photo : 1370077963 download finish for photo 1370077314 begin to download photo : 1370077377 download finish for photo 1370077811 begin to download photo : 1370077843 download finish for photo 1370077475 begin to download photo : 1370077540 download finish for photo 1370077963 begin to download photo : 1370077982 download finish for photo 1370077377 begin to download photo : 1370077439 download finish for photo 1370077843 begin to download photo : 1370077905 download finish for photo 1370077540 begin to download photo : 1370077630 download finish for photo 1370077439 download finish for photo 1370077982 begin to download photo : 1370077983 download finish for photo 1370077630 download finish for photo 1370077905 download finish for photo 1370077983 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24523081_02-07-2025_20_39_00.pdf 24523104 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=24523104 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077052: '1751481326_3854180_1370073840_48b5cfabd10181c02544f741ff5870ec_rle_crop_3868670027_0.png', 1370077530: '1751481368_1418306_1370075454_5ad081c85e26eb037c8bbf1a66c3d509_rle_crop_3868671701_0.png', 1370077533: '1751481368_1418306_1370075370_f8c322f054a34b68b3a7e25542483c50_rle_crop_3868671780_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/014561cc206ce21583ab1ac68309b218_67652595.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f3656002ca2df00535f8910a60c5ad06_89393776.png change filename to text .imagette245231041751481540/ imagette245231041751481540/1751481368_1418306_1370075454_5ad081c85e26eb037c8bbf1a66c3d509_rle_crop_3868671701_0.png.png imagette245231041751481540/1751481368_1418306_1370075370_f8c322f054a34b68b3a7e25542483c50_rle_crop_3868671780_0.png.png imagette245231041751481540/1751481326_3854180_1370073840_48b5cfabd10181c02544f741ff5870ec_rle_crop_3868670027_0.png.png imagette245231051751481541/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f3656002ca2df00535f8910a60c5ad06_12048833.png imagette245231041751481540 24523105 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=24523105 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245231051751481541 24523107 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=24523107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077055: '1751481326_3854180_1370073905_f604d3b4e3f8862e619a78a0080cdbec_rle_crop_3868670020_0.png', 1370077056: '1751481326_3854180_1370073905_f604d3b4e3f8862e619a78a0080cdbec_rle_crop_3868670015_0.png', 1370077057: '1751481326_3854180_1370073791_cf301b8b1cbda90c2f6b8875a35697c3_rle_crop_3868670060_0.png', 1370077618: '1751481368_1418306_1370074935_dfe2899509c29222871f75cc54889021_rle_crop_3868671861_0.png', 1370077621: '1751481368_1418306_1370074918_6f6424e9e5d9e3599b12ea9d76866f89_rle_crop_3868671873_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/3e905cbdaa44d4ea21e273181b79fc81_87261024.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/b5b6b4c5331bd8a16d16c17285abbb2e_17727284.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/bf635c7eed5386ed4fd7413163677034_93245040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/838cca4404f79f46a7231a550c1bce5f_25528163.png change filename to text .imagette245231071751481541/ imagette245231071751481541/1751481368_1418306_1370074935_dfe2899509c29222871f75cc54889021_rle_crop_3868671861_0.png.png imagette245231071751481541/1751481326_3854180_1370073791_cf301b8b1cbda90c2f6b8875a35697c3_rle_crop_3868670060_0.png.png imagette245231071751481541/1751481368_1418306_1370074918_6f6424e9e5d9e3599b12ea9d76866f89_rle_crop_3868671873_0.png.png imagette245231071751481541/1751481326_3854180_1370073905_f604d3b4e3f8862e619a78a0080cdbec_rle_crop_3868670015_0.png.png imagette245231071751481541/1751481326_3854180_1370073905_f604d3b4e3f8862e619a78a0080cdbec_rle_crop_3868670020_0.png.png imagette245231081751481541/ imagette245231091751481541/ imagette245231111751481541/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/838cca4404f79f46a7231a550c1bce5f_88621734.png imagette245231071751481541 24523108 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=24523108 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245231081751481541 24523109 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=24523109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245231091751481541 24523111 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=24523111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245231111751481541 24523115 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=24523115 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077062: '1751481326_3854180_1370073791_cf301b8b1cbda90c2f6b8875a35697c3_rle_crop_3868670057_0.png'} change filename to text .imagette245231151751481541/ imagette245231151751481541/1751481326_3854180_1370073791_cf301b8b1cbda90c2f6b8875a35697c3_rle_crop_3868670057_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/a937f0e7286a0bab2bef1ff73822e474_221356.png imagette245231151751481541 24523103 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=24523103 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077049: '1751481326_3854180_1370074083_c390239fa881fa1681b2a78f81e39463_rle_crop_3868669896_0.png', 1370077050: '1751481326_3854180_1370073976_02185f37937f37eec7d843f63c55e04b_rle_crop_3868669923_0.png', 1370077051: '1751481326_3854180_1370073976_02185f37937f37eec7d843f63c55e04b_rle_crop_3868669925_0.png', 1370077488: '1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671795_0.png', 1370077491: '1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671792_0.png', 1370077494: '1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671807_0.png', 1370077497: '1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671804_0.png', 1370077500: '1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671818_0.png', 1370077503: '1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671815_0.png', 1370077506: '1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671830_0.png', 1370077509: '1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671827_0.png', 1370077512: '1751481368_1418306_1370075034_53d597fd8cbac2be284f9cbf179f1520_rle_crop_3868671841_0.png', 1370077515: '1751481368_1418306_1370074975_6b8b6a3e08723c3e3df3fbbbb0425e0e_rle_crop_3868671853_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/ce62d6ad72c0a61d5473576581c0c6f0_57212400.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/7988f8da54c522e59430dde2c3d0c4b5_21220718.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f29c43669b59193e40cd68bcfdd1b2b1_65507566.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/beddbc4404c493f757c7c369d3a72b2b_81655945.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/ecb3d9f5b35acb907a456f496781951d_63700622.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/beddbc4404c493f757c7c369d3a72b2b_720638.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/ecb3d9f5b35acb907a456f496781951d_57026216.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/7e02b8d7c8d80fa42b123a705b01393a_95166310.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/38d97ee8080357b135399e6bd2e82c38_37537160.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/7e02b8d7c8d80fa42b123a705b01393a_90478531.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/38d97ee8080357b135399e6bd2e82c38_58556353.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/c9a40a9b0ef6d2353cf643e0f68f4f01_27673666.png change filename to text .imagette245231031751481541/ imagette245231031751481541/1751481368_1418306_1370075034_53d597fd8cbac2be284f9cbf179f1520_rle_crop_3868671841_0.png.png imagette245231031751481541/1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671830_0.png.png imagette245231031751481541/1751481368_1418306_1370074975_6b8b6a3e08723c3e3df3fbbbb0425e0e_rle_crop_3868671853_0.png.png imagette245231031751481541/1751481326_3854180_1370074083_c390239fa881fa1681b2a78f81e39463_rle_crop_3868669896_0.png.png imagette245231031751481541/1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671818_0.png.png imagette245231031751481541/1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671827_0.png.png imagette245231031751481541/1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671815_0.png.png imagette245231031751481541/1751481326_3854180_1370073976_02185f37937f37eec7d843f63c55e04b_rle_crop_3868669923_0.png.png imagette245231031751481541/1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671807_0.png.png imagette245231031751481541/1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671795_0.png.png imagette245231031751481541/1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671792_0.png.png imagette245231031751481541/1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671804_0.png.png imagette245231031751481541/1751481326_3854180_1370073976_02185f37937f37eec7d843f63c55e04b_rle_crop_3868669925_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/c9a40a9b0ef6d2353cf643e0f68f4f01_52319926.png imagette245231031751481541 24523106 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=24523106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077643: '1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671678_0.png', 1370077646: '1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671690_0.png', 1370077649: '1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671793_0.png', 1370077652: '1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671805_0.png', 1370077655: '1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671816_0.png', 1370077658: '1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671828_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f11d054397c4bc6f0bb79ade658203c7_11972248.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f11d054397c4bc6f0bb79ade658203c7_74650473.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/b56dfe4257149e3d273a42a525bc7fc0_98546347.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/b56dfe4257149e3d273a42a525bc7fc0_84812602.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f60b170736fe2dff7e3fa2578a0d6005_47407412.png change filename to text .imagette245231061751481542/ imagette245231061751481542/1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671690_0.png.png imagette245231061751481542/1751481368_1418306_1370075302_582661f6a79e0c526ba554a70546cfd6_rle_crop_3868671793_0.png.png imagette245231061751481542/1751481368_1418306_1370075211_1b3e4457777d9120e3098fe4b82ae02b_rle_crop_3868671805_0.png.png imagette245231061751481542/1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671678_0.png.png imagette245231061751481542/1751481368_1418306_1370075092_96a09d80baf50789782293c033dd2bcf_rle_crop_3868671828_0.png.png imagette245231061751481542/1751481368_1418306_1370075145_f87e439bd155bab6462eeb3b0bdf3917_rle_crop_3868671816_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f60b170736fe2dff7e3fa2578a0d6005_82731552.png imagette245231061751481542 24523113 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=24523113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370077054: '1751481326_3854180_1370073840_48b5cfabd10181c02544f741ff5870ec_rle_crop_3868670028_0.png', 1370077576: '1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671677_0.png', 1370077580: '1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671679_0.png', 1370077584: '1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671689_0.png', 1370077588: '1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671691_0.png', 1370077592: '1751481368_1418306_1370075454_5ad081c85e26eb037c8bbf1a66c3d509_rle_crop_3868671703_0.png', 1370077596: '1751481368_1418306_1370075370_f8c322f054a34b68b3a7e25542483c50_rle_crop_3868671782_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/db69becc8e524b13a34f5fb4016a66a6_20191585.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/cad204d477fee68714cad93289503d9f_41680402.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/400e317bff29b9aad19af06efe0185ca_33939687.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/cad204d477fee68714cad93289503d9f_32121940.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/400e317bff29b9aad19af06efe0185ca_11942968.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/e60a71a564af45768354ec46a227e722_54347188.png change filename to text .imagette245231131751481542/ imagette245231131751481542/1751481368_1418306_1370075454_5ad081c85e26eb037c8bbf1a66c3d509_rle_crop_3868671703_0.png.png imagette245231131751481542/1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671691_0.png.png imagette245231131751481542/1751481368_1418306_1370075481_37b5f5cd974a7049195412192bc64ee8_rle_crop_3868671689_0.png.png imagette245231131751481542/1751481368_1418306_1370075370_f8c322f054a34b68b3a7e25542483c50_rle_crop_3868671782_0.png.png imagette245231131751481542/1751481326_3854180_1370073840_48b5cfabd10181c02544f741ff5870ec_rle_crop_3868670028_0.png.png imagette245231131751481542/1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671677_0.png.png imagette245231131751481542/1751481368_1418306_1370075544_727ad7491811cf0065ad87de0d3c718a_rle_crop_3868671679_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/e60a71a564af45768354ec46a227e722_38990154.png imagette245231131751481542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24523081 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24523116,24523117,24523118,24523119,24523120,24523121,24523123,24523124,24523125,24523126,24523127,24523128?tags=Teint_Dans_La_Masse,autre_refus,mal_croppe,Carton_brun,cartonnette,kraft,metal,flou,environnement,Carton_gris,papier,plastique your option no_mail is active, we will not send the real mail to your client args[1370077983] : ('0.03151401584928848',) no score found for photo 1370077983 We are sending mail with results at report@fotonower.com args[1370077982] : ('0.03151401584928848',) no score found for photo 1370077982 We are sending mail with results at report@fotonower.com args[1370077963] : ('0.03151401584928848',) no score found for photo 1370077963 We are sending mail with results at report@fotonower.com args[1370077905] : ('0.03151401584928848',) no score found for photo 1370077905 We are sending mail with results at report@fotonower.com args[1370077843] : ('0.03151401584928848',) no score found for photo 1370077843 We are sending mail with results at report@fotonower.com args[1370077811] : ('0.03151401584928848',) no score found for photo 1370077811 We are sending mail with results at report@fotonower.com args[1370077630] : ('0.03151401584928848',) no score found for photo 1370077630 We are sending mail with results at report@fotonower.com args[1370077540] : ('0.03151401584928848',) no score found for photo 1370077540 We are sending mail with results at report@fotonower.com args[1370077475] : ('0.03151401584928848',) no score found for photo 1370077475 We are sending mail with results at report@fotonower.com args[1370077439] : ('0.03151401584928848',) no score found for photo 1370077439 We are sending mail with results at report@fotonower.com args[1370077377] : ('0.03151401584928848',) no score found for photo 1370077377 We are sending mail with results at report@fotonower.com args[1370077314] : ('0.03151401584928848',) no score found for photo 1370077314 We are sending mail with results at report@fotonower.com refus_total : 0.03151401584928848 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=24523081 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_P24523081_02-07-2025_20_39_00.pdf results_Auto_P24523081_02-07-2025_20_39_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24523081_02-07-2025_20_39_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24523081','results_Auto_P24523081_02-07-2025_20_39_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24523081_02-07-2025_20_39_00.pdf','pdf','','0.15','0.03151401584928848') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24523081]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] map_info['map_portfolio_photo'] : {24523081: [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314, 1370077036, 1370077035, 1370077011, 1370076917, 1370076841, 1370076767, 1370076468, 1370076386, 1370076270, 1370076147, 1370076041, 1370075922, 1370075544, 1370075481, 1370075454, 1370075370, 1370075302, 1370075211, 1370075145, 1370075092, 1370075034, 1370074975, 1370074935, 1370074918, 1370074793, 1370074689, 1370074656, 1370074652, 1370074644, 1370074617, 1370074083, 1370073976, 1370073905, 1370073840, 1370073791, 1370073757]} final : False mtd_id 4302 list_pids : [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] 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, '3229745') ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745') 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', '24523081', '1370077983', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745')] time used for this insertion : 0.014406919479370117 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9527220726013184 time spend to save output : 0.014650344848632812 total time spend for step 4 : 3.967372417449951 step5:split_time_score Wed Jul 2 20:39:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24523081'] 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 : [('24523081',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24523081) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370077314: {'path': 'temp/1751481540_1802051_1370077314_a80b923bb5b4ae21530df18d30386e87.jpg', 'extension': 'jpg'}, 1370077377: {'path': 'temp/1751481540_1802051_1370077377_7f926f33b8bfea03de0b7262f86485ff.jpg', 'extension': 'jpg'}, 1370077439: {'path': 'temp/1751481540_1802051_1370077439_c0ffc2febdb7eb1896cb56eed1ea23b7.jpg', 'extension': 'jpg'}, 1370077475: {'path': 'temp/1751481540_1802051_1370077475_153b3ed1501ad2221d27ed5ef3f6208f.jpg', 'extension': 'jpg'}, 1370077540: {'path': 'temp/1751481540_1802051_1370077540_57f057237ea233d2d48e4711ea18bab0.jpg', 'extension': 'jpg'}, 1370077630: {'path': 'temp/1751481540_1802051_1370077630_788ab4b501c00e90d430b6aa08568a12.jpg', 'extension': 'jpg'}, 1370077811: {'path': 'temp/1751481540_1802051_1370077811_7f9a7cbef2a15c89ef57cc4da6c1867e.jpg', 'extension': 'jpg'}, 1370077843: {'path': 'temp/1751481540_1802051_1370077843_004a5697709bce81b89077c7748d5b3c.jpg', 'extension': 'jpg'}, 1370077905: {'path': 'temp/1751481540_1802051_1370077905_dfedcbe848a61a58ce628d48253d3407.jpg', 'extension': 'jpg'}, 1370077963: {'path': 'temp/1751481540_1802051_1370077963_bb791375d4d6f48685993fe8efd0c161.jpg', 'extension': 'jpg'}, 1370077982: {'path': 'temp/1751481540_1802051_1370077982_49deefaaed50802ec725d31a43d14602.jpg', 'extension': 'jpg'}, 1370077983: {'path': 'temp/1751481540_1802051_1370077983_2d220e1b6460056d278ac6c5fe73373e.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 = 24523081; (('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 = 24523081 group by h (('20', 48),) 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=24523081 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 (24523081) 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 (24523081) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02072025 24523081 Nombre de photos uploadées : 48 / 23040 (0%) 02072025 24523081 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 02072025 24523081 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1370074083, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/c390239fa881fa1681b2a78f81e39463.jpg', 'username': None, 'uploaded_at': 1751481073, 'text': 'image_02072025_20_30_04_10142.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370073976, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/02185f37937f37eec7d843f63c55e04b.jpg', 'username': None, 'uploaded_at': 1751481073, 'text': 'image_02072025_20_30_14_10137.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370073905, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/f604d3b4e3f8862e619a78a0080cdbec.jpg', 'username': None, 'uploaded_at': 1751481073, 'text': 'image_02072025_20_30_24_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1370073840, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/2/48b5cfabd10181c02544f741ff5870ec.jpg', 'username': None, 'uploaded_at': 1751481073, 'text': 'image_02072025_20_30_34_10135.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003011941909790039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24523081, '2025-07-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1944490,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024773359298706055 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= 1944490 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24521036, 'dashboard_result_id': 12070651, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24521038, 'dashboard_result_id': 12070652, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24521056, 'dashboard_result_id': 12070653, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24511563, 'dashboard_result_id': 12070654, '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_P24511563_02-07-2025_18_01_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24511596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24511597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24511598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24511599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24511600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24511601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24511602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24511603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24511604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24511605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24511606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24511607, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24508622, 'dashboard_result_id': 12070655, '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_P24508622_02-07-2025_18_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508665, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24506011, 'dashboard_result_id': 12070656, '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_P24506011_02-07-2025_17_00_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24506106, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24503345, 'dashboard_result_id': 12070657, '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_P24503345_02-07-2025_16_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503435, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24503346, 'dashboard_result_id': 12070658, '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_P24503346_02-07-2025_16_44_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503368, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24501065, 'dashboard_result_id': 12070659, '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_P24501065_02-07-2025_16_44_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24501143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501147, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24498586, 'dashboard_result_id': 12070660, '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_P24498586_02-07-2025_16_45_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24498607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498618, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24495217, 'dashboard_result_id': 12070661, '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_P24495217_02-07-2025_16_46_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24495310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24495311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24495312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24495313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24495314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24495315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24495316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24495318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24495319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24495320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24495321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24495322, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24493818, 'dashboard_result_id': 12070662, '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_P24493818_02-07-2025_11_24_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24493819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24493821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24493822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24493824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24493825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24493826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24493827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24493828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24493829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24493830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24493831, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24494102, 'dashboard_result_id': 12070663, '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_P24494102_02-07-2025_11_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494119, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24494234, 'dashboard_result_id': 12070664, '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_P24494234_02-07-2025_11_17_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494260, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24494774, 'dashboard_result_id': 12070665, '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_P24494774_02-07-2025_11_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494793, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24495450, 'dashboard_result_id': 12070666, '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_P24495450_02-07-2025_11_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24495514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24495515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24495516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24495517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24495518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24495519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24495520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24495521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24495522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24495523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24495524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24495525, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24496182, 'dashboard_result_id': 12070667, '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_P24496182_02-07-2025_12_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24496188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496199, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24496579, 'dashboard_result_id': 12070668, '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_P24496579_02-07-2025_12_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24496679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496681, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24497467, 'dashboard_result_id': 12070669, '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_P24497467_02-07-2025_12_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497506, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24497619, 'dashboard_result_id': 12070670, '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_P24497619_02-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497665, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24498295, 'dashboard_result_id': 12070671, '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_P24498295_02-07-2025_13_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498336, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24498665, 'dashboard_result_id': 12070672, '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_P24498665_02-07-2025_13_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498728, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24499603, 'dashboard_result_id': 12070673, '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_P24499603_02-07-2025_13_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24499623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24499624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24499625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24499626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24499627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24499628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24499629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24499630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24499631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24499632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24499633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24499634, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24500021, 'dashboard_result_id': 12070674, '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_P24500021_02-07-2025_13_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500067, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24500803, 'dashboard_result_id': 12070675, '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_P24500803_02-07-2025_14_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500822, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24501313, 'dashboard_result_id': 12070676, '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_P24501313_02-07-2025_14_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24501318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501329, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24501893, 'dashboard_result_id': 12070677, '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_P24501893_02-07-2025_14_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24501922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501926, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24502277, 'dashboard_result_id': 12070678, '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_P24502277_02-07-2025_14_48_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24502285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24502286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24502287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24502288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24502289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24502290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24502291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24502292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24502293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24502294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24502295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24502296, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24503151, 'dashboard_result_id': 12070679, '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_P24503151_02-07-2025_15_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24503181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503192, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24503493, 'dashboard_result_id': 12070680, '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_P24503493_02-07-2025_15_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503538, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24504530, 'dashboard_result_id': 12070681, '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_P24504530_02-07-2025_15_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504571, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24504887, 'dashboard_result_id': 12070682, '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_P24504887_02-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504927, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24505558, 'dashboard_result_id': 12070683, '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_P24505558_02-07-2025_16_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24505564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24505565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24505566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24505567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24505568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24505569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24505570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24505571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24505572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24505573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24505574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24505575, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24506120, 'dashboard_result_id': 12070684, '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_P24506120_02-07-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24506258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506267, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24506947, 'dashboard_result_id': 12070685, '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_P24506947_02-07-2025_16_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24506954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506965, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24507576, 'dashboard_result_id': 12070686, '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_P24507576_02-07-2025_16_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24507594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24507595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24507596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24507598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24507599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24507600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24507601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24507602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24507603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24507604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24507605, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24508303, 'dashboard_result_id': 12070687, '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_P24508303_02-07-2025_17_03_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508351, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24508782, 'dashboard_result_id': 12070688, '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_P24508782_02-07-2025_17_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508798, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24509402, 'dashboard_result_id': 12070689, '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_P24509402_02-07-2025_17_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24509420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24509422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24509424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24509425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24509427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24509428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24509429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24509430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24509432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24509433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24509434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24509436, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24510011, 'dashboard_result_id': 12070690, '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_P24510011_02-07-2025_17_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510155, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24510841, 'dashboard_result_id': 12070691, '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_P24510841_02-07-2025_18_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510918, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24511760, 'dashboard_result_id': 12070692, '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_P24511760_02-07-2025_18_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24511806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24511807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24511808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24511809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24511810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24511811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24511812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24511813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24511814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24511815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24511816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24511817, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24512566, 'dashboard_result_id': 12070693, '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_P24512566_02-07-2025_18_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24512598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24512599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24512601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24512602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24512603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24512605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24512606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24512607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24512608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24512609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24512610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24512611, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24513571, 'dashboard_result_id': 12070694, '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_P24513571_02-07-2025_18_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24513693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24513694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24513695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24513696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24513697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24513698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24513699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24513700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24513701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24513702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24513704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24513705, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24515103, 'dashboard_result_id': 12070695, '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_P24515103_02-07-2025_19_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24515138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24515140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24515141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24515142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24515144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24515145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24515146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24515148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24515149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24515150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24515153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24515154, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24516386, 'dashboard_result_id': 12070696, '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_P24516386_02-07-2025_19_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24516541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24516542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24516543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24516544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24516545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24516546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24516547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24516548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24516549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24516550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24516551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24516552, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24518185, 'dashboard_result_id': 12070697, '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_P24518185_02-07-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24518214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24518215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24518216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24518217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24518218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24518219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24518220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24518221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24518222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24518223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24518224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24518225, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24519329, 'dashboard_result_id': 12070698, '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_P24519329_02-07-2025_19_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24519389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24519390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24519391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24519392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24519393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24519394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24519395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24519396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24519397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24519398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24519399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24519400, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24520329, 'dashboard_result_id': 12070699, '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_P24520329_02-07-2025_20_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24520362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24520363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24520364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24520366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24520367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24520368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24520370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24520371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24520372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24520374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24520375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24520376, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24521308, 'dashboard_result_id': 12070700, '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_P24521308_02-07-2025_20_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24521319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24521320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24521321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24521322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24521323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24521324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24521326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24521327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24521328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24521329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24521330, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24522287, 'dashboard_result_id': 12070701, '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_P24522287_02-07-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24522320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24522321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24522322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24522323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24522324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24522325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24522326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24522327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24522328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24522329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24522330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24522332, 'pht': 3726}}"}, {'dashboat_entry_day': 1944490, 'dashboard_run_id': 1954162, 'mtr_portfolio_id': 24523081, 'dashboard_result_id': 12070702, '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_P24523081_02-07-2025_20_37_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24523103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24523104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24523105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24523106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24523107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24523108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24523109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24523111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24523112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24523113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24523114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24523115, '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 = 24521036 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 = 24521036 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 = 24521036 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24521036 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 = 24521036 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 = 24521036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24521036_02-07-2025_20_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24521036 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_P24521036_02-07-2025_20_02_32.pdf'}" where mtr_portfolio_id = 24521036 and dashboard_run_id = 1954162 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 = 24521038 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 = 24521038 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 = 24521038 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24521038 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 = 24521038 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 = 24521038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24521038_02-07-2025_20_02_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24521038 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_P24521038_02-07-2025_20_02_03.pdf'}" where mtr_portfolio_id = 24521038 and dashboard_run_id = 1954162 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 = 24521056 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 = 24521056 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 = 24521056 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24521056 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 = 24521056 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 = 24521056 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24521056_02-07-2025_20_01_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24521056 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_P24521056_02-07-2025_20_01_34.pdf'}" where mtr_portfolio_id = 24521056 and dashboard_run_id = 1954162 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 = 24511563 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 = 24511563 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 = 24511563 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24511563 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 = 24511563 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 = 24511563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24511563_02-07-2025_20_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24511563 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_P24511563_02-07-2025_20_00_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24511596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24511597, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24511598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24511599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24511600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24511601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24511602, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24511603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24511604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24511605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24511606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24511607, 'pht': 3726}}" where mtr_portfolio_id = 24511563 and dashboard_run_id = 1954162 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 = 24508622 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 = 24508622 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 = 24508622 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24508622 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 = 24508622 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 = 24508622 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24508622_02-07-2025_18_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24508622 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_P24508622_02-07-2025_18_00_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508654, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508660, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508663, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508665, 'pht': 3726}}" where mtr_portfolio_id = 24508622 and dashboard_run_id = 1954162 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 = 24506011 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 = 24506011 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 = 24506011 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24506011 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 = 24506011 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 = 24506011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24506011_02-07-2025_17_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24506011 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_P24506011_02-07-2025_17_00_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24506106, 'pht': 3726}}" where mtr_portfolio_id = 24506011 and dashboard_run_id = 1954162 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 = 24503345 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 = 24503345 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 = 24503345 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24503345 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 = 24503345 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 = 24503345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503345_02-07-2025_16_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24503345 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_P24503345_02-07-2025_16_43_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503427, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503428, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503434, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503435, 'pht': 3726}}" where mtr_portfolio_id = 24503345 and dashboard_run_id = 1954162 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 = 24503346 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 = 24503346 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 = 24503346 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24503346 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 = 24503346 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 = 24503346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503346_02-07-2025_16_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24503346 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_P24503346_02-07-2025_16_44_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503358, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503368, 'pht': 3726}}" where mtr_portfolio_id = 24503346 and dashboard_run_id = 1954162 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 = 24501065 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 = 24501065 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 = 24501065 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24501065 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 = 24501065 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 = 24501065 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24501065_02-07-2025_16_44_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24501065 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_P24501065_02-07-2025_16_44_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501138, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24501143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501147, 'pht': 3726}}" where mtr_portfolio_id = 24501065 and dashboard_run_id = 1954162 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 = 24498586 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 = 24498586 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 = 24498586 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24498586 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 = 24498586 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 = 24498586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24498586_02-07-2025_16_45_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24498586 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_P24498586_02-07-2025_16_45_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24498607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498609, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498612, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498614, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498618, 'pht': 3726}}" where mtr_portfolio_id = 24498586 and dashboard_run_id = 1954162 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 = 24495217 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 = 24495217 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 = 24495217 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24495217 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 = 24495217 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 = 24495217 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24495217_02-07-2025_16_46_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24495217 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_P24495217_02-07-2025_16_46_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24495310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24495311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24495312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24495313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24495314, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24495315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24495316, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24495318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24495319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24495320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24495321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24495322, 'pht': 3726}}" where mtr_portfolio_id = 24495217 and dashboard_run_id = 1954162 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 = 24493818 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': 3224258, 'mtr_portfolio_id': 24493818, 'created_at': datetime.datetime(2025, 7, 2, 11, 24, 58), 'result': '0.041671133546606294', 'result_long': None, 'result_double': None}] Qualite : 0.041671133546606294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24493818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24493818_02-07-2025_11_24_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24493818 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_P24493818_02-07-2025_11_24_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24493819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24493821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24493822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24493824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24493825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24493826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24493827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24493828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24493829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24493830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24493831, 'pht': 3726}}" where mtr_portfolio_id = 24493818 and dashboard_run_id = 1954162 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`=24493818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070662, 0.041671133546606294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24493818_02-07-2025_11_24_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24493819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24493820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24493821, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24493822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24493824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24493825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24493826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24493827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24493828, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24493829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24493830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24493831, '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 = 24494102 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': 3224299, 'mtr_portfolio_id': 24494102, 'created_at': datetime.datetime(2025, 7, 2, 11, 3, 27), 'result': '0.026466011199569255', 'result_long': None, 'result_double': None}] Qualite : 0.026466011199569255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24494102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494102_02-07-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24494102 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_P24494102_02-07-2025_11_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494119, 'pht': 3726}}" where mtr_portfolio_id = 24494102 and dashboard_run_id = 1954162 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`=24494102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070663, 0.026466011199569255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494102_02-07-2025_11_03_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494112, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494113, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494114, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494118, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494119, '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 = 24494234 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': 3224339, 'mtr_portfolio_id': 24494234, 'created_at': datetime.datetime(2025, 7, 2, 11, 17, 28), 'result': '0.028376202545871282', 'result_long': None, 'result_double': None}] Qualite : 0.028376202545871282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24494234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494234_02-07-2025_11_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24494234 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_P24494234_02-07-2025_11_17_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494260, 'pht': 3726}}" where mtr_portfolio_id = 24494234 and dashboard_run_id = 1954162 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`=24494234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070664, 0.028376202545871282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494234_02-07-2025_11_17_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494250, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494253, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494254, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494256, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494260, '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 = 24494774 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': 3224479, 'mtr_portfolio_id': 24494774, 'created_at': datetime.datetime(2025, 7, 2, 11, 32, 56), 'result': '0.03685032691232941', 'result_long': None, 'result_double': None}] Qualite : 0.03685032691232941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24494774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494774_02-07-2025_11_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24494774 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_P24494774_02-07-2025_11_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494793, 'pht': 3726}}" where mtr_portfolio_id = 24494774 and dashboard_run_id = 1954162 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`=24494774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070665, 0.03685032691232941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24494774_02-07-2025_11_32_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24494781, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24494782, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24494783, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24494784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24494785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24494786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24494787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24494788, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24494789, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24494790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24494791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24494793, '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 = 24495450 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': 3224633, 'mtr_portfolio_id': 24495450, 'created_at': datetime.datetime(2025, 7, 2, 11, 47, 1), 'result': '0.03772257612118059', 'result_long': None, 'result_double': None}] Qualite : 0.03772257612118059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24495450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24495450_02-07-2025_11_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24495450 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_P24495450_02-07-2025_11_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24495514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24495515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24495516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24495517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24495518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24495519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24495520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24495521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24495522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24495523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24495524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24495525, 'pht': 3726}}" where mtr_portfolio_id = 24495450 and dashboard_run_id = 1954162 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`=24495450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070666, 0.03772257612118059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24495450_02-07-2025_11_47_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24495514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24495515, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24495516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24495517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24495518, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24495519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24495520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24495521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24495522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24495523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24495524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24495525, '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 = 24496182 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': 3224781, 'mtr_portfolio_id': 24496182, 'created_at': datetime.datetime(2025, 7, 2, 12, 3), 'result': '0.03552510433214566', 'result_long': None, 'result_double': None}] Qualite : 0.03552510433214566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24496182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24496182_02-07-2025_12_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24496182 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_P24496182_02-07-2025_12_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24496188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496199, 'pht': 3726}}" where mtr_portfolio_id = 24496182 and dashboard_run_id = 1954162 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`=24496182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070667, 0.03552510433214566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24496182_02-07-2025_12_03_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24496188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496197, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496199, '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 = 24496579 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': 3224832, 'mtr_portfolio_id': 24496579, 'created_at': datetime.datetime(2025, 7, 2, 12, 16, 30), 'result': '0.03691087908737592', 'result_long': None, 'result_double': None}] Qualite : 0.03691087908737592 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24496579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24496579_02-07-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24496579 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_P24496579_02-07-2025_12_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24496679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496681, 'pht': 3726}}" where mtr_portfolio_id = 24496579 and dashboard_run_id = 1954162 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`=24496579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070668, 0.03691087908737592, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24496579_02-07-2025_12_16_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24496669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24496670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24496671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24496673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24496674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24496675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24496676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24496677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24496678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24496679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24496680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24496681, '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 = 24497467 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': 3224964, 'mtr_portfolio_id': 24497467, 'created_at': datetime.datetime(2025, 7, 2, 12, 32, 59), 'result': '0.035624448283683385', 'result_long': None, 'result_double': None}] Qualite : 0.035624448283683385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24497467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24497467_02-07-2025_12_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24497467 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_P24497467_02-07-2025_12_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497506, 'pht': 3726}}" where mtr_portfolio_id = 24497467 and dashboard_run_id = 1954162 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`=24497467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070669, 0.035624448283683385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24497467_02-07-2025_12_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497495, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497505, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497506, '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 = 24497619 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': 3225001, 'mtr_portfolio_id': 24497619, 'created_at': datetime.datetime(2025, 7, 2, 12, 46, 58), 'result': '0.03898653770922073', 'result_long': None, 'result_double': None}] Qualite : 0.03898653770922073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24497619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24497619_02-07-2025_12_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24497619 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_P24497619_02-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497665, 'pht': 3726}}" where mtr_portfolio_id = 24497619 and dashboard_run_id = 1954162 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`=24497619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070670, 0.03898653770922073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24497619_02-07-2025_12_46_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24497654, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24497655, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24497656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24497657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24497658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24497659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24497660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24497661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24497662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24497663, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24497664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24497665, '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 = 24498295 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': 3225122, 'mtr_portfolio_id': 24498295, 'created_at': datetime.datetime(2025, 7, 2, 13, 2, 59), 'result': '0.0341130946028057', 'result_long': None, 'result_double': None}] Qualite : 0.0341130946028057 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24498295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24498295_02-07-2025_13_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24498295 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_P24498295_02-07-2025_13_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498336, 'pht': 3726}}" where mtr_portfolio_id = 24498295 and dashboard_run_id = 1954162 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`=24498295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070671, 0.0341130946028057, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24498295_02-07-2025_13_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498331, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498336, '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 = 24498665 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': 3225201, 'mtr_portfolio_id': 24498665, 'created_at': datetime.datetime(2025, 7, 2, 13, 16, 58), 'result': '0.03788804100253009', 'result_long': None, 'result_double': None}] Qualite : 0.03788804100253009 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24498665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24498665_02-07-2025_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24498665 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_P24498665_02-07-2025_13_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498728, 'pht': 3726}}" where mtr_portfolio_id = 24498665 and dashboard_run_id = 1954162 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`=24498665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070672, 0.03788804100253009, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24498665_02-07-2025_13_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24498717, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24498718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24498719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24498720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24498721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24498722, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24498723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24498724, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24498725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24498726, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24498727, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24498728, '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 = 24499603 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': 3225322, 'mtr_portfolio_id': 24499603, 'created_at': datetime.datetime(2025, 7, 2, 13, 32, 58), 'result': '0.03816165120775858', 'result_long': None, 'result_double': None}] Qualite : 0.03816165120775858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24499603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24499603_02-07-2025_13_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24499603 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_P24499603_02-07-2025_13_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24499623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24499624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24499625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24499626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24499627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24499628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24499629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24499630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24499631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24499632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24499633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24499634, 'pht': 3726}}" where mtr_portfolio_id = 24499603 and dashboard_run_id = 1954162 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`=24499603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070673, 0.03816165120775858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24499603_02-07-2025_13_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24499623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24499624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24499625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24499626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24499627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24499628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24499629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24499630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24499631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24499632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24499633, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24499634, '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 = 24500021 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': 3225388, 'mtr_portfolio_id': 24500021, 'created_at': datetime.datetime(2025, 7, 2, 13, 46, 57), 'result': '0.03923291290921901', 'result_long': None, 'result_double': None}] Qualite : 0.03923291290921901 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24500021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24500021_02-07-2025_13_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24500021 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_P24500021_02-07-2025_13_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500067, 'pht': 3726}}" where mtr_portfolio_id = 24500021 and dashboard_run_id = 1954162 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`=24500021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070674, 0.03923291290921901, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24500021_02-07-2025_13_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500062, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500064, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500067, '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 = 24500803 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': 3225501, 'mtr_portfolio_id': 24500803, 'created_at': datetime.datetime(2025, 7, 2, 14, 2, 59), 'result': '0.03390621215175864', 'result_long': None, 'result_double': None}] Qualite : 0.03390621215175864 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24500803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24500803_02-07-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24500803 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_P24500803_02-07-2025_14_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500822, 'pht': 3726}}" where mtr_portfolio_id = 24500803 and dashboard_run_id = 1954162 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`=24500803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070675, 0.03390621215175864, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24500803_02-07-2025_14_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24500811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24500812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24500813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24500814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24500815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24500816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24500817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24500818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24500819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24500820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24500821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24500822, '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 = 24501313 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': 3225602, 'mtr_portfolio_id': 24501313, 'created_at': datetime.datetime(2025, 7, 2, 14, 16, 58), 'result': '0.0364762478655059', 'result_long': None, 'result_double': None}] Qualite : 0.0364762478655059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24501313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24501313_02-07-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24501313 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_P24501313_02-07-2025_14_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24501318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501329, 'pht': 3726}}" where mtr_portfolio_id = 24501313 and dashboard_run_id = 1954162 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`=24501313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070676, 0.0364762478655059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24501313_02-07-2025_14_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24501318, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501319, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501322, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501324, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501329, '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 = 24501893 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': 3225702, 'mtr_portfolio_id': 24501893, 'created_at': datetime.datetime(2025, 7, 2, 14, 33, 31), 'result': '0.046371857784307954', 'result_long': None, 'result_double': None}] Qualite : 0.046371857784307954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24501893 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24501893_02-07-2025_14_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24501893 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_P24501893_02-07-2025_14_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24501922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501926, 'pht': 3726}}" where mtr_portfolio_id = 24501893 and dashboard_run_id = 1954162 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`=24501893 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070677, 0.046371857784307954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24501893_02-07-2025_14_33_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24501911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24501912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24501913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24501915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24501917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24501918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24501919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24501921, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24501922, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24501923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24501925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24501926, '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 = 24502277 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': 3225774, 'mtr_portfolio_id': 24502277, 'created_at': datetime.datetime(2025, 7, 2, 14, 48, 1), 'result': '0.025428943805023283', 'result_long': None, 'result_double': None}] Qualite : 0.025428943805023283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24502277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24502277_02-07-2025_14_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24502277 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_P24502277_02-07-2025_14_48_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24502285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24502286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24502287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24502288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24502289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24502290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24502291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24502292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24502293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24502294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24502295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24502296, 'pht': 3726}}" where mtr_portfolio_id = 24502277 and dashboard_run_id = 1954162 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`=24502277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070678, 0.025428943805023283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24502277_02-07-2025_14_48_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24502285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24502286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24502287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24502288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24502289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24502290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24502291, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24502292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24502293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24502294, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24502295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24502296, '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 = 24503151 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': 3225919, 'mtr_portfolio_id': 24503151, 'created_at': datetime.datetime(2025, 7, 2, 15, 2, 58), 'result': '0.032208409332804305', 'result_long': None, 'result_double': None}] Qualite : 0.032208409332804305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24503151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503151_02-07-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24503151 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_P24503151_02-07-2025_15_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24503181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503192, 'pht': 3726}}" where mtr_portfolio_id = 24503151 and dashboard_run_id = 1954162 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`=24503151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070679, 0.032208409332804305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503151_02-07-2025_15_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24503181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503191, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503192, '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 = 24503493 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': 3225984, 'mtr_portfolio_id': 24503493, 'created_at': datetime.datetime(2025, 7, 2, 15, 16, 57), 'result': '0.04758455659502589', 'result_long': None, 'result_double': None}] Qualite : 0.04758455659502589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24503493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503493_02-07-2025_15_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24503493 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_P24503493_02-07-2025_15_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503538, 'pht': 3726}}" where mtr_portfolio_id = 24503493 and dashboard_run_id = 1954162 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`=24503493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070680, 0.04758455659502589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24503493_02-07-2025_15_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24503527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24503528, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24503529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24503530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24503531, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24503532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24503533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24503534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24503535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24503536, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24503537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24503538, '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 = 24504530 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': 3226107, 'mtr_portfolio_id': 24504530, 'created_at': datetime.datetime(2025, 7, 2, 15, 32, 57), 'result': '0.16100517307598194', 'result_long': None, 'result_double': None}] Qualite : 0.16100517307598194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24504530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24504530_02-07-2025_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24504530 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_P24504530_02-07-2025_15_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504571, 'pht': 3726}}" where mtr_portfolio_id = 24504530 and dashboard_run_id = 1954162 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`=24504530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070681, 0.16100517307598194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24504530_02-07-2025_15_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504567, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504569, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504571, '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 = 24504887 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': 3226168, 'mtr_portfolio_id': 24504887, 'created_at': datetime.datetime(2025, 7, 2, 15, 47), 'result': '0.027517142728368294', 'result_long': None, 'result_double': None}] Qualite : 0.027517142728368294 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24504887 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24504887_02-07-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24504887 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_P24504887_02-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504927, 'pht': 3726}}" where mtr_portfolio_id = 24504887 and dashboard_run_id = 1954162 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`=24504887 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070682, 0.027517142728368294, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24504887_02-07-2025_15_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24504916, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24504917, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24504918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24504919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24504920, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24504921, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24504922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24504923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24504924, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24504925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24504926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24504927, '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 = 24505558 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': 3226342, 'mtr_portfolio_id': 24505558, 'created_at': datetime.datetime(2025, 7, 2, 16, 3, 1), 'result': '0.030121386610962787', 'result_long': None, 'result_double': None}] Qualite : 0.030121386610962787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24505558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24505558_02-07-2025_16_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24505558 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_P24505558_02-07-2025_16_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24505564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24505565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24505566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24505567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24505568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24505569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24505570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24505571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24505572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24505573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24505574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24505575, 'pht': 3726}}" where mtr_portfolio_id = 24505558 and dashboard_run_id = 1954162 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`=24505558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070683, 0.030121386610962787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24505558_02-07-2025_16_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24505564, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24505565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24505566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24505567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24505568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24505569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24505570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24505571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24505572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24505573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24505574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24505575, '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 = 24506120 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': 3226514, 'mtr_portfolio_id': 24506120, 'created_at': datetime.datetime(2025, 7, 2, 16, 16, 59), 'result': '0.039101331767525', 'result_long': None, 'result_double': None}] Qualite : 0.039101331767525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24506120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24506120_02-07-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24506120 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_P24506120_02-07-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24506258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506267, 'pht': 3726}}" where mtr_portfolio_id = 24506120 and dashboard_run_id = 1954162 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`=24506120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070684, 0.039101331767525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24506120_02-07-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24506258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506260, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506266, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506267, '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 = 24506947 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': 3226627, 'mtr_portfolio_id': 24506947, 'created_at': datetime.datetime(2025, 7, 2, 16, 35, 29), 'result': '0.040000214571288634', 'result_long': None, 'result_double': None}] Qualite : 0.040000214571288634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24506947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24506947_02-07-2025_16_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24506947 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_P24506947_02-07-2025_16_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24506954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506965, 'pht': 3726}}" where mtr_portfolio_id = 24506947 and dashboard_run_id = 1954162 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`=24506947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070685, 0.040000214571288634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24506947_02-07-2025_16_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24506954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24506955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24506956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24506957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24506958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24506959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24506960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24506961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24506962, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24506963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24506964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24506965, '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 = 24507576 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': 3226741, 'mtr_portfolio_id': 24507576, 'created_at': datetime.datetime(2025, 7, 2, 16, 46, 29), 'result': '0.025011677036227357', 'result_long': None, 'result_double': None}] Qualite : 0.025011677036227357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24507576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24507576_02-07-2025_16_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24507576 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_P24507576_02-07-2025_16_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24507594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24507595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24507596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24507598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24507599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24507600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24507601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24507602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24507603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24507604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24507605, 'pht': 3726}}" where mtr_portfolio_id = 24507576 and dashboard_run_id = 1954162 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`=24507576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070686, 0.025011677036227357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24507576_02-07-2025_16_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24507594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24507595, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24507596, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24507597, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24507598, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24507599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24507600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24507601, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24507602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24507603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24507604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24507605, '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 = 24508303 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': 3226852, 'mtr_portfolio_id': 24508303, 'created_at': datetime.datetime(2025, 7, 2, 17, 3, 28), 'result': '0.033227177125077195', 'result_long': None, 'result_double': None}] Qualite : 0.033227177125077195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24508303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24508303_02-07-2025_17_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24508303 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_P24508303_02-07-2025_17_03_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508351, 'pht': 3726}}" where mtr_portfolio_id = 24508303 and dashboard_run_id = 1954162 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`=24508303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070687, 0.033227177125077195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24508303_02-07-2025_17_03_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508337, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508349, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508351, '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 = 24508782 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': 3226925, 'mtr_portfolio_id': 24508782, 'created_at': datetime.datetime(2025, 7, 2, 17, 16, 59), 'result': '0.037674111787391426', 'result_long': None, 'result_double': None}] Qualite : 0.037674111787391426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24508782 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24508782_02-07-2025_17_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24508782 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_P24508782_02-07-2025_17_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508798, 'pht': 3726}}" where mtr_portfolio_id = 24508782 and dashboard_run_id = 1954162 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`=24508782 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070688, 0.037674111787391426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24508782_02-07-2025_17_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24508787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24508788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24508789, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24508790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24508791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24508792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24508793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24508794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24508795, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24508796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24508797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24508798, '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 = 24509402 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': 3227046, 'mtr_portfolio_id': 24509402, 'created_at': datetime.datetime(2025, 7, 2, 17, 33, 1), 'result': '0.03181221549491748', 'result_long': None, 'result_double': None}] Qualite : 0.03181221549491748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24509402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24509402_02-07-2025_17_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24509402 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_P24509402_02-07-2025_17_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24509420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24509422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24509424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24509425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24509427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24509428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24509429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24509430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24509432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24509433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24509434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24509436, 'pht': 3726}}" where mtr_portfolio_id = 24509402 and dashboard_run_id = 1954162 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`=24509402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070689, 0.03181221549491748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24509402_02-07-2025_17_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24509420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24509422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24509424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24509425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24509427, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24509428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24509429, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24509430, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24509432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24509433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24509434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24509436, '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 = 24510011 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': 3227126, 'mtr_portfolio_id': 24510011, 'created_at': datetime.datetime(2025, 7, 2, 17, 47, 1), 'result': '0.006147455232559799', 'result_long': None, 'result_double': None}] Qualite : 0.006147455232559799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24510011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24510011_02-07-2025_17_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24510011 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_P24510011_02-07-2025_17_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510155, 'pht': 3726}}" where mtr_portfolio_id = 24510011 and dashboard_run_id = 1954162 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`=24510011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070690, 0.006147455232559799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24510011_02-07-2025_17_47_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510146, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510150, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510155, '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 = 24510841 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 = 24510841 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 = 24510841 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24510841 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 = 24510841 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': 3227248, 'mtr_portfolio_id': 24510841, 'created_at': datetime.datetime(2025, 7, 2, 18, 2, 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 = 24510841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24510841_02-07-2025_18_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24510841 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_P24510841_02-07-2025_18_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510918, 'pht': 3726}}" where mtr_portfolio_id = 24510841 and dashboard_run_id = 1954162 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`=24510841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070691, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24510841_02-07-2025_18_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24510907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24510908, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24510909, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24510910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24510911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24510912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24510913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24510914, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24510915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24510916, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24510917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24510918, '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 = 24511760 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': 3227348, 'mtr_portfolio_id': 24511760, 'created_at': datetime.datetime(2025, 7, 2, 18, 16, 59), 'result': '0.04259398960026435', 'result_long': None, 'result_double': None}] Qualite : 0.04259398960026435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24511760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24511760_02-07-2025_18_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24511760 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_P24511760_02-07-2025_18_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24511806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24511807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24511808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24511809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24511810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24511811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24511812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24511813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24511814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24511815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24511816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24511817, 'pht': 3726}}" where mtr_portfolio_id = 24511760 and dashboard_run_id = 1954162 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`=24511760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070692, 0.04259398960026435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24511760_02-07-2025_18_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24511806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24511807, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24511808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24511809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24511810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24511811, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24511812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24511813, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24511814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24511815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24511816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24511817, '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 = 24512566 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': 3227536, 'mtr_portfolio_id': 24512566, 'created_at': datetime.datetime(2025, 7, 2, 18, 33, 1), 'result': '0.03871122528666431', 'result_long': None, 'result_double': None}] Qualite : 0.03871122528666431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24512566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24512566_02-07-2025_18_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24512566 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_P24512566_02-07-2025_18_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24512598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24512599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24512601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24512602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24512603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24512605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24512606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24512607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24512608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24512609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24512610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24512611, 'pht': 3726}}" where mtr_portfolio_id = 24512566 and dashboard_run_id = 1954162 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`=24512566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070693, 0.03871122528666431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24512566_02-07-2025_18_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24512598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24512599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24512601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24512602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24512603, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24512605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24512606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24512607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24512608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24512609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24512610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24512611, '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 = 24513571 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': 3227790, 'mtr_portfolio_id': 24513571, 'created_at': datetime.datetime(2025, 7, 2, 18, 47), 'result': '0.039334697438015875', 'result_long': None, 'result_double': None}] Qualite : 0.039334697438015875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24513571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24513571_02-07-2025_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24513571 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_P24513571_02-07-2025_18_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24513693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24513694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24513695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24513696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24513697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24513698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24513699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24513700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24513701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24513702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24513704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24513705, 'pht': 3726}}" where mtr_portfolio_id = 24513571 and dashboard_run_id = 1954162 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`=24513571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070694, 0.039334697438015875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24513571_02-07-2025_18_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24513693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24513694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24513695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24513696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24513697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24513698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24513699, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24513700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24513701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24513702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24513704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24513705, '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 = 24515103 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': 3228299, 'mtr_portfolio_id': 24515103, 'created_at': datetime.datetime(2025, 7, 2, 19, 2, 57), 'result': '0.03147396150211139', 'result_long': None, 'result_double': None}] Qualite : 0.03147396150211139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24515103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24515103_02-07-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24515103 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_P24515103_02-07-2025_19_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24515138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24515140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24515141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24515142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24515144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24515145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24515146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24515148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24515149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24515150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24515153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24515154, 'pht': 3726}}" where mtr_portfolio_id = 24515103 and dashboard_run_id = 1954162 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`=24515103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070695, 0.03147396150211139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24515103_02-07-2025_19_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24515138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24515140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24515141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24515142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24515144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24515145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24515146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24515148, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24515149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24515150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24515153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24515154, '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 = 24516386 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': 3228701, 'mtr_portfolio_id': 24516386, 'created_at': datetime.datetime(2025, 7, 2, 19, 16, 59), 'result': '0.04208389366690108', 'result_long': None, 'result_double': None}] Qualite : 0.04208389366690108 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24516386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24516386_02-07-2025_19_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24516386 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_P24516386_02-07-2025_19_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24516541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24516542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24516543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24516544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24516545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24516546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24516547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24516548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24516549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24516550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24516551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24516552, 'pht': 3726}}" where mtr_portfolio_id = 24516386 and dashboard_run_id = 1954162 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`=24516386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070696, 0.04208389366690108, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24516386_02-07-2025_19_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24516541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24516542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24516543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24516544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24516545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24516546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24516547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24516548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24516549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24516550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24516551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24516552, '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 = 24518185 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': 3229169, 'mtr_portfolio_id': 24518185, 'created_at': datetime.datetime(2025, 7, 2, 19, 32, 57), 'result': '0.025172650509054182', 'result_long': None, 'result_double': None}] Qualite : 0.025172650509054182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24518185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24518185_02-07-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24518185 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_P24518185_02-07-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24518214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24518215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24518216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24518217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24518218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24518219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24518220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24518221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24518222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24518223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24518224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24518225, 'pht': 3726}}" where mtr_portfolio_id = 24518185 and dashboard_run_id = 1954162 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`=24518185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070697, 0.025172650509054182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24518185_02-07-2025_19_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24518214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24518215, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24518216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24518217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24518218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24518219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24518220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24518221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24518222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24518223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24518224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24518225, '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 = 24519329 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': 3229329, 'mtr_portfolio_id': 24519329, 'created_at': datetime.datetime(2025, 7, 2, 19, 47), 'result': '0.02804321452990011', 'result_long': None, 'result_double': None}] Qualite : 0.02804321452990011 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24519329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24519329_02-07-2025_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24519329 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_P24519329_02-07-2025_19_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24519389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24519390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24519391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24519392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24519393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24519394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24519395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24519396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24519397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24519398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24519399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24519400, 'pht': 3726}}" where mtr_portfolio_id = 24519329 and dashboard_run_id = 1954162 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`=24519329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070698, 0.02804321452990011, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24519329_02-07-2025_19_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24519389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24519390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24519391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24519392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24519393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24519394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24519395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24519396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24519397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24519398, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24519399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24519400, '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 = 24520329 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': 3229455, 'mtr_portfolio_id': 24520329, 'created_at': datetime.datetime(2025, 7, 2, 20, 3), 'result': '0.04697835910731486', 'result_long': None, 'result_double': None}] Qualite : 0.04697835910731486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24520329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24520329_02-07-2025_20_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24520329 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_P24520329_02-07-2025_20_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24520362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24520363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24520364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24520366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24520367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24520368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24520370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24520371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24520372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24520374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24520375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24520376, 'pht': 3726}}" where mtr_portfolio_id = 24520329 and dashboard_run_id = 1954163 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`=24520329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070699, 0.04697835910731486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24520329_02-07-2025_20_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24520362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24520363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24520364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24520366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24520367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24520368, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24520370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24520371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24520372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24520374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24520375, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24520376, '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 = 24521308 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': 3229551, 'mtr_portfolio_id': 24521308, 'created_at': datetime.datetime(2025, 7, 2, 20, 16, 58), 'result': '0.055397729634961895', 'result_long': None, 'result_double': None}] Qualite : 0.055397729634961895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24521308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24521308_02-07-2025_20_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24521308 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_P24521308_02-07-2025_20_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24521319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24521320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24521321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24521322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24521323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24521324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24521326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24521327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24521328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24521329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24521330, 'pht': 3726}}" where mtr_portfolio_id = 24521308 and dashboard_run_id = 1954163 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`=24521308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070700, 0.055397729634961895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24521308_02-07-2025_20_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24521319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24521320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24521321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24521322, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24521323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24521324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24521325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24521326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24521327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24521328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24521329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24521330, '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 = 24522287 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': 3229658, 'mtr_portfolio_id': 24522287, 'created_at': datetime.datetime(2025, 7, 2, 20, 32, 59), 'result': '0.06803772479332859', 'result_long': None, 'result_double': None}] Qualite : 0.06803772479332859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24522287 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24522287_02-07-2025_20_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24522287 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_P24522287_02-07-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24522320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24522321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24522322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24522323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24522324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24522325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24522326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24522327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24522328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24522329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24522330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24522332, 'pht': 3726}}" where mtr_portfolio_id = 24522287 and dashboard_run_id = 1954163 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`=24522287 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070701, 0.06803772479332859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24522287_02-07-2025_20_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24522320, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24522321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24522322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24522323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24522324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24522325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24522326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24522327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24522328, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24522329, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24522330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24522332, '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 = 24523081 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': 3229745, 'mtr_portfolio_id': 24523081, 'created_at': datetime.datetime(2025, 7, 2, 20, 39), 'result': '0.03151401584928848', 'result_long': None, 'result_double': None}] Qualite : 0.03151401584928848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24523081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24523081_02-07-2025_20_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24523081 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_P24523081_02-07-2025_20_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24523103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24523104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24523105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24523106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24523107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24523108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24523109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24523111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24523112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24523113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24523114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24523115, 'pht': 3726}}" where mtr_portfolio_id = 24523081 and dashboard_run_id = 1954163 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`=24523081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12070702, 0.03151401584928848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24523081_02-07-2025_20_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24523103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24523104, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24523105, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24523106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24523107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24523108, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24523109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24523111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24523112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24523113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24523114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24523115, '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 (24521036,24521038,24521056,24511563,24508622,24506011,24503345,24503346,24501065,24498586,24495217,24493818,24494102,24494234,24494774,24495450,24496182,24496579,24497467,24497619,24498295,24498665,24499603,24500021,24500803,24501313,24501893,24502277,24503151,24503493,24504530,24504887,24505558,24506120,24506947,24507576,24508303,24508782,24509402,24510011,24510841,24511760,24512566,24513571,24515103,24516386,24518185,24519329,24520329,24521308,24522287,24523081) result : ((1369839306,), (1369839369,), (1369839397,), (1369839420,), (1369839455,), (1369839502,), (1369839656,), (1369839657,), (1369839719,), (1369839720,), (1369839804,), (1369839808,), (1369839851,), (1369839870,), (1369839915,), (1369839930,), (1369839962,), (1369839972,), (1369840177,), (1369840227,), (1369840272,), (1369840345,), (1369840403,), (1369840417,), (1369840551,), (1369840559,), (1369840562,), (1369840566,), (1369840569,), (1369840618,), (1369840873,), (1369840935,), (1369840972,), (1369841026,), (1369841090,), (1369841139,), (1369842815,), (1369842891,), (1369842936,), (1369842986,), (1369843066,), (1369843131,), (1369844328,), (1369844330,), (1369844333,), (1369844349,), (1369844384,), (1369844418,), (1369844907,), (1369844951,), (1369845016,), (1369845061,), (1369845077,), (1369845085,), (1369845727,), (1369845769,), (1369845829,), (1369845902,), (1369846005,), (1369846112,), (1369847673,), (1369850262,), (1369850315,), (1369850356,), (1369850410,), (1369850448,), (1369850491,), (1369852885,), (1369852945,), (1369852968,), (1369852981,), (1369852998,), (1369853024,), (1369854207,), (1369854242,), (1369854278,), (1369854314,), (1369854353,), (1369854387,), (1369855503,), (1369855541,), (1369855552,), (1369855560,), (1369855568,), (1369855579,), (1369857047,), (1369857078,), (1369857085,), (1369857100,), (1369857141,), (1369857181,), (1369859242,), (1369859257,), (1369859263,), (1369859267,), (1369859271,), (1369841367,), (1369841371,), (1369841403,), (1369841409,), (1369841438,), (1369841451,), (1369841476,), (1369841489,), (1369841511,), (1369841532,), (1369841575,), (1369841595,), (1369841725,), (1369841783,), (1369841818,), (1369841854,), (1369841945,), (1369842063,), (1369842289,), (1369842348,), (1369842385,), (1369842406,), (1369842451,), (1369842508,), (1369843270,), (1369843317,), (1369843351,), (1369843392,), (1369843457,), (1369843493,), (1369843763,), (1369843828,), (1369843899,), (1369843985,), (1369844054,), (1369844100,), (1369844215,), (1369844225,), (1369844266,), (1369844299,), (1369844313,), (1369844317,), (1369844443,), (1369844446,), (1369844463,), (1369844466,), (1369844468,), (1369844471,), (1369844530,), (1369844535,), (1369844539,), (1369844543,), (1369844545,), (1369844549,), (1369844649,), (1369844653,), (1369844657,), (1369844671,), (1369844720,), (1369844781,), (1369845102,), (1369845138,), (1369845173,), (1369845196,), (1369845202,), (1369845206,), (1369845215,), (1369845217,), (1369845220,), (1369845223,), (1369845226,), (1369845242,), (1369845271,), (1369845303,), (1369845339,), (1369845396,), (1369845435,), (1369845478,), (1369846334,), (1369846387,), (1369846486,), (1369846562,), (1369846620,), (1369846692,), (1369847169,), (1369847227,), (1369847247,), (1369847269,), (1369847289,), (1369847314,), (1369847533,), (1369847572,), (1369847604,), (1369847626,), (1369847635,), (1369847938,), (1369848004,), (1369848058,), (1369848134,), (1369848182,), (1369848269,), (1369848585,), (1369848685,), (1369848805,), (1369848909,), (1369849107,), (1369849203,), (1369849374,), (1369849383,), (1369849390,), (1369849424,), (1369849459,), (1369849498,), (1369849628,), (1369849665,), (1369849735,), (1369849802,), (1369849906,), (1369849944,), (1369850579,), (1369850583,), (1369850586,), (1369850589,), (1369850593,), (1369850599,), (1369850618,), (1369850619,), (1369850648,), (1369850651,), (1369850701,), (1369850706,), (1369850763,), (1369850766,), (1369850833,), (1369850836,), (1369850896,), (1369850900,), (1369851200,), (1369851290,), (1369851350,), (1369851411,), (1369851474,), (1369851564,), (1369851991,), (1369852097,), (1369852222,), (1369852335,), (1369852458,), (1369852580,), (1369853136,), (1369853137,), (1369853172,), (1369853174,), (1369853209,), (1369853210,), (1369853272,), (1369853314,), (1369853340,), (1369853381,), (1369853442,), (1369853448,), (1369853637,), (1369853671,), (1369853726,), (1369853801,), (1369853831,), (1369853854,), (1369853924,), (1369853970,), (1369853979,), (1369854013,), (1369854064,), (1369854103,), (1369854410,), (1369854444,), (1369854481,), (1369854512,), (1369854546,), (1369854583,), (1369854717,), (1369854753,), (1369854788,), (1369854822,), (1369854832,), (1369854864,), (1369855015,), (1369855081,), (1369855146,), (1369855222,), (1369855296,), (1369855374,), (1369855596,), (1369855611,), (1369855622,), (1369855711,), (1369855759,), (1369855795,), (1369855961,), (1369856032,), (1369856094,), (1369856151,), (1369856183,), (1369856219,), (1369856387,), (1369856461,), (1369856549,), (1369856621,), (1369856756,), (1369856818,), (1369857379,), (1369857420,), (1369857456,), (1369857514,), (1369857535,), (1369857543,), (1369857569,), (1369857571,), (1369857574,), (1369857576,), (1369857579,), (1369857594,), (1369857624,), (1369857628,), (1369857639,), (1369857677,), (1369857694,), (1369857753,), (1369858039,), (1369858187,), (1369858247,), (1369858299,), (1369858366,), (1369858413,), (1369858508,), (1369858546,), (1369858608,), (1369858670,), (1369858735,), (1369858800,), (1369859014,), (1369859076,), (1369859116,), (1369859171,), (1369859206,), (1369859226,), (1369859292,), (1369859297,), (1369859302,), (1369859306,), (1369859313,), (1369859333,), (1369859460,), (1369859461,), (1369859499,), (1369859503,), (1369859542,), (1369859548,), (1369859581,), (1369859590,), (1369859632,), (1369859643,), (1369859671,), (1369859680,), (1369859769,), (1369859778,), (1369859785,), (1369859792,), (1369859824,), (1369859855,), (1369859912,), (1369859933,), (1369859948,), (1369859966,), (1369859975,), (1369859995,), (1369860086,), (1369860089,), (1369860093,), (1369860098,), (1369860102,), (1369860116,), (1369860131,), (1369860134,), (1369860137,), (1369860150,), (1369860160,), (1369860167,), (1369860190,), (1369860195,), (1369860198,), (1369860204,), (1369860212,), (1369860216,), (1369861056,), (1369861151,), (1369861234,), (1369861311,), (1369861385,), (1369861453,), (1369859279,), (1369860039,), (1369860043,), (1369860047,), (1369860056,), (1369860063,), (1369860069,), (1369860382,), (1369860449,), (1369860509,), (1369860575,), (1369860641,), (1369860709,), (1369861731,), (1369861767,), (1369861772,), (1369861793,), (1369861803,), (1369861816,), (1369861997,), (1369862028,), (1369862035,), (1369862042,), (1369862045,), (1369862049,), (1369862295,), (1369862333,), (1369862369,), (1369862415,), (1369862467,), (1369862509,), (1369863133,), (1369863166,), (1369863207,), (1369863246,), (1369863304,), (1369863360,), (1369864523,), (1369864542,), (1369864556,), (1369864574,), (1369864610,), (1369864650,), (1369865461,), (1369865471,), (1369865474,), (1369865475,), (1369865480,), (1369865490,), (1369866208,), (1369866240,), (1369866278,), (1369866313,), (1369866362,), (1369866406,), (1369867230,), (1369867242,), (1369867247,), (1369867252,), (1369867261,), (1369867271,), (1369868636,), (1369870168,), (1369870191,), (1369870196,), (1369870209,), (1369870213,), (1369870216,), (1369870459,), (1369870545,), (1369870617,), (1369870679,), (1369870748,), (1369870815,), (1369871596,), (1369871600,), (1369871613,), (1369871658,), (1369871692,), (1369871725,), (1369872366,), (1369872429,), (1369872471,), (1369872513,), (1369872555,), (1369872608,), (1369873083,), (1369873107,), (1369873143,), (1369873176,), (1369861588,), (1369861596,), (1369861604,), (1369861609,), (1369861614,), (1369861625,), (1369861638,), (1369861644,), (1369861650,), (1369861656,), (1369861665,), (1369861672,), (1369861684,), (1369861687,), (1369861692,), (1369861698,), (1369861702,), (1369861715,), (1369861828,), (1369861836,), (1369861843,), (1369861848,), (1369861855,), (1369861861,), (1369861880,), (1369861884,), (1369861887,), (1369861890,), (1369861898,), (1369861907,), (1369861928,), (1369861932,), (1369861938,), (1369861943,), (1369861947,), (1369861952,), (1369862056,), (1369862063,), (1369862069,), (1369862075,), (1369862080,), (1369862087,), (1369862103,), (1369862107,), (1369862111,), (1369862115,), (1369862121,), (1369862126,), (1369862146,), (1369862151,), (1369862155,), (1369862165,), (1369862169,), (1369862175,), (1369862192,), (1369862199,), (1369862202,), (1369862207,), (1369862212,), (1369862218,), (1369862589,), (1369862604,), (1369862631,), (1369862644,), (1369862656,), (1369862661,), (1369862718,), (1369862781,), (1369862833,), (1369862837,), (1369862860,), (1369862868,), (1369862903,), (1369862905,), (1369862910,), (1369862934,), (1369862949,), (1369862977,), (1369863394,), (1369863402,), (1369863439,), (1369863450,), (1369863457,), (1369863463,), (1369863484,), (1369863545,), (1369863608,), (1369863681,), (1369863754,), (1369863841,), (1369863971,), (1369864058,), (1369864125,), (1369864168,), (1369864202,), (1369864251,), (1369864408,), (1369864441,), (1369864454,), (1369864458,), (1369864463,), (1369864485,), (1369864915,), (1369864919,), (1369865013,), (1369865029,), (1369865079,), (1369865097,), (1369865153,), (1369865162,), (1369865218,), (1369865223,), (1369865255,), (1369865263,), (1369865355,), (1369865359,), (1369865375,), (1369865381,), (1369865387,), (1369865393,), (1369865405,), (1369865414,), (1369865417,), (1369865422,), (1369865428,), (1369865436,), (1369865505,), (1369865510,), (1369865546,), (1369865578,), (1369865581,), (1369865585,), (1369865626,), (1369865633,), (1369865651,), (1369865706,), (1369865754,), (1369865788,), (1369865964,), (1369865987,), (1369865998,), (1369866009,), (1369866034,), (1369866084,), (1369866535,), (1369866552,), (1369866568,), (1369866606,), (1369866642,), (1369866691,), (1369866821,), (1369866868,), (1369866936,), (1369866989,), (1369867033,), (1369867054,), (1369867133,), (1369867144,), (1369867190,), (1369867198,), (1369867203,), (1369867209,), (1369867343,), (1369867425,), (1369867496,), (1369867587,), (1369867654,), (1369867724,), (1369867902,), (1369867941,), (1369868001,), (1369868052,), (1369868092,), (1369868104,), (1369868365,), (1369868409,), (1369868452,), (1369868492,), (1369868514,), (1369868524,), (1369868567,), (1369868571,), (1369868574,), (1369868578,), (1369868598,), (1369868883,), (1369868888,), (1369868954,), (1369868958,), (1369869027,), (1369869043,), (1369869103,), (1369869114,), (1369869178,), (1369869187,), (1369869253,), (1369869254,), (1369869447,), (1369869483,), (1369869531,), (1369869566,), (1369869600,), (1369869605,), (1369869722,), (1369869787,), (1369869824,), (1369869860,), (1369869903,), (1369869967,), (1369870230,), (1369870232,), (1369870242,), (1369870248,), (1369870255,), (1369870261,), (1369870294,), (1369870306,), (1369870312,), (1369870318,), (1369870322,), (1369870332,), (1369870354,), (1369870360,), (1369870364,), (1369870369,), (1369870381,), (1369870386,), (1369871044,), (1369871076,), (1369871086,), (1369871097,), (1369871133,), (1369871184,), (1369871310,), (1369871346,), (1369871383,), (1369871414,), (1369871444,), (1369871457,), (1369871494,), (1369871500,), (1369871503,), (1369871513,), (1369871547,), (1369871560,), (1369871849,), (1369871884,), (1369871914,), (1369871946,), (1369871951,), (1369871959,), (1369871974,), (1369871984,), (1369871987,), (1369871988,), (1369871997,), (1369872001,), (1369872052,), (1369872058,), (1369872087,), (1369872097,), (1369872107,), (1369872118,), (1369872725,), (1369872758,), (1369872798,), (1369872814,), (1369872815,), (1369872834,), (1369872909,), (1369872929,), (1369872950,), (1369872963,), (1369872969,), (1369872984,), (1369873014,), (1369873018,), (1369873020,), (1369873023,), (1369873032,), (1369873035,), (1369873378,), (1369873432,), (1369873461,), (1369873486,), (1369873498,), (1369873510,), (1369873585,), (1369873640,), (1369873680,), (1369873711,), (1369873755,), (1369873815,), (1369874009,), (1369874074,), (1369874119,), (1369874166,), (1369874234,), (1369874304,), (1369874592,), (1369874615,), (1369874629,), (1369874652,), (1369874686,), (1369874745,), (1369874931,), (1369874974,), (1369875011,), (1369875044,), (1369875058,), (1369875106,), (1369875117,), (1369875121,), (1369875126,), (1369875136,), (1369875142,), (1369875145,), (1369875203,), (1369875221,), (1369875239,), (1369875241,), (1369875246,), (1369875259,), (1369875318,), (1369875343,), (1369875348,), (1369875353,), (1369875387,), (1369875445,), (1369875637,), (1369875671,), (1369875708,), (1369875750,), (1369875818,), (1369875858,), (1369875957,), (1369875985,), (1369876026,), (1369876061,), (1369876118,), (1369876154,), (1369876272,), (1369876288,), (1369876293,), (1369876304,), (1369876318,), (1369876319,), (1369876336,), (1369876340,), (1369876346,), (1369876357,), (1369876370,), (1369876398,), (1369876455,), (1369876479,), (1369876486,), (1369876491,), (1369876505,), (1369876510,), (1369877046,), (1369877048,), (1369877080,), (1369877083,), (1369877101,), (1369877102,), (1369877107,), (1369877108,), (1369877110,), (1369877112,), (1369877121,), (1369877122,), (1369877148,), (1369877183,), (1369877219,), (1369877252,), (1369877302,), (1369877309,), (1369877330,), (1369877332,), (1369877336,), (1369877347,), (1369877353,), (1369877361,), (1369877500,), (1369877547,), (1369877584,), (1369877644,), (1369877759,), (1369877824,), (1369878034,), (1369878072,), (1369878085,), (1369878099,), (1369878105,), (1369878108,), (1369878190,), (1369878242,), (1369878301,), (1369878336,), (1369878369,), (1369878414,), (1369878658,), (1369878739,), (1369878798,), (1369878871,), (1369878911,), (1369878950,), (1369879522,), (1369879578,), (1369879650,), (1369879705,), (1369879741,), (1369879775,), (1369879908,), (1369879939,), (1369879944,), (1369879956,), (1369879995,), (1369880007,), (1369880071,), (1369880077,), (1369880087,), (1369880097,), (1369880122,), (1369880163,), (1369880441,), (1369880478,), (1369880489,), (1369880507,), (1369880527,), (1369880586,), (1369880761,), (1369880797,), (1369880831,), (1369880875,), (1369880927,), (1369880975,), (1369881009,), (1369881012,), (1369881021,), (1369881025,), (1369881029,), (1369881033,), (1369881151,), (1369881156,), (1369881158,), (1369881162,), (1369881174,), (1369881178,), (1369881208,), (1369881209,), (1369881218,), (1369881220,), (1369881251,), (1369881254,), (1369881289,), (1369881290,), (1369881314,), (1369881315,), (1369881318,), (1369881321,), (1369881384,), (1369881424,), (1369881458,), (1369881494,), (1369881526,), (1369881570,), (1369881693,), (1369881730,), (1369881752,), (1369881759,), (1369881767,), (1369881783,), (1369881912,), (1369881913,), (1369881922,), (1369881924,), (1369881936,), (1369881937,), (1369881948,), (1369881949,), (1369881954,), (1369881955,), (1369881961,), (1369881962,), (1369881977,), (1369881990,), (1369882005,), (1369882033,), (1369882068,), (1369882123,), (1369882242,), (1369882311,), (1369882382,), (1369882446,), (1369882575,), (1369882645,), (1369882903,), (1369882909,), (1369882914,), (1369882917,), (1369882934,), (1369882939,), (1369882960,), (1369882966,), (1369883001,), (1369883011,), (1369883017,), (1369883019,), (1369883043,), (1369883049,), (1369883066,), (1369883091,), (1369883098,), (1369883130,), (1369883173,), (1369883247,), (1369883287,), (1369883302,), (1369883321,), (1369883349,), (1369883640,), (1369883642,), (1369883654,), (1369883657,), (1369883667,), (1369883678,), (1369883702,), (1369883704,), (1369883708,), (1369883719,), (1369883723,), (1369883729,), (1369883750,), (1369883755,), (1369883766,), (1369883778,), (1369883785,), (1369883787,), (1369883856,), (1369883866,), (1369883877,), (1369883880,), (1369883892,), (1369883897,), (1369883961,), (1369883998,), (1369884032,), (1369884064,), (1369884089,), (1369884094,), (1369884160,), (1369884174,), (1369884197,), (1369884227,), (1369884258,), (1369884300,), (1369885425,), (1369885496,), (1369885567,), (1369885634,), (1369885709,), (1369885787,), (1369886186,), (1369886255,), (1369886321,), (1369886392,), (1369886488,), (1369873211,), (1369873252,), (1369874476,), (1369874490,), (1369874513,), (1369874524,), (1369874533,), (1369874539,), (1369875159,), (1369875162,), (1369875165,), (1369875175,), (1369875180,), (1369875182,), (1369875907,), (1369875923,), (1369875934,), (1369875938,), (1369875940,), (1369875950,), (1369876722,), (1369876761,), (1369876795,), (1369876845,), (1369876901,), (1369876959,), (1369877380,), (1369877383,), (1369877395,), (1369877399,), (1369877401,), (1369877413,), (1369879200,), (1369879228,), (1369879235,), (1369879237,), (1369879277,), (1369879363,), (1369880227,), (1369880246,), (1369880289,), (1369880338,), (1369880363,), (1369880388,), (1369881046,), (1369881047,), (1369881056,), (1369881061,), (1369881075,), (1369881087,), (1369881811,), (1369881815,), (1369881817,), (1369881829,), (1369881846,), (1369881860,), (1369882780,), (1369882787,), (1369882800,), (1369882817,), (1369882825,), (1369882853,), (1369883451,), (1369883493,), (1369883531,), (1369883550,), (1369883554,), (1369883579,), (1369883808,), (1369883811,), (1369883823,), (1369883829,), (1369883834,), (1369883842,), (1369886552,), (1369888484,), (1369888498,), (1369888505,), (1369888532,), (1369888540,), (1369888559,), (1369889674,), (1369889707,), (1369889737,), (1369889750,), (1369889769,), (1369889812,), (1369893662,), (1369893724,), (1369893743,), (1369886846,), (1369886912,), (1369887006,), (1369887069,), (1369887105,), (1369887145,), (1369887387,), (1369887449,), (1369887520,), (1369887576,), (1369887616,), (1369887651,), (1369887823,), (1369887876,), (1369887936,), (1369887984,), (1369888028,), (1369888065,), (1369888206,), (1369888267,), (1369888304,), (1369888346,), (1369888363,), (1369888365,), (1369888646,), (1369888673,), (1369888683,), (1369888687,), (1369888698,), (1369888740,), (1369888815,), (1369888852,), (1369888885,), (1369888890,), (1369888900,), (1369888911,), (1369888935,), (1369888940,), (1369888967,), (1369888978,), (1369888985,), (1369888997,), (1369889111,), (1369889151,), (1369889186,), (1369889231,), (1369889297,), (1369889389,), (1369889991,), (1369890015,), (1369890018,), (1369890032,), (1369890112,), (1369890151,), (1369890240,), (1369890299,), (1369890305,), (1369890315,), (1369890325,), (1369890329,), (1369890514,), (1369890556,), (1369890594,), (1369890662,), (1369890707,), (1369890760,), (1369890959,), (1369891021,), (1369891079,), (1369891117,), (1369891146,), (1369891166,), (1369891248,), (1369891253,), (1369891259,), (1369891305,), (1369891375,), (1369891432,), (1369891603,), (1369891635,), (1369891677,), (1369891713,), (1369891748,), (1369891757,), (1369891793,), (1369891816,), (1369891856,), (1369891886,), (1369891916,), (1369891956,), (1369891978,), (1369892008,), (1369892031,), (1369892037,), (1369892046,), (1369892068,), (1369892093,), (1369892097,), (1369892123,), (1369892165,), (1369892191,), (1369892197,), (1369892247,), (1369892280,), (1369892337,), (1369892375,), (1369892448,), (1369892538,), (1369892950,), (1369893052,), (1369893148,), (1369893225,), (1369893333,), (1369893435,), (1369893897,), (1369893914,), (1369893942,), (1369893947,), (1369893951,), (1369893956,), (1369894187,), (1369894195,), (1369894207,), (1369894221,), (1369894273,), (1369894371,), (1369894530,), (1369894602,), (1369894669,), (1369894743,), (1369894836,), (1369894919,), (1369895200,), (1369895268,), (1369895340,), (1369895372,), (1369895420,), (1369895453,), (1369895525,), (1369895601,), (1369895688,), (1369895794,), (1369895881,), (1369895949,), (1369896192,), (1369896252,), (1369896280,), (1369896283,), (1369896294,), (1369896298,), (1369896823,), (1369896829,), (1369896835,), (1369896839,), (1369896849,), (1369896861,), (1369896874,), (1369896886,), (1369896889,), (1369896899,), (1369896918,), (1369896930,), (1369896981,), (1369896989,), (1369896992,), (1369896999,), (1369897008,), (1369897021,), (1369897243,), (1369897265,), (1369897276,), (1369897280,), (1369897282,), (1369897289,), (1369897392,), (1369897400,), (1369897405,), (1369897433,), (1369897463,), (1369897466,), (1369897483,), (1369897506,), (1369897542,), (1369897583,), (1369897622,), (1369897659,), (1369897958,), (1369897962,), (1369897974,), (1369897977,), (1369897980,), (1369897984,), (1369898016,), (1369898021,), (1369898027,), (1369898032,), (1369898041,), (1369898044,), (1369898072,), (1369898077,), (1369898081,), (1369898090,), (1369898093,), (1369898094,), (1369898164,), (1369898176,), (1369898180,), (1369898196,), (1369898242,), (1369898258,), (1369898348,), (1369898361,), (1369898390,), (1369898402,), (1369898425,), (1369898444,), (1369898469,), (1369898473,), (1369898483,), (1369898493,), (1369898497,), (1369898501,), (1369898811,), (1369898831,), (1369898841,), (1369898872,), (1369898876,), (1369898926,), (1369899013,), (1369899024,), (1369899059,), (1369899100,), (1369899134,), (1369899168,), (1369899417,), (1369899453,), (1369899492,), (1369899527,), (1369899565,), (1369899634,), (1369899721,), (1369899731,), (1369899761,), (1369899785,), (1369899797,), (1369899803,), (1369899993,), (1369900029,), (1369900073,), (1369900090,), (1369900102,), (1369900121,), (1369900146,), (1369900154,), (1369900175,), (1369900210,), (1369900244,), (1369900256,), (1369900455,), (1369900489,), (1369900527,), (1369900599,), (1369900657,), (1369900692,), (1369901002,), (1369901005,), (1369901036,), (1369901042,), (1369901069,), (1369901081,), (1369901111,), (1369901117,), (1369901157,), (1369901161,), (1369901191,), (1369901193,), (1369901290,), (1369901309,), (1369901325,), (1369901334,), (1369901339,), (1369901350,), (1369901359,), (1369901381,), (1369901384,), (1369901393,), (1369901410,), (1369901446,), (1369901633,), (1369901634,), (1369901637,), (1369901638,), (1369901650,), (1369901654,), (1369901696,), (1369901700,), (1369901715,), (1369901717,), (1369901724,), (1369901725,), (1369901802,), (1369901849,), (1369901884,), (1369901896,), (1369901944,), (1369901984,), (1369902100,), (1369902122,), (1369902157,), (1369902168,), (1369902176,), (1369902180,), (1369902383,), (1369902397,), (1369902424,), (1369902428,), (1369902430,), (1369902440,), (1369902615,), (1369902823,), (1369902999,), (1369903088,), (1369903099,), (1369903105,), (1369903182,), (1369903213,), (1369903248,), (1369903284,), (1369903318,), (1369903354,), (1369903656,), (1369903718,), (1369903762,), (1369903796,), (1369903832,), (1369903874,), (1369904294,), (1369904341,), (1369904354,), (1369904384,), (1369904398,), (1369904407,), (1369904549,), (1369904594,), (1369904629,), (1369904670,), (1369904706,), (1369904742,), (1369905204,), (1369905229,), (1369905246,), (1369905263,), (1369905276,), (1369905291,), (1369905340,), (1369905351,), (1369905354,), (1369905355,), (1369905362,), (1369905373,), (1369905513,), (1369905554,), (1369905619,), (1369905728,), (1369905810,), (1369905877,), (1369907464,), (1369907480,), (1369907488,), (1369907528,), (1369907585,), (1369907672,), (1369893754,), (1369893764,), (1369893791,), (1369894976,), (1369895011,), (1369895029,), (1369895062,), (1369895099,), (1369895131,), (1369896701,), (1369896706,), (1369896721,), (1369896734,), (1369896743,), (1369896752,), (1369897118,), (1369897122,), (1369897133,), (1369897158,), (1369897190,), (1369897199,), (1369897806,), (1369897844,), (1369897882,), (1369897918,), (1369897924,), (1369897929,), (1369898111,), (1369898127,), (1369898136,), (1369898141,), (1369898146,), (1369898156,), (1369898613,), (1369898660,), (1369898702,), (1369898708,), (1369898715,), (1369898751,), (1369899850,), (1369899885,), (1369899923,), (1369899937,), (1369899942,), (1369899946,), (1369900775,), (1369900808,), (1369900814,), (1369900816,), (1369900833,), (1369900867,), (1369901484,), (1369901488,), (1369901492,), (1369901495,), (1369901511,), (1369901514,), (1369902261,), (1369902267,), (1369902270,), (1369902280,), (1369902288,), (1369902291,), (1369903389,), (1369903398,), (1369903402,), (1369903428,), (1369903461,), (1369903495,), (1369904994,), (1369905050,), (1369905095,), (1369905148,), (1369905176,), (1369905178,), (1369906175,), (1369906293,), (1369906403,), (1369906499,), (1369906630,), (1369906816,), (1369907905,), (1369907941,), (1369907992,), (1369908086,), (1369908174,), (1369908242,), (1369908598,), (1369909468,), (1369908402,), (1369908441,), (1369908488,), (1369908524,), (1369908559,), (1369908711,), (1369908747,), (1369908781,), (1369908804,), (1369908813,), (1369908843,), (1369909076,), (1369909138,), (1369909208,), (1369909285,), (1369909296,), (1369909316,), (1369909397,), (1369909414,), (1369909421,), (1369909427,), (1369909438,), (1369909453,), (1369909690,), (1369909726,), (1369909773,), (1369909808,), (1369909843,), (1369909920,), (1369910067,), (1369910092,), (1369910111,), (1369910118,), (1369910121,), (1369910140,), (1369910150,), (1369910159,), (1369910162,), (1369910167,), (1369910178,), (1369910182,), (1369910256,), (1369910263,), (1369910274,), (1369910279,), (1369910283,), (1369910286,), (1369910343,), (1369910346,), (1369910380,), (1369910388,), (1369910412,), (1369910420,), (1369910486,), (1369910501,), (1369910530,), (1369910560,), (1369910601,), (1369910664,), (1369911245,), (1369911250,), (1369911252,), (1369911254,), (1369911255,), (1369911262,), (1369911263,), (1369911264,), (1369911265,), (1369911267,), (1369911268,), (1369911281,), (1369911434,), (1369911444,), (1369911475,), (1369911546,), (1369911594,), (1369911635,), (1369911844,), (1369911887,), (1369911922,), (1369911959,), (1369911976,), (1369911982,), (1369912118,), (1369912123,), (1369912185,), (1369912231,), (1369912269,), (1369912301,), (1369912439,), (1369912513,), (1369912591,), (1369912642,), (1369912652,), (1369912666,), (1369912710,), (1369912719,), (1369912724,), (1369912727,), (1369912740,), (1369912780,), (1369912960,), (1369912961,), (1369912963,), (1369912964,), (1369912967,), (1369912968,), (1369912984,), (1369912985,), (1369912988,), (1369912990,), (1369912994,), (1369912995,), (1369913023,), (1369913032,), (1369913039,), (1369913043,), (1369913047,), (1369913063,), (1369913093,), (1369913121,), (1369913136,), (1369913156,), (1369913214,), (1369913242,), (1369913562,), (1369913564,), (1369913607,), (1369913611,), (1369913634,), (1369913647,), (1369913655,), (1369913659,), (1369913666,), (1369913667,), (1369913669,), (1369913671,), (1369913803,), (1369913852,), (1369913889,), (1369913909,), (1369913925,), (1369913944,), (1369914090,), (1369914096,), (1369914099,), (1369914102,), (1369914107,), (1369914120,), (1369914588,), (1369914595,), (1369914654,), (1369914661,), (1369914727,), (1369914732,), (1369914784,), (1369914786,), (1369914822,), (1369914827,), (1369914865,), (1369914870,), (1369914980,), (1369914993,), (1369914997,), (1369915001,), (1369915005,), (1369915014,), (1369915049,), (1369915053,), (1369915055,), (1369915064,), (1369915072,), (1369915078,), (1369915156,), (1369915197,), (1369915232,), (1369915267,), (1369915302,), (1369915338,), (1369915503,), (1369915523,), (1369915544,), (1369915584,), (1369915627,), (1369915660,), (1369915813,), (1369915847,), (1369915880,), (1369915918,), (1369915949,), (1369915964,), (1369916140,), (1369916151,), (1369916158,), (1369916163,), (1369916178,), (1369916215,), (1369916632,), (1369916692,), (1369916730,), (1369916757,), (1369916804,), (1369916908,), (1369917045,), (1369917079,), (1369917124,), (1369917157,), (1369917189,), (1369917237,), (1369917577,), (1369917614,), (1369917649,), (1369917683,), (1369917698,), (1369917712,), (1369917749,), (1369917751,), (1369917752,), (1369917775,), (1369917811,), (1369917848,), (1369917976,), (1369918011,), (1369918049,), (1369918088,), (1369918114,), (1369918120,), (1369918316,), (1369918328,), (1369918330,), (1369918332,), (1369918343,), (1369918355,), (1369918393,), (1369918425,), (1369918466,), (1369918501,), (1369918537,), (1369918579,), (1369918820,), (1369918883,), (1369918941,), (1369918977,), (1369919016,), (1369919062,), (1369919143,), (1369919155,), (1369919189,), (1369919237,), (1369919277,), (1369919319,), (1369919764,), (1369919765,), (1369919813,), (1369919815,), (1369919880,), (1369919883,), (1369919947,), (1369919969,), (1369919987,), (1369920006,), (1369920027,), (1369920030,), (1369920065,), (1369920102,), (1369920147,), (1369920150,), (1369920155,), (1369920184,), (1369921137,), (1369921175,), (1369921209,), (1369921214,), (1369921218,), (1369921227,), (1369921247,), (1369921252,), (1369921258,), (1369921271,), (1369921289,), (1369921330,), (1369921463,), (1369921503,), (1369921545,), (1369921580,), (1369921612,), (1369921647,), (1369922165,), (1369922232,), (1369922277,), (1369922280,), (1369922302,), (1369922324,), (1369922372,), (1369922375,), (1369922379,), (1369922386,), (1369922393,), (1369922415,), (1369922512,), (1369922517,), (1369922521,), (1369922533,), (1369922537,), (1369922544,), (1369922670,), (1369922675,), (1369922686,), (1369922688,), (1369922726,), (1369922766,), (1369922893,), (1369922953,), (1369923000,), (1369923052,), (1369923089,), (1369923125,), (1369923330,), (1369923348,), (1369923352,), (1369923355,), (1369923377,), (1369923419,), (1369923464,), (1369923496,), (1369923529,), (1369923563,), (1369923600,), (1369923632,), (1369923854,), (1369923907,), (1369923967,), (1369924010,), (1369924058,), (1369924107,), (1369924311,), (1369924378,), (1369924447,), (1369924505,), (1369924553,), (1369924595,), (1369924764,), (1369924776,), (1369924784,), (1369924789,), (1369924803,), (1369924807,), (1369925208,), (1369925211,), (1369925246,), (1369925254,), (1369925345,), (1369925347,), (1369925445,), (1369925447,), (1369925532,), (1369925539,), (1369925581,), (1369925586,), (1369925695,), (1369925738,), (1369925778,), (1369925819,), (1369925835,), (1369925852,), (1369925972,), (1369925983,), (1369926002,), (1369926011,), (1369926032,), (1369926042,), (1369926333,), (1369926334,), (1369926337,), (1369926338,), (1369926345,), (1369926349,), (1369926353,), (1369926356,), (1369926360,), (1369926363,), (1369926372,), (1369926374,), (1369926461,), (1369926521,), (1369926594,), (1369926693,), (1369926797,), (1369926911,), (1369927668,), (1369927752,), (1369927819,), (1369927874,), (1369927911,), (1369927924,), (1369928004,), (1369928067,), (1369928118,), (1369928177,), (1369928293,), (1369923773,), (1369923793,), (1369923801,), (1369923823,), (1369923826,), (1369924906,), (1369924975,), (1369925000,), (1369925024,), (1369925051,), (1369925065,), (1369926213,), (1369926256,), (1369926280,), (1369926300,), (1369926310,), (1369926315,), (1369928431,), (1369930080,), (1369930103,), (1369930148,), (1369930156,), (1369930160,), (1369930170,), (1369931113,), (1369931183,), (1369931269,), (1369931281,), (1369931287,), (1369931365,), (1369932590,), (1369932593,), (1369932594,), (1369932635,), (1369932670,), (1369932703,), (1369934144,), (1369934207,), (1369934313,), (1369934367,), (1369934369,), (1369934424,), (1369936393,), (1369936502,), (1369936587,), (1369936672,), (1369936723,), (1369936735,), (1369938121,), (1369938129,), (1369938132,), (1369938143,), (1369938148,), (1369938150,), (1369938455,), (1369938473,), (1369938482,), (1369938486,), (1369938491,), (1369938503,), (1369939545,), (1369939554,), (1369939567,), (1369939573,), (1369939583,), (1369939591,), (1369940272,), (1369940275,), (1369940278,), (1369940290,), (1369940294,), (1369940298,), (1369940728,), (1369940748,), (1369940753,), (1369940766,), (1369940778,), (1369940790,), (1369942363,), (1369942391,), (1369942414,), (1369942428,), (1369942483,), (1369942513,), (1369942974,), (1369942980,), (1369943007,), (1369943049,), (1369943074,), (1369943086,), (1369909476,), (1369909479,), (1369909482,), (1369909499,), (1369909545,), (1369910197,), (1369910199,), (1369910200,), (1369910202,), (1369910212,), (1369910227,), (1369910838,), (1369910901,), (1369910966,), (1369911036,), (1369911079,), (1369911114,), (1369911998,), (1369912002,), (1369912003,), (1369912008,), (1369912044,), (1369912062,), (1369912825,), (1369912830,), (1369912834,), (1369912880,), (1369912925,), (1369912948,), (1369913289,), (1369913304,), (1369913316,), (1369913367,), (1369913442,), (1369913497,), (1369914175,), (1369914219,), (1369914251,), (1369914293,), (1369914338,), (1369914378,), (1369915095,), (1369915098,), (1369915107,), (1369915110,), (1369915115,), (1369915127,), (1369916096,), (1369916100,), (1369916102,), (1369916110,), (1369916113,), (1369916116,), (1369917333,), (1369917337,), (1369917348,), (1369917362,), (1369917399,), (1369917444,), (1369918141,), (1369918174,), (1369918215,), (1369918236,), (1369918247,), (1369918269,), (1369919447,), (1369919480,), (1369919513,), (1369919553,), (1369919598,), (1369919633,), (1369920436,), (1369920520,), (1369920601,), (1369920673,), (1369920770,), (1369920860,), (1369921777,), (1369921852,), (1369921926,), (1369921993,), (1369922058,), (1369922100,), (1369922558,), (1369922561,), (1369922603,), (1369922619,), (1369922621,), (1369922655,), (1369923756,), (1369928658,), (1369928691,), (1369928714,), (1369928749,), (1369928783,), (1369928808,), (1369928950,), (1369929013,), (1369929101,), (1369929207,), (1369929319,), (1369929403,), (1369929687,), (1369929742,), (1369929818,), (1369929885,), (1369929951,), (1369930002,), (1369930195,), (1369930226,), (1369930263,), (1369930291,), (1369930331,), (1369930380,), (1369930580,), (1369930632,), (1369930673,), (1369930708,), (1369930747,), (1369930780,), (1369930895,), (1369930899,), (1369930903,), (1369930912,), (1369930924,), (1369930959,), (1369931488,), (1369931503,), (1369931527,), (1369931584,), (1369931639,), (1369931671,), (1369931793,), (1369931833,), (1369931887,), (1369931940,), (1369931969,), (1369931995,), (1369932102,), (1369932155,), (1369932190,), (1369932224,), (1369932258,), (1369932298,), (1369932456,), (1369932495,), (1369932515,), (1369932526,), (1369932531,), (1369932537,), (1369932808,), (1369932824,), (1369932835,), (1369932892,), (1369932966,), (1369933066,), (1369933400,), (1369933515,), (1369933588,), (1369933657,), (1369933707,), (1369933742,), (1369933893,), (1369933931,), (1369933967,), (1369933984,), (1369934022,), (1369934036,), (1369934580,), (1369934619,), (1369934686,), (1369934745,), (1369934835,), (1369934898,), (1369935081,), (1369935145,), (1369935212,), (1369935246,), (1369935293,), (1369935352,), (1369935510,), (1369935545,), (1369935596,), (1369935611,), (1369935612,), (1369935620,), (1369935743,), (1369935799,), (1369935883,), (1369935983,), (1369936085,), (1369936182,), (1369936762,), (1369936772,), (1369936779,), (1369936813,), (1369936860,), (1369936901,), (1369937067,), (1369937100,), (1369937135,), (1369937191,), (1369937289,), (1369937356,), (1369937496,), (1369937576,), (1369937611,), (1369937649,), (1369937722,), (1369937791,), (1369938001,), (1369938022,), (1369938031,), (1369938055,), (1369938099,), (1369938104,), (1369938162,), (1369938182,), (1369938185,), (1369938187,), (1369938189,), (1369938194,), (1369938213,), (1369938221,), (1369938226,), (1369938237,), (1369938260,), (1369938261,), (1369938311,), (1369938328,), (1369938333,), (1369938347,), (1369938358,), (1369938359,), (1369938573,), (1369938584,), (1369938588,), (1369938589,), (1369938608,), (1369938654,), (1369938751,), (1369938754,), (1369938756,), (1369938776,), (1369938780,), (1369938825,), (1369939077,), (1369939141,), (1369939215,), (1369939282,), (1369939377,), (1369939425,), (1369939598,), (1369939606,), (1369939609,), (1369939612,), (1369939620,), (1369939625,), (1369939645,), (1369939650,), (1369939654,), (1369939793,), (1369939930,), (1369940119,), (1369940166,), (1369940177,), (1369940183,), (1369940188,), (1369940191,), (1369940211,), (1369940215,), (1369940234,), (1369940239,), (1369940244,), (1369940255,), (1369940257,), (1369940310,), (1369940311,), (1369940314,), (1369940315,), (1369940320,), (1369940328,), (1369940332,), (1369940337,), (1369940341,), (1369940343,), (1369940345,), (1369940346,), (1369940364,), (1369940379,), (1369940382,), (1369940388,), (1369940396,), (1369940398,), (1369940413,), (1369940453,), (1369940488,), (1369940528,), (1369940568,), (1369940603,), (1369940958,), (1369941122,), (1369941262,), (1369941323,), (1369941384,), (1369941446,), (1369941730,), (1369941804,), (1369941886,), (1369941970,), (1369942008,), (1369942058,), (1369942208,), (1369942220,), (1369942225,), (1369942236,), (1369942240,), (1369942260,), (1369942555,), (1369942566,), (1369942575,), (1369942584,), (1369942638,), (1369942679,), (1369942727,), (1369942732,), (1369942735,), (1369942739,), (1369942755,), (1369942819,), (1369942885,), (1369942896,), (1369942904,), (1369942909,), (1369942911,), (1369942923,), (1369943101,), (1369943111,), (1369943122,), (1369943125,), (1369943128,), (1369943138,), (1369943172,), (1369943175,), (1369943179,), (1369943202,), (1369943211,), (1369943213,), (1369943245,), (1369943264,), (1369943339,), (1369943384,), (1369943395,), (1369943399,), (1369943477,), (1369943519,), (1369943563,), (1369943603,), (1369943640,), (1369943699,), (1369944358,), (1369944367,), (1369944371,), (1369944375,), (1369944408,), (1369944493,), (1369944635,), (1369944672,), (1369944722,), (1369944771,), (1369944814,), (1369944880,), (1369945018,), (1369945044,), (1369945048,), (1369945051,), (1369945062,), (1369945066,), (1369945172,), (1369945286,), (1369945426,), (1369945505,), (1369945578,), (1369945696,), (1369946315,), (1369946317,), (1369946350,), (1369946351,), (1369946363,), (1369946366,), (1369946408,), (1369946412,), (1369946420,), (1369946422,), (1369946428,), (1369946429,), (1369946448,), (1369946485,), (1369946521,), (1369946531,), (1369946536,), (1369946552,), (1369946725,), (1369946728,), (1369946744,), (1369946785,), (1369946827,), (1369946877,), (1369947003,), (1369947050,), (1369947102,), (1369947193,), (1369947228,), (1369947254,), (1369947407,), (1369947492,), (1369947574,), (1369947648,), (1369947713,), (1369947767,), (1369947803,), (1369947807,), (1369947819,), (1369947825,), (1369947858,), (1369947865,), (1369948113,), (1369948154,), (1369948166,), (1369948169,), (1369948210,), (1369948236,), (1369948314,), (1369948320,), (1369948373,), (1369948390,), (1369948439,), (1369948518,), (1369948535,), (1369948575,), (1369948605,), (1369948606,), (1369948621,), (1369948622,), (1369948860,), (1369948988,), (1369949093,), (1369949142,), (1369949196,), (1369949221,), (1369949287,), (1369949304,), (1369949312,), (1369949316,), (1369949326,), (1369949329,), (1369949769,), (1369949814,), (1369949854,), (1369949897,), (1369949958,), (1369949995,), (1369950311,), (1369950395,), (1369950462,), (1369950534,), (1369950627,), (1369943965,), (1369944046,), (1369944133,), (1369944219,), (1369944257,), (1369944289,), (1369946079,), (1369946122,), (1369946130,), (1369946139,), (1369946146,), (1369946171,), (1369946631,), (1369946669,), (1369946674,), (1369946684,), (1369946695,), (1369946711,), (1369947917,), (1369947946,), (1369947988,), (1369948022,), (1369948040,), (1369948049,), (1369949405,), (1369949444,), (1369949456,), (1369949459,), (1369949463,), (1369949501,), (1369950661,), (1369952054,), (1369952096,), (1369952164,), (1369952234,), (1369952300,), (1369952388,), (1369953512,), (1369953545,), (1369953575,), (1369953612,), (1369953616,), (1369953633,), (1369954045,), (1369954103,), (1369954167,), (1369954234,), (1369954273,), (1369954305,), (1369955378,), (1369955384,), (1369955397,), (1369955405,), (1369955407,), (1369955410,), (1369955885,), (1369955917,), (1369955950,), (1369955992,), (1369956029,), (1369956068,), (1369957507,), (1369957559,), (1369957593,), (1369957629,), (1369957652,), (1369957679,), (1369958364,), (1369958433,), (1369958500,), (1369958573,), (1369958640,), (1369958707,), (1369959224,), (1369959227,), (1369959228,), (1369959231,), (1369959240,), (1369959242,), (1369960409,), (1369960448,), (1369960486,), (1369960533,), (1369960568,), (1369960605,), (1369961667,), (1369961696,), (1369961723,), (1369961756,), (1369950786,), (1369950826,), (1369950903,), (1369951000,), (1369951096,), (1369951169,), (1369951484,), (1369951606,), (1369951734,), (1369951794,), (1369951862,), (1369951899,), (1369951936,), (1369951940,), (1369951947,), (1369951952,), (1369951962,), (1369951965,), (1369952607,), (1369952677,), (1369952720,), (1369952736,), (1369952744,), (1369952779,), (1369952980,), (1369953001,), (1369953064,), (1369953114,), (1369953141,), (1369953146,), (1369953199,), (1369953244,), (1369953315,), (1369953373,), (1369953407,), (1369953443,), (1369953658,), (1369953661,), (1369953699,), (1369953728,), (1369953734,), (1369953748,), (1369953814,), (1369953828,), (1369953843,), (1369953870,), (1369953887,), (1369953892,), (1369953949,), (1369953958,), (1369953984,), (1369953991,), (1369953999,), (1369954001,), (1369954442,), (1369954473,), (1369954511,), (1369954572,), (1369954696,), (1369954889,), (1369955070,), (1369955078,), (1369955080,), (1369955106,), (1369955143,), (1369955224,), (1369955273,), (1369955284,), (1369955288,), (1369955290,), (1369955303,), (1369955311,), (1369955323,), (1369955325,), (1369955328,), (1369955332,), (1369955341,), (1369955349,), (1369955429,), (1369955434,), (1369955441,), (1369955467,), (1369955565,), (1369955663,), (1369955786,), (1369955794,), (1369955796,), (1369955798,), (1369955803,), (1369955809,), (1369955822,), (1369955832,), (1369955835,), (1369955837,), (1369955845,), (1369955847,), (1369956236,), (1369956274,), (1369956288,), (1369956292,), (1369956299,), (1369956310,), (1369956383,), (1369956427,), (1369956464,), (1369956513,), (1369956562,), (1369956599,), (1369956645,), (1369956652,), (1369956662,), (1369956682,), (1369956719,), (1369956768,), (1369957042,), (1369957087,), (1369957135,), (1369957193,), (1369957265,), (1369957314,), (1369957792,), (1369957795,), (1369957820,), (1369957824,), (1369957847,), (1369957852,), (1369957858,), (1369957873,), (1369957890,), (1369957905,), (1369957925,), (1369957943,), (1369958057,), (1369958090,), (1369958129,), (1369958166,), (1369958167,), (1369958192,), (1369958210,), (1369958222,), (1369958225,), (1369958228,), (1369958236,), (1369958237,), (1369958944,), (1369958967,), (1369958983,), (1369959003,), (1369959013,), (1369959020,), (1369959035,), (1369959042,), (1369959048,), (1369959052,), (1369959057,), (1369959059,), (1369959072,), (1369959081,), (1369959085,), (1369959141,), (1369959182,), (1369959198,), (1369959254,), (1369959255,), (1369959287,), (1369959289,), (1369959332,), (1369959335,), (1369959371,), (1369959372,), (1369959405,), (1369959408,), (1369959440,), (1369959441,), (1369959715,), (1369959810,), (1369959910,), (1369959989,), (1369960068,), (1369960107,), (1369960244,), (1369960252,), (1369960255,), (1369960272,), (1369960284,), (1369960294,), (1369960688,), (1369960690,), (1369960696,), (1369960697,), (1369960700,), (1369960706,), (1369960721,), (1369960728,), (1369960742,), (1369960747,), (1369960749,), (1369960750,), (1369960858,), (1369960905,), (1369960939,), (1369961064,), (1369961190,), (1369961317,), (1369961460,), (1369961469,), (1369961472,), (1369961500,), (1369961541,), (1369961575,), (1369961860,), (1369961861,), (1369961867,), (1369961868,), (1369961876,), (1369961877,), (1369961886,), (1369961891,), (1369961917,), (1369961925,), (1369961952,), (1369961961,), (1369962068,), (1369962149,), (1369962186,), (1369962197,), (1369962203,), (1369962213,), (1369962252,), (1369962265,), (1369962274,), (1369962286,), (1369962295,), (1369962296,), (1369962416,), (1369962420,), (1369962471,), (1369962521,), (1369962585,), (1369962654,), (1369962841,), (1369962894,), (1369962945,), (1369962981,), (1369962995,), (1369963031,), (1369963080,), (1369963111,), (1369963181,), (1369963203,), (1369963207,), (1369963209,), (1369963453,), (1369963475,), (1369963485,), (1369963491,), (1369963502,), (1369963513,), (1369963529,), (1369963555,), (1369963610,), (1369963620,), (1369963628,), (1369963642,), (1369963655,), (1369963664,), (1369963667,), (1369963684,), (1369963723,), (1369963759,), (1369963777,), (1369963780,), (1369963785,), (1369963834,), (1369963871,), (1369963910,), (1369964052,), (1369964053,), (1369964060,), (1369964061,), (1369964085,), (1369964086,), (1369964091,), (1369964093,), (1369964097,), (1369964099,), (1369964128,), (1369964130,), (1369964181,), (1369964201,), (1369964217,), (1369964219,), (1369964221,), (1369964224,), (1369964420,), (1369964456,), (1369964488,), (1369964519,), (1369964562,), (1369964627,), (1369964763,), (1369964770,), (1369964772,), (1369964776,), (1369964779,), (1369964781,), (1369964785,), (1369964793,), (1369964805,), (1369964820,), (1369964831,), (1369964847,), (1369965043,), (1369965109,), (1369965171,), (1369965252,), (1369965344,), (1369965407,), (1369965642,), (1369965650,), (1369965659,), (1369965668,), (1369965687,), (1369965700,), (1369965733,), (1369965754,), (1369965769,), (1369965780,), (1369965791,), (1369965798,), (1369966106,), (1369966111,), (1369966170,), (1369966237,), (1369966269,), (1369966352,), (1369966601,), (1369966609,), (1369966622,), (1369966648,), (1369966740,), (1369966898,), (1369967187,), (1369967227,), (1369967259,), (1369967292,), (1369967322,), (1369967363,), (1369967450,), (1369967452,), (1369967455,), (1369967478,), (1369967512,), (1369967571,), (1369967970,), (1369967971,), (1369967973,), (1369967990,), (1369967999,), (1369968032,), (1369968036,), (1369968074,), (1369968090,), (1369968127,), (1369968132,), (1369968180,), (1369968303,), (1369968341,), (1369968374,), (1369968390,), (1369968404,), (1369968412,), (1369968445,), (1369968481,), (1369968516,), (1369968560,), (1369968625,), (1369968657,), (1369969200,), (1369969212,), (1369969218,), (1369969260,), (1369969301,), (1369969340,), (1369969785,), (1369969811,), (1369969817,), (1369969826,), (1369969836,), (1369969844,), (1369961779,), (1369961813,), (1369962304,), (1369962339,), (1369962345,), (1369962350,), (1369962370,), (1369962390,), (1369963290,), (1369963349,), (1369963383,), (1369963387,), (1369963392,), (1369963401,), (1369963946,), (1369963949,), (1369963953,), (1369963959,), (1369963968,), (1369963970,), (1369964250,), (1369964297,), (1369964331,), (1369964354,), (1369964364,), (1369964383,), (1369964897,), (1369964900,), (1369964903,), (1369964906,), (1369964910,), (1369964918,), (1369965820,), (1369965821,), (1369965834,), (1369965861,), (1369965910,), (1369965998,), (1369967897,), (1369967933,), (1369967935,), (1369967937,), (1369967941,), (1369967945,), (1369968930,), (1369968991,), (1369969031,), (1369969067,), (1369969098,), (1369969133,), (1369970014,), (1369970078,), (1369970126,), (1369970161,), (1369970219,), (1369970287,), (1369970756,), (1369971561,), (1369971593,), (1369971612,), (1369971616,), (1369971648,), (1369971660,), (1369972326,), (1369972360,), (1369972392,), (1369972421,), (1369972432,), (1369972435,), (1369973373,), (1369973399,), (1369973404,), (1369973411,), (1369973414,), (1369973417,), (1369974422,), (1369974473,), (1369974478,), (1369974490,), (1369974525,), (1369974572,), (1369974906,), (1369974970,), (1369975072,), (1369970477,), (1369970530,), (1369970553,), (1369970620,), (1369970688,), (1369970976,), (1369971021,), (1369971054,), (1369971088,), (1369971127,), (1369971161,), (1369971274,), (1369971326,), (1369971370,), (1369971407,), (1369971452,), (1369971492,), (1369971668,), (1369971670,), (1369971673,), (1369971676,), (1369971681,), (1369971692,), (1369971721,), (1369971733,), (1369971755,), (1369971766,), (1369971788,), (1369971803,), (1369971912,), (1369971953,), (1369971988,), (1369972023,), (1369972064,), (1369972077,), (1369972084,), (1369972086,), (1369972116,), (1369972149,), (1369972190,), (1369972221,), (1369972453,), (1369972454,), (1369972457,), (1369972458,), (1369972462,), (1369972463,), (1369972466,), (1369972468,), (1369972471,), (1369972472,), (1369972474,), (1369972475,), (1369972478,), (1369972502,), (1369972536,), (1369972597,), (1369972667,), (1369972734,), (1369972951,), (1369973019,), (1369973094,), (1369973186,), (1369973268,), (1369973325,), (1369973469,), (1369973470,), (1369973473,), (1369973475,), (1369973496,), (1369973499,), (1369973513,), (1369973516,), (1369973518,), (1369973521,), (1369973525,), (1369973537,), (1369973572,), (1369973585,), (1369973589,), (1369973596,), (1369973615,), (1369973616,), (1369973642,), (1369973686,), (1369973788,), (1369973885,), (1369974035,), (1369974126,), (1369974595,), (1369974599,), (1369974603,), (1369974611,), (1369974615,), (1369974619,), (1369974631,), (1369974633,), (1369974644,), (1369974667,), (1369974676,), (1369974679,), (1369974686,), (1369974690,), (1369974698,), (1369974727,), (1369974733,), (1369974760,), (1369975335,), (1369975370,), (1369975421,), (1369975456,), (1369975496,), (1369975547,), (1369975585,), (1369975589,), (1369975605,), (1369975638,), (1369975657,), (1369975667,), (1369975692,), (1369975727,), (1369975742,), (1369975754,), (1369975763,), (1369975767,), (1369976115,), (1369976121,), (1369976135,), (1369976174,), (1369976188,), (1369976254,), (1369976486,), (1369976581,), (1369976656,), (1369976727,), (1369976792,), (1369976871,), (1369977072,), (1369977112,), (1369977144,), (1369977166,), (1369977170,), (1369977177,), (1369977223,), (1369977262,), (1369977267,), (1369977294,), (1369977334,), (1369977355,), (1369977839,), (1369977860,), (1369977865,), (1369977873,), (1369977891,), (1369977912,), (1369977947,), (1369977949,), (1369977982,), (1369977997,), (1369978026,), (1369978055,), (1369978182,), (1369978219,), (1369978259,), (1369978290,), (1369978294,), (1369978298,), (1369978386,), (1369978391,), (1369978394,), (1369978411,), (1369978423,), (1369978427,), (1369978891,), (1369978927,), (1369978940,), (1369978961,), (1369979005,), (1369979016,), (1369979050,), (1369979057,), (1369979060,), (1369979063,), (1369979067,), (1369979070,), (1369979073,), (1369979079,), (1369979087,), (1369979094,), (1369979118,), (1369979139,), (1369979454,), (1369979470,), (1369979551,), (1369979570,), (1369979637,), (1369979640,), (1369979642,), (1369979645,), (1369979650,), (1369979653,), (1369979662,), (1369979665,), (1369979679,), (1369979691,), (1369979695,), (1369979699,), (1369979722,), (1369979762,), (1369979789,), (1369979804,), (1369979809,), (1369979813,), (1369979822,), (1369979826,), (1369980014,), (1369980016,), (1369980036,), (1369980037,), (1369980038,), (1369980039,), (1369980042,), (1369980043,), (1369980045,), (1369980046,), (1369980050,), (1369980053,), (1369980173,), (1369980212,), (1369980247,), (1369980283,), (1369980317,), (1369980349,), (1369980443,), (1369980450,), (1369980455,), (1369980463,), (1369980471,), (1369980473,), (1369980515,), (1369980516,), (1369980518,), (1369980519,), (1369980522,), (1369980523,), (1369980527,), (1369980528,), (1369980531,), (1369980532,), (1369980535,), (1369980536,), (1369980542,), (1369980561,), (1369980563,), (1369980567,), (1369980572,), (1369980575,), (1369980586,), (1369980601,), (1369980606,), (1369980608,), (1369980618,), (1369980620,), (1369981008,), (1369981010,), (1369981012,), (1369981017,), (1369981018,), (1369981020,), (1369981024,), (1369981025,), (1369981064,), (1369981066,), (1369981098,), (1369981102,), (1369981202,), (1369981238,), (1369981274,), (1369981306,), (1369981355,), (1369981388,), (1369981457,), (1369981459,), (1369981471,), (1369981512,), (1369981546,), (1369981579,), (1369982230,), (1369982233,), (1369982236,), (1369982251,), (1369982283,), (1369982314,), (1369982399,), (1369982460,), (1369982528,), (1369982599,), (1369982665,), (1369982714,), (1369982861,), (1369982920,), (1369982936,), (1369982967,), (1369982984,), (1369982986,), (1369983395,), (1369983452,), (1369983486,), (1369983523,), (1369983586,), (1369983654,), (1369983844,), (1369983912,), (1369983982,), (1369984051,), (1369984119,), (1369984168,), (1369984182,), (1369984204,), (1369984239,), (1369984273,), (1369984305,), (1369984360,), (1369985085,), (1369985148,), (1369985196,), (1369985298,), (1369985449,), (1369985599,), (1369985930,), (1369985946,), (1369985956,), (1369986002,), (1369986045,), (1369986046,), (1369986055,), (1369986059,), (1369986061,), (1369986069,), (1369986072,), (1369986077,), (1369986761,), (1369986794,), (1369986877,), (1369986919,), (1369986930,), (1369986970,), (1369987056,), (1369987061,), (1369987095,), (1369987098,), (1369987101,), (1369987102,), (1369987165,), (1369987200,), (1369987258,), (1369987262,), (1369987270,), (1369987317,), (1369987469,), (1369987593,), (1369987723,), (1369987783,), (1369987821,), (1369987845,), (1369988655,), (1369988669,), (1369988670,), (1369988695,), (1369988725,), (1369988730,), (1369988744,), (1369988754,), (1369988755,), (1369988757,), (1369988760,), (1369988763,), (1369988770,), (1369988788,), (1369988849,), (1369988882,), (1369988923,), (1369988952,), (1369989046,), (1369989063,), (1369989076,), (1369989077,), (1369989085,), (1369989087,), (1369989452,), (1369989454,), (1369989487,), (1369989489,), (1369989522,), (1369989525,), (1369989566,), (1369989580,), (1369989624,), (1369989639,), (1369989687,), (1369989701,), (1369990539,), (1369990618,), (1369990702,), (1369990778,), (1369990894,), (1369990964,), (1369991262,), (1369991304,), (1369991354,), (1369991414,), (1369991455,), (1369975133,), (1369975171,), (1369975217,), (1369975874,), (1369975912,), (1369975967,), (1369976020,), (1369976044,), (1369976075,), (1369977425,), (1369977463,), (1369977504,), (1369977553,), (1369977616,), (1369977684,), (1369978473,), (1369978508,), (1369978542,), (1369978575,), (1369978611,), (1369978671,), (1369979168,), (1369979170,), (1369979176,), (1369979204,), (1369979224,), (1369979264,), (1369979887,), (1369979914,), (1369979920,), (1369979944,), (1369979958,), (1369979963,), (1369980478,), (1369980481,), (1369980483,), (1369980485,), (1369980496,), (1369980500,), (1369980627,), (1369980630,), (1369980640,), (1369980649,), (1369980735,), (1369980836,), (1369981880,), (1369981919,), (1369981996,), (1369982071,), (1369982113,), (1369982159,), (1369983042,), (1369983066,), (1369983097,), (1369983136,), (1369983182,), (1369983206,), (1369984525,), (1369984594,), (1369984652,), (1369984707,), (1369984754,), (1369984877,), (1369986157,), (1369986195,), (1369986247,), (1369986308,), (1369986415,), (1369986513,), (1369988210,), (1369988280,), (1369988369,), (1369988448,), (1369988513,), (1369988550,), (1369989126,), (1369989159,), (1369989190,), (1369989222,), (1369989254,), (1369989288,), (1369991502,), (1369993045,), (1369993079,), (1369993128,), (1369993130,), (1369993134,), (1369993186,), (1369994362,), (1369994370,), (1369991631,), (1369991638,), (1369991692,), (1369991694,), (1369991749,), (1369991754,), (1369991796,), (1369991824,), (1369991933,), (1369991944,), (1369992093,), (1369992115,), (1369992568,), (1369992653,), (1369992713,), (1369992757,), (1369992837,), (1369992899,), (1369993398,), (1369993494,), (1369993587,), (1369993687,), (1369993779,), (1369993870,), (1369994007,), (1369994067,), (1369994092,), (1369994096,), (1369994098,), (1369994103,), (1369994230,), (1369994282,), (1369994318,), (1369994325,), (1369994328,), (1369994332,), (1369994336,), (1369994338,), (1369994340,), (1369994343,), (1369994351,), (1369994354,), (1369994389,), (1369994392,), (1369994405,), (1369994410,), (1369994412,), (1369994414,), (1369994426,), (1369994444,), (1369994484,), (1369994518,), (1369994553,), (1369994568,), (1369994602,), (1369994604,), (1369994606,), (1369994611,), (1369994614,), (1369994616,), (1369994630,), (1369994665,), (1369994698,), (1369994749,), (1369994756,), (1369994758,), (1369994765,), (1369994767,), (1369994774,), (1369994777,), (1369994780,), (1369994783,), (1369994828,), (1369994832,), (1369994834,), (1369994841,), (1369994845,), (1369994847,), (1369994880,), (1369994889,), (1369994893,), (1369994897,), (1369994902,), (1369994905,), (1369994951,), (1369994989,), (1369995041,), (1369995088,), (1369995124,), (1369995159,), (1369995421,), (1369995425,), (1369995428,), (1369995429,), (1369995432,), (1369995434,), (1369995451,), (1369995453,), (1369995456,), (1369995459,), (1369995461,), (1369995462,), (1369995466,), (1369995470,), (1369995478,), (1369995481,), (1369995485,), (1369995487,), (1369995821,), (1369995861,), (1369995893,), (1369995925,), (1369995938,), (1369995940,), (1369995957,), (1369995962,), (1369995966,), (1369995969,), (1369995972,), (1369995976,), (1369995984,), (1369995990,), (1369995993,), (1369995999,), (1369996008,), (1369996009,), (1369996112,), (1369996116,), (1369996118,), (1369996121,), (1369996122,), (1369996128,), (1369996139,), (1369996171,), (1369996175,), (1369996195,), (1369996196,), (1369996207,), (1369996254,), (1369996264,), (1369996268,), (1369996274,), (1369996307,), (1369996334,), (1369996354,), (1369996360,), (1369996364,), (1369996372,), (1369996375,), (1369996378,), (1369996491,), (1369996533,), (1369996554,), (1369996590,), (1369996624,), (1369996626,), (1369996736,), (1369996770,), (1369996777,), (1369996810,), (1369996884,), (1369996892,), (1369996972,), (1369996976,), (1369996979,), (1369996995,), (1369997029,), (1369997063,), (1369997208,), (1369997213,), (1369997257,), (1369997261,), (1369997272,), (1369997307,), (1369997447,), (1369997490,), (1369997532,), (1369997599,), (1369997641,), (1369997681,), (1369997814,), (1369997902,), (1369997972,), (1369998045,), (1369998083,), (1369998117,), (1369998759,), (1369998810,), (1369998848,), (1369998934,), (1369998994,), (1369999035,), (1369999222,), (1369999264,), (1369999303,), (1369999343,), (1369999382,), (1369999426,), (1369999527,), (1369999532,), (1369999576,), (1369999632,), (1369999697,), (1369999760,), (1370000305,), (1370000339,), (1370000350,), (1370000381,), (1370000419,), (1370000466,), (1370000748,), (1370000783,), (1370000817,), (1370000853,), (1370000896,), (1370000955,), (1370001065,), (1370001075,), (1370001079,), (1370001093,), (1370001140,), (1370001153,), (1370001656,), (1370001659,), (1370001679,), (1370001705,), (1370001739,), (1370001783,), (1370001936,), (1370001998,), (1370002035,), (1370002080,), (1370002113,), (1370002179,), (1370002482,), (1370002593,), (1370002669,), (1370002737,), (1370002810,), (1370002901,), (1370003317,), (1370003394,), (1370003520,), (1370003651,), (1370003810,), (1370003925,), (1370004558,), (1370004559,), (1370004561,), (1370004563,), (1370004565,), (1370004567,), (1370004606,), (1370004609,), (1370004646,), (1370004649,), (1370004660,), (1370004662,), (1370004806,), (1370004869,), (1370004911,), (1370004945,), (1370004995,), (1370005059,), (1370005269,), (1370005311,), (1370005401,), (1370005477,), (1370005572,), (1370005694,), (1370007168,), (1370007283,), (1370007315,), (1370007346,), (1370007359,), (1370007363,), (1370007440,), (1370007441,), (1370007448,), (1370007449,), (1370007452,), (1370007454,), (1370007460,), (1370007461,), (1370007464,), (1370007466,), (1370007515,), (1370007532,), (1370007631,), (1370007642,), (1370007652,), (1370007706,), (1370007768,), (1370007844,), (1370008275,), (1370008406,), (1370008518,), (1370008655,), (1370008808,), (1370008915,), (1370009400,), (1370009402,), (1370009404,), (1370009405,), (1370009428,), (1370009432,), (1370009455,), (1370009459,), (1370009475,), (1370009476,), (1370009496,), (1370009503,), (1370009681,), (1370009729,), (1370009779,), (1370009820,), (1370009862,), (1370009898,), (1370010022,), (1370010069,), (1370010112,), (1370010158,), (1370010199,), (1370010234,), (1370010747,), (1370010789,), (1370010877,), (1370010939,), (1370010973,), (1370011008,), (1370011049,), (1370011054,), (1370011078,), (1370011081,), (1370011083,), (1370011107,), (1370011232,), (1370011269,), (1370011304,), (1370011342,), (1370011390,), (1370011456,), (1370012306,), (1370012389,), (1370012430,), (1370012500,), (1370012561,), (1370012643,), (1370012817,), (1370012864,), (1370012951,), (1370012979,), (1370013022,), (1370013062,), (1370013289,), (1370013372,), (1370013464,), (1370013560,), (1370013644,), (1370013713,), (1370014142,), (1370014207,), (1370014272,), (1370014311,), (1370014376,), (1370014449,), (1370014540,), (1370014548,), (1370014551,), (1370014567,), (1370014596,), (1370014600,), (1370014664,), (1370014696,), (1370014748,), (1370014820,), (1370014879,), (1370014949,), (1370016553,), (1370016642,), (1370016679,), (1370016687,), (1370016717,), (1370016739,), (1370017757,), (1370017772,), (1370017911,), (1370017930,), (1370018070,), (1370018100,), (1370018254,), (1370018283,), (1370018415,), (1370018441,), (1370019180,), (1370019295,), (1370019383,), (1370019484,), (1370019594,), (1370019674,), (1370020015,), (1370020080,), (1370020193,), (1370020268,), (1370020323,), (1370020368,), (1370020721,), (1370020725,), (1370020762,), (1370020818,), (1370020828,), (1370020843,), (1370020927,), (1370020953,), (1370020956,), (1370020966,), (1370021003,), (1370021035,), (1370021219,), (1370021283,), (1370021354,), (1370021436,), (1370021541,), (1370021591,), (1370023371,), (1370023483,), (1370023557,), (1370023638,), (1370023751,), (1370023870,), (1370024194,), (1370024232,), (1370024275,), (1370024350,), (1370024423,), (1370024523,), (1370024589,), (1370024610,), (1370024696,), (1370024835,), (1370024938,), (1370025037,), (1370025849,), (1370025858,), (1370025926,), (1370026016,), (1370026073,), (1370026116,), (1370026217,), (1370026308,), (1370026415,), (1370026522,), (1370026569,), (1370026592,), (1370026706,), (1370026728,), (1370026733,), (1370026798,), (1370026894,), (1370027001,), (1370028078,), (1370028113,), (1370028191,), (1370028274,), (1370028346,), (1370028418,), (1370028678,), (1370028729,), (1370028784,), (1370028917,), (1370029044,), (1370029170,), (1370029416,), (1370029479,), (1370029592,), (1370029699,), (1370029794,), (1370029830,), (1370031003,), (1370031103,), (1370031167,), (1370031202,), (1370031216,), (1370031251,), (1370031417,), (1370031492,), (1370031591,), (1370031676,), (1370031765,), (1370031838,), (1370032146,), (1370032200,), (1370032265,), (1370032323,), (1370032389,), (1370032460,), (1370032978,), (1370033031,), (1370033062,), (1370033088,), (1370033117,), (1370033132,), (1370033282,), (1370033327,), (1370033359,), (1370033417,), (1370033493,), (1370033628,), (1370033919,), (1370034002,), (1370034077,), (1370034182,), (1370034254,), (1370034324,), (1370034992,), (1370035042,), (1370035151,), (1370035197,), (1370035236,), (1370035268,), (1370035422,), (1370035492,), (1370035641,), (1370035749,), (1370035846,), (1370035954,), (1370036367,), (1370036469,), (1370036577,), (1370036646,), (1370036714,), (1370036782,), (1370036889,), (1370036922,), (1370036930,), (1370036935,), (1370036943,), (1370036979,), (1370037610,), (1370037632,), (1370037637,), (1370037645,), (1370037648,), (1370037656,), (1370037704,), (1370037714,), (1370037726,), (1370037786,), (1370037832,), (1370037845,), (1370037892,), (1370037913,), (1370037915,), (1370037952,), (1370037963,), (1370037978,), (1370038122,), (1370038172,), (1370038210,), (1370038244,), (1370038281,), (1370038294,), (1370038477,), (1370038516,), (1370038556,), (1370038640,), (1370038685,), (1370038763,), (1370039064,), (1370039104,), (1370039171,), (1370039257,), (1370039289,), (1370039334,), (1370040437,), (1370040652,), (1370040793,), (1370040904,), (1370041031,), (1370041126,), (1370041476,), (1370041555,), (1370041613,), (1370041646,), (1370041700,), (1370041769,), (1370041930,), (1370041990,), (1370042045,), (1370042111,), (1370042175,), (1370042244,), (1370042451,), (1370042491,), (1370042543,), (1370042581,), (1370042626,), (1370042659,), (1370043400,), (1370043507,), (1370043596,), (1370043691,), (1370043786,), (1370043856,), (1370044096,), (1370044137,), (1370044186,), (1370044227,), (1370044259,), (1370044316,), (1370044561,), (1370044642,), (1370044684,), (1370044718,), (1370044790,), (1370044853,), (1370045294,), (1370045296,), (1370045309,), (1370045313,), (1370045316,), (1370045326,), (1370045383,), (1370045392,), (1370045419,), (1370045479,), (1370045535,), (1370045603,), (1370045759,), (1370045779,), (1370045811,), (1370045824,), (1370045866,), (1370045939,), (1370046655,), (1370046725,), (1370046805,), (1370046820,), (1370046830,), (1370046834,), (1370046852,), (1370046854,), (1370046887,), (1370046923,), (1370046967,), (1370047010,), (1370047125,), (1370047182,), (1370047215,), (1370047224,), (1370047227,), (1370047236,), (1370047730,), (1370047797,), (1370047851,), (1370047884,), (1370047914,), (1370047955,), (1370048079,), (1370048138,), (1370048220,), (1370048279,), (1370048335,), (1370048425,), (1370048636,), (1370048707,), (1370048748,), (1370048789,), (1370048846,), (1370048944,), (1370049853,), (1370049876,), (1370049935,), (1370049952,), (1370049992,), (1370050060,), (1370050289,), (1370050352,), (1370050379,), (1370050445,), (1370050473,), (1370050547,), (1370050558,), (1370050609,), (1370050620,), (1370050677,), (1370050682,), (1370050721,), (1370050848,), (1370050888,), (1370050920,), (1370050925,), (1370050937,), (1370050947,), (1370051027,), (1370051035,), (1370051054,), (1370051071,), (1370051074,), (1370051078,), (1370051706,), (1370051807,), (1370051858,), (1370051897,), (1370051932,), (1370051954,), (1370052123,), (1370052172,), (1370052206,), (1370052241,), (1370052272,), (1370052306,), (1370052442,), (1370052476,), (1370052478,), (1370052482,), (1370052489,), (1370052494,), (1370052807,), (1370052828,), (1370052847,), (1370052881,), (1370052912,), (1370052974,), (1370052985,), (1370053005,), (1370053009,), (1370053037,), (1370053076,), (1370053119,), (1370053195,), (1370053293,), (1370053359,), (1370053430,), (1370053474,), (1370053531,), (1370054198,), (1370054280,), (1370054364,), (1370054431,), (1370054497,), (1370054568,), (1370055359,), (1370055423,), (1370055463,), (1370055510,), (1370055575,), (1370055680,), (1370056021,), (1370056087,), (1370056169,), (1370056232,), (1370056295,), (1370045068,), (1370045072,), (1370045097,), (1370045132,), (1370045166,), (1370046082,), (1370046150,), (1370046212,), (1370046289,), (1370046397,), (1370046465,), (1370047349,), (1370047381,), (1370047416,), (1370047455,), (1370047490,), (1370047543,), (1370049110,), (1370049224,), (1370049312,), (1370049397,), (1370049473,), (1370049549,), (1370051134,), (1370051208,), (1370051268,), (1370051313,), (1370051373,), (1370051452,), (1370052532,), (1370052552,), (1370052568,), (1370052583,), (1370052636,), (1370052677,), (1370053688,), (1370053730,), (1370053796,), (1370053867,), (1370053911,), (1370053937,), (1370011757,), (1370011799,), (1370011855,), (1370011926,), (1370013929,), (1370013999,), (1370014016,), (1370014031,), (1370014035,), (1370014042,), (1370015254,), (1370015356,), (1370015477,), (1370015605,), (1370015743,), (1370015845,), (1370016915,), (1370017021,), (1370017144,), (1370017241,), (1370017318,), (1370017402,), (1370018577,), (1370018597,), (1370020487,), (1370020531,), (1370020547,), (1370020580,), (1370020629,), (1370020682,), (1370021967,), (1370022154,), (1370022354,), (1370022541,), (1370022719,), (1370022869,), (1370025373,), (1370025424,), (1370025471,), (1370025511,), (1370025608,), (1370025711,), (1370027359,), (1370027421,), (1370027512,), (1370027614,), (1370027755,), (1370027887,), (1370030106,), (1370030198,), (1370030287,), (1370030382,), (1370030485,), (1370030591,), (1370032684,), (1370032723,), (1370032772,), (1370032841,), (1370032877,), (1370032890,), (1370034618,), (1370034730,), (1370034794,), (1370034862,), (1370034921,), (1370034958,), (1370037139,), (1370037196,), (1370037279,), (1370037345,), (1370037407,), (1370037469,), (1370037995,), (1370037999,), (1370038002,), (1370038008,), (1370038017,), (1370038020,), (1370039496,), (1370039565,), (1370039611,), (1370039654,), (1370039722,), (1370039859,), (1370042747,), (1370042787,), (1370042838,), (1370042906,), (1370042965,), (1370043100,), (1370045062,), (1369994371,), (1369994373,), (1369994374,), (1369994376,), (1369994578,), (1369994579,), (1369994580,), (1369994582,), (1369994585,), (1369994594,), (1369994786,), (1369994788,), (1369994790,), (1369994802,), (1369994805,), (1369994813,), (1369995347,), (1369995373,), (1369995380,), (1369995388,), (1369995394,), (1369995399,), (1369995516,), (1369995549,), (1369995582,), (1369995617,), (1369995658,), (1369995696,), (1369996037,), (1369996042,), (1369996046,), (1369996048,), (1369996057,), (1369996086,), (1369996393,), (1369996409,), (1369996412,), (1369996416,), (1369996430,), (1369996441,), (1369997093,), (1369997102,), (1369997141,), (1369997161,), (1369997168,), (1369997179,), (1369998304,), (1369998374,), (1369998425,), (1369998464,), (1369998528,), (1369998577,), (1370000002,), (1370000057,), (1370000108,), (1370000161,), (1370000207,), (1370000247,), (1370001267,), (1370001300,), (1370001336,), (1370001381,), (1370001441,), (1370001534,), (1370004088,), (1370004137,), (1370004199,), (1370004268,), (1370004386,), (1370004478,), (1370006141,), (1370006235,), (1370006345,), (1370006467,), (1370006566,), (1370006704,), (1370009209,), (1370009248,), (1370009283,), (1370009286,), (1370009290,), (1370009293,), (1370010388,), (1370010430,), (1370010460,), (1370010507,), (1370010579,), (1370010626,), (1370011611,), (1370011714,), (1370056569,), (1370056571,), (1370056642,), (1370056645,), (1370056712,), (1370056714,), (1370056774,), (1370056777,), (1370056854,), (1370056864,), (1370056944,), (1370056948,), (1370057093,), (1370057157,), (1370057230,), (1370057336,), (1370057448,), (1370057577,), (1370058008,), (1370058149,), (1370058284,), (1370058409,), (1370058515,), (1370058629,), (1370060288,), (1370060298,), (1370060395,), (1370060402,), (1370060496,), (1370060569,), (1370060615,), (1370060671,), (1370060696,), (1370060734,), (1370060761,), (1370060784,), (1370061018,), (1370061124,), (1370061170,), (1370061200,), (1370061208,), (1370061210,), (1370061268,), (1370061302,), (1370061341,), (1370061359,), (1370061373,), (1370061382,), (1370062188,), (1370062192,), (1370062287,), (1370062292,), (1370062386,), (1370062393,), (1370062497,), (1370062512,), (1370062670,), (1370062676,), (1370062832,), (1370062920,), (1370063342,), (1370063443,), (1370063579,), (1370063711,), (1370063805,), (1370063877,), (1370064113,), (1370064151,), (1370064191,), (1370064225,), (1370064264,), (1370064296,), (1370064656,), (1370064743,), (1370064810,), (1370064873,), (1370064927,), (1370064961,), (1370065034,), (1370065070,), (1370065094,), (1370065101,), (1370065109,), (1370065119,), (1370065148,), (1370065150,), (1370065151,), (1370065161,), (1370065167,), (1370065172,), (1370065400,), (1370065410,), (1370065501,), (1370065534,), (1370065574,), (1370065589,), (1370065594,), (1370065603,), (1370065615,), (1370065648,), (1370065687,), (1370065698,), (1370065728,), (1370065730,), (1370065734,), (1370065751,), (1370065797,), (1370065831,), (1370066426,), (1370066427,), (1370066449,), (1370066450,), (1370066455,), (1370066456,), (1370066467,), (1370066468,), (1370066475,), (1370066476,), (1370066478,), (1370066479,), (1370066488,), (1370066497,), (1370066513,), (1370066549,), (1370066567,), (1370066572,), (1370066627,), (1370066640,), (1370066645,), (1370066675,), (1370066714,), (1370066748,), (1370066976,), (1370067008,), (1370067041,), (1370067115,), (1370067163,), (1370067183,), (1370067204,), (1370067218,), (1370067222,), (1370067235,), (1370067240,), (1370067251,), (1370067400,), (1370067441,), (1370067489,), (1370067538,), (1370067577,), (1370067636,), (1370068004,), (1370068061,), (1370068133,), (1370068224,), (1370068409,), (1370068503,), (1370068903,), (1370068904,), (1370068998,), (1370068999,), (1370069093,), (1370069107,), (1370069183,), (1370069238,), (1370069291,), (1370069351,), (1370069389,), (1370069446,), (1370069750,), (1370069891,), (1370070041,), (1370070120,), (1370070174,), (1370070216,), (1370070272,), (1370070397,), (1370070511,), (1370070608,), (1370070706,), (1370070828,), (1370071789,), (1370071883,), (1370071921,), (1370071924,), (1370071933,), (1370071941,), (1370071986,), (1370072015,), (1370072062,), (1370072101,), (1370072136,), (1370072171,), (1370072366,), (1370072436,), (1370072506,), (1370072540,), (1370072573,), (1370072614,), (1370073104,), (1370073154,), (1370073192,), (1370073230,), (1370073284,), (1370073343,), (1370073425,), (1370073435,), (1370073481,), (1370073530,), (1370073570,), (1370073605,), (1370073757,), (1370073791,), (1370073840,), (1370073905,), (1370073976,), (1370074083,), (1370074617,), (1370074644,), (1370074652,), (1370074656,), (1370074689,), (1370074793,), (1370074918,), (1370074935,), (1370074975,), (1370075034,), (1370075092,), (1370075145,), (1370075211,), (1370075302,), (1370075370,), (1370075454,), (1370075481,), (1370075544,), (1370075922,), (1370076041,), (1370076147,), (1370076270,), (1370076386,), (1370076468,), (1370076767,), (1370076841,), (1370076917,), (1370077011,), (1370077035,), (1370077036,), (1370077314,), (1370077377,), (1370077439,), (1370077475,), (1370077540,), (1370077630,), (1370077811,), (1370077843,), (1370077905,), (1370077963,), (1370077982,), (1370077983,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02072025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24523081]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] map_info['map_portfolio_photo'] : {24523081: [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314, 1370077036, 1370077035, 1370077011, 1370076917, 1370076841, 1370076767, 1370076468, 1370076386, 1370076270, 1370076147, 1370076041, 1370075922, 1370075544, 1370075481, 1370075454, 1370075370, 1370075302, 1370075211, 1370075145, 1370075092, 1370075034, 1370074975, 1370074935, 1370074918, 1370074793, 1370074689, 1370074656, 1370074652, 1370074644, 1370074617, 1370074083, 1370073976, 1370073905, 1370073840, 1370073791, 1370073757]} final : True mtd_id 4302 list_pids : [1370077983, 1370077982, 1370077963, 1370077905, 1370077843, 1370077811, 1370077630, 1370077540, 1370077475, 1370077439, 1370077377, 1370077314] Looping around the photos to save general results len do output : 1 /24523081Didn'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, '3229745') ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745') ('4302', None, None, None, None, None, None, None, '3229745') ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745') 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, '24523081', 'None', None, None, None, None, '3229745'), ('4302', '24523081', '1370077983', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077982', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077963', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077905', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077843', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077811', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077630', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077540', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077475', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077439', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077377', None, None, None, None, None, '3229745'), ('4302', '24523081', '1370077314', None, None, None, None, None, '3229745')] time used for this insertion : 0.017670392990112305 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.90887188911438 time spend to save output : 0.01793837547302246 total time spend for step 5 : 2.9268102645874023 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 (3229745) 2.32user 2.40system 0:12.54elapsed 37%CPU (0avgtext+0avgdata 159316maxresident)k 1344inputs+10048outputs (71major+75069minor)pagefaults 0swaps