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 : 1858260 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 (3250806) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3250806) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723307 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3250806'] with mtr_portfolio_ids : ['24723307'] and first list_photo_ids : [] new path : /proc/1858260/ Name: python3 Umask: 0002 State: R (running) Tgid: 1858260 Ngid: 0 Pid: 1858260 PPid: 1858259 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1858260 NSpid: 1858260 NSpgid: 1857265 NSsid: 1857265 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100360 kB VmRSS: 100360 kB RssAnon: 59796 kB RssFile: 40564 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 49 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1858260', 'Ngid': '0', 'Pid': '1858260', 'PPid': '1858259', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1858260', 'NSpid': '1858260', 'NSpgid': '1857265', 'NSsid': '1857265', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100360 kB', 'VmRSS': '100360 kB', 'RssAnon': '59796 kB', 'RssFile': '40564 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '49', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '1858260', '1106864', '0', '1106864', '865616', '100360', b'', 'marlene', '3250806') 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 (24723307) 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 (3250806 ) ) 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 (24723307) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371172421, 'portfolio_id': 24723307}, {'photo_id': 1371172415, 'portfolio_id': 24723307}, {'photo_id': 1371172366, 'portfolio_id': 24723307}, {'photo_id': 1371172329, 'portfolio_id': 24723307}, {'photo_id': 1371172286, 'portfolio_id': 24723307}, {'photo_id': 1371172219, 'portfolio_id': 24723307}, {'photo_id': 1371171858, 'portfolio_id': 24723307}, {'photo_id': 1371171813, 'portfolio_id': 24723307}, {'photo_id': 1371171776, 'portfolio_id': 24723307}, {'photo_id': 1371171773, 'portfolio_id': 24723307}, {'photo_id': 1371171735, 'portfolio_id': 24723307}, {'photo_id': 1371171671, 'portfolio_id': 24723307}, {'photo_id': 1371171442, 'portfolio_id': 24723307}, {'photo_id': 1371171438, 'portfolio_id': 24723307}, {'photo_id': 1371171426, 'portfolio_id': 24723307}, {'photo_id': 1371171368, 'portfolio_id': 24723307}, {'photo_id': 1371171316, 'portfolio_id': 24723307}, {'photo_id': 1371171238, 'portfolio_id': 24723307}, {'photo_id': 1371170730, 'portfolio_id': 24723307}, {'photo_id': 1371170667, 'portfolio_id': 24723307}, {'photo_id': 1371170595, 'portfolio_id': 24723307}, {'photo_id': 1371170534, 'portfolio_id': 24723307}, {'photo_id': 1371170464, 'portfolio_id': 24723307}, {'photo_id': 1371170403, 'portfolio_id': 24723307}, {'photo_id': 1371170199, 'portfolio_id': 24723307}, {'photo_id': 1371170160, 'portfolio_id': 24723307}, {'photo_id': 1371170123, 'portfolio_id': 24723307}, {'photo_id': 1371170090, 'portfolio_id': 24723307}, {'photo_id': 1371170064, 'portfolio_id': 24723307}, {'photo_id': 1371170055, 'portfolio_id': 24723307}, {'photo_id': 1371169928, 'portfolio_id': 24723307}, {'photo_id': 1371169884, 'portfolio_id': 24723307}, {'photo_id': 1371169825, 'portfolio_id': 24723307}, {'photo_id': 1371169783, 'portfolio_id': 24723307}, {'photo_id': 1371169714, 'portfolio_id': 24723307}, {'photo_id': 1371169650, 'portfolio_id': 24723307}, {'photo_id': 1371169449, 'portfolio_id': 24723307}, {'photo_id': 1371169414, 'portfolio_id': 24723307}, {'photo_id': 1371169379, 'portfolio_id': 24723307}, {'photo_id': 1371169363, 'portfolio_id': 24723307}, {'photo_id': 1371169361, 'portfolio_id': 24723307}, {'photo_id': 1371169359, 'portfolio_id': 24723307}, {'photo_id': 1371169242, 'portfolio_id': 24723307}, {'photo_id': 1371169239, 'portfolio_id': 24723307}, {'photo_id': 1371169216, 'portfolio_id': 24723307}, {'photo_id': 1371169182, 'portfolio_id': 24723307}, {'photo_id': 1371169148, 'portfolio_id': 24723307}, {'photo_id': 1371169115, 'portfolio_id': 24723307}, {'photo_id': 1371168864, 'portfolio_id': 24723307}, {'photo_id': 1371168823, 'portfolio_id': 24723307}, {'photo_id': 1371168765, 'portfolio_id': 24723307}, {'photo_id': 1371168671, 'portfolio_id': 24723307}, {'photo_id': 1371168583, 'portfolio_id': 24723307}, {'photo_id': 1371168552, 'portfolio_id': 24723307}, {'photo_id': 1371168346, 'portfolio_id': 24723307}, {'photo_id': 1371168298, 'portfolio_id': 24723307}, {'photo_id': 1371168212, 'portfolio_id': 24723307}, {'photo_id': 1371168118, 'portfolio_id': 24723307}, {'photo_id': 1371168053, 'portfolio_id': 24723307}, {'photo_id': 1371168004, 'portfolio_id': 24723307}] map_portfolio_id_photo_id: {24723307: [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671, 1371171442, 1371171438, 1371171426, 1371171368, 1371171316, 1371171238, 1371170730, 1371170667, 1371170595, 1371170534, 1371170464, 1371170403, 1371170199, 1371170160, 1371170123, 1371170090, 1371170064, 1371170055, 1371169928, 1371169884, 1371169825, 1371169783, 1371169714, 1371169650, 1371169449, 1371169414, 1371169379, 1371169363, 1371169361, 1371169359, 1371169242, 1371169239, 1371169216, 1371169182, 1371169148, 1371169115, 1371168864, 1371168823, 1371168765, 1371168671, 1371168583, 1371168552, 1371168346, 1371168298, 1371168212, 1371168118, 1371168053, 1371168004]} ##### 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.016131877899169922 #### 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 Tue Jul 8 10:56:57 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 (24723307) 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 : 24723307 get user id for portfolio 24723307 get sub ptf for main ptf 24723307, type 3726 and hashtags ['Carton_gris', 'flou', 'metal', 'mal_croppe', 'Carton_brun', 'environnement', 'kraft', 'plastique', 'papier', 'cartonnette', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=24723307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','metal','mal_croppe','Carton_brun','environnement','kraft','plastique','papier','cartonnette','autre_refus','Teint_Dans_La_Masse')) 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`=24723307 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','metal','mal_croppe','Carton_brun','environnement','kraft','plastique','papier','cartonnette','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24723307, 'sub_port_id': 24723342, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626852, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'papier': {'main_port_id': 24723307, 'sub_port_id': 24723343, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626853, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'mal_croppe': {'main_port_id': 24723307, 'sub_port_id': 24723344, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626854, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'Carton_gris': {'main_port_id': 24723307, 'sub_port_id': 24723345, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626855, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'environnement': {'main_port_id': 24723307, 'sub_port_id': 24723346, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626856, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'plastique': {'main_port_id': 24723307, 'sub_port_id': 24723347, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626857, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 24723307, 'sub_port_id': 24723348, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626858, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'autre_refus': {'main_port_id': 24723307, 'sub_port_id': 24723349, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626859, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'metal': {'main_port_id': 24723307, 'sub_port_id': 24723350, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626860, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'Carton_brun': {'main_port_id': 24723307, 'sub_port_id': 24723351, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626861, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'kraft': {'main_port_id': 24723307, 'sub_port_id': 24723352, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626862, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}, 'flou': {'main_port_id': 24723307, 'sub_port_id': 24723353, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626863, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24723342 , 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=24723307 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 (24723342) result : ((1371170307,), (1371170310,), (1371170866,), (1371172397,), (1371173081,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723343 , 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=24723307 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 (24723343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723344 , 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=24723307 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 (24723344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723345 , 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=24723307 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 (24723345) result : ((1371170854,), (1371171658,), (1371172377,), (1371172380,), (1371172383,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723346 , 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=24723307 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 (24723346) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723347 , 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=24723307 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 (24723347) result : ((1371170895,), (1371171659,), (1371172412,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723348 , 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=24723307 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 (24723348) result : ((1371170281,), (1371170841,), (1371171657,), (1371172345,), (1371173049,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723349 , 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=24723307 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 (24723349) result : ((1371172356,), (1371173068,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723350 , 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=24723307 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 (24723350) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723351 , 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=24723307 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 (24723351) result : ((1371170879,), (1371172407,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723352 , 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=24723307 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 (24723352) result : ((1371172416,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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 24723353 , 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=24723307 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 (24723353) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24723307) result : ((1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) 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`=24723307 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','metal','mal_croppe','Carton_brun','environnement','kraft','plastique','papier','cartonnette','autre_refus','Teint_Dans_La_Masse')) 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`=24723307 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','metal','mal_croppe','Carton_brun','environnement','kraft','plastique','papier','cartonnette','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 24723307, 'sub_port_id': 24723355, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626864, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'papier': {'main_port_id': 24723307, 'sub_port_id': 24723356, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626865, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'mal_croppe': {'main_port_id': 24723307, 'sub_port_id': 24723357, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626866, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'Carton_gris': {'main_port_id': 24723307, 'sub_port_id': 24723358, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626867, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'environnement': {'main_port_id': 24723307, 'sub_port_id': 24723359, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626868, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'plastique': {'main_port_id': 24723307, 'sub_port_id': 24723360, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626869, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24723307, 'sub_port_id': 24723361, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626870, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'autre_refus': {'main_port_id': 24723307, 'sub_port_id': 24723362, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626871, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'metal': {'main_port_id': 24723307, 'sub_port_id': 24723363, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626872, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'Carton_brun': {'main_port_id': 24723307, 'sub_port_id': 24723364, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626873, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'kraft': {'main_port_id': 24723307, 'sub_port_id': 24723365, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626874, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}, 'flou': {'main_port_id': 24723307, 'sub_port_id': 24723366, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16626875, 'last_updated_at': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 10, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 10, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723350 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24723366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24723353 lien utilise dans velours : https://www.fotonower.com/velours/24723355,24723356,24723357,24723358,24723359,24723360,24723361,24723362,24723363,24723364,24723365,24723366?tags=cartonnette,papier,mal_croppe,Carton_gris,environnement,plastique,Teint_Dans_La_Masse,autre_refus,metal,Carton_brun,kraft,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24723307]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] map_info['map_portfolio_photo'] : {24723307: [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671, 1371171442, 1371171438, 1371171426, 1371171368, 1371171316, 1371171238, 1371170730, 1371170667, 1371170595, 1371170534, 1371170464, 1371170403, 1371170199, 1371170160, 1371170123, 1371170090, 1371170064, 1371170055, 1371169928, 1371169884, 1371169825, 1371169783, 1371169714, 1371169650, 1371169449, 1371169414, 1371169379, 1371169363, 1371169361, 1371169359, 1371169242, 1371169239, 1371169216, 1371169182, 1371169148, 1371169115, 1371168864, 1371168823, 1371168765, 1371168671, 1371168583, 1371168552, 1371168346, 1371168298, 1371168212, 1371168118, 1371168053, 1371168004]} final : False mtd_id 4302 list_pids : [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] Looping around the photos to save general results len do output : 1 /24723307. 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, '3250806') ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806') 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, '24723307', "{'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353}", None, None, None, None, '3250806'), ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806')] time used for this insertion : 0.015488624572753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6371629238128662 time spend to save output : 0.015787839889526367 total time spend for step 1 : 1.6529507637023926 step2:final Tue Jul 8 10:56: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 (24723307) 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 24723307 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371168346,1371168298,1371168212,1371168118,1371168053,1371168004,1371168864,1371168823,1371168765,1371168671,1371168583,1371168552,1371169242,1371169239,1371169216,1371169182,1371169148,1371169115,1371169449,1371169414,1371169379,1371169363,1371169361,1371169359,1371169928,1371169884,1371169825,1371169783,1371169714,1371169650,1371170199,1371170160,1371170123,1371170090,1371170064,1371170055,1371170730,1371170667,1371170595,1371170534,1371170464,1371170403,1371171442,1371171438,1371171426,1371171368,1371171316,1371171238,1371171858,1371171813,1371171776,1371171773,1371171735,1371171671,1371172421,1371172415,1371172366,1371172329,1371172286,1371172219); 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([24723307]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} new output for save of step final : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] map_info['map_portfolio_photo'] : {24723307: [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671, 1371171442, 1371171438, 1371171426, 1371171368, 1371171316, 1371171238, 1371170730, 1371170667, 1371170595, 1371170534, 1371170464, 1371170403, 1371170199, 1371170160, 1371170123, 1371170090, 1371170064, 1371170055, 1371169928, 1371169884, 1371169825, 1371169783, 1371169714, 1371169650, 1371169449, 1371169414, 1371169379, 1371169363, 1371169361, 1371169359, 1371169242, 1371169239, 1371169216, 1371169182, 1371169148, 1371169115, 1371168864, 1371168823, 1371168765, 1371168671, 1371168583, 1371168552, 1371168346, 1371168298, 1371168212, 1371168118, 1371168053, 1371168004]} final : False mtd_id 4302 list_pids : [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] Looping around the photos to save general results len do output : 12 /1371172421.Didn't retrieve data . /1371172415.Didn't retrieve data . /1371172366.Didn't retrieve data . /1371172329.Didn't retrieve data . /1371172286.Didn't retrieve data . /1371172219.Didn't retrieve data . /1371171858.Didn't retrieve data . /1371171813.Didn't retrieve data . /1371171776.Didn't retrieve data . /1371171773.Didn't retrieve data . /1371171735.Didn't retrieve data . /1371171671.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, '3250806') ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806') 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', '24723307', '1371172421', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371172415', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371172366', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371172329', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371172286', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371172219', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171858', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171813', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171776', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171773', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171735', '0.029015676523835746', None, None, None, None, '3250806'), ('4302', '24723307', '1371171671', '0.029015676523835746', None, None, None, None, '3250806')] time used for this insertion : 0.017435073852539062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06881403923034668 time spend to save output : 0.01799631118774414 total time spend for step 2 : 0.08681035041809082 step3:velours_tree Tue Jul 8 10:56: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 complete output_args for input 0 : {24723307: [{'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353}]} input_args_next_step : {24723307: ()} output_args : {24723307: [{'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353}]} args : 24723307 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 : ({'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24723307) 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([24723307]) 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.2830533981323242 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.28310561180114746 step4:send_mail_cod Tue Jul 8 10:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} input_args_next_step : {1371172421: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172421 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172415 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172366 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172329 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172286 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371172219 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171858 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171813 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171776 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171773 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171735 depend.output_id : 0 input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ()} output_args : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',)} args : 1371171671 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 : {24723307: [{'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353}]} input_args_next_step : {1371172421: ('0.029015676523835746',), 1371172415: ('0.029015676523835746',), 1371172366: ('0.029015676523835746',), 1371172329: ('0.029015676523835746',), 1371172286: ('0.029015676523835746',), 1371172219: ('0.029015676523835746',), 1371171858: ('0.029015676523835746',), 1371171813: ('0.029015676523835746',), 1371171776: ('0.029015676523835746',), 1371171773: ('0.029015676523835746',), 1371171735: ('0.029015676523835746',), 1371171671: ('0.029015676523835746',), 24723307: ()} output_args : {24723307: [{'cartonnette': 24723342, 'papier': 24723343, 'mal_croppe': 24723344, 'Carton_gris': 24723345, 'environnement': 24723346, 'plastique': 24723347, 'Teint_Dans_La_Masse': 24723348, 'autre_refus': 24723349, 'metal': 24723350, 'Carton_brun': 24723351, 'kraft': 24723352, 'flou': 24723353}]} args : 24723307 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.029015676523835746',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24723307) 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 (1371172421,1371172415,1371172366,1371172329,1371172286,1371172219,1371171858,1371171813,1371171776,1371171773,1371171735,1371171671) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371171671 begin to download photo : 1371171776 begin to download photo : 1371172219 begin to download photo : 1371172366 download finish for photo 1371171776 begin to download photo : 1371171813 download finish for photo 1371171671 begin to download photo : 1371171735 download finish for photo 1371172366 begin to download photo : 1371172415 download finish for photo 1371172219 begin to download photo : 1371172286 download finish for photo 1371171735 begin to download photo : 1371171773 download finish for photo 1371171813 begin to download photo : 1371171858 download finish for photo 1371172286 begin to download photo : 1371172329 download finish for photo 1371172415 begin to download photo : 1371172421 download finish for photo 1371171858 download finish for photo 1371171773 download finish for photo 1371172329 download finish for photo 1371172421 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_P24723307_08-07-2025_10_57_00.pdf 24723342 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=24723342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371170307: '1751964686_3869513_1371168864_15ed5bbc67fa0b88f8195e970242dd8c_rle_crop_3875785950_0.png', 1371170310: '1751964686_3869513_1371168823_8a03f12da02a5ec94ef36a61490017ff_rle_crop_3875785971_0.png', 1371170866: '1751964726_3133946_1371168053_86b1bd7dd5b5fcafd57a3a4952bb7a8f_rle_crop_3875786912_0.png', 1371172397: '1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802087_0.png', 1371173081: '1751964965_3141025_1371169928_4c49ef0c273401dbcf987eb204114af6_rle_crop_3875806356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/412b52d15aeb6272f9b66f15f6c74b56_54797926.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/884624b1844241145e8bdb74e1ab60d5_90083946.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/20bfc880ed8cc203eedfc9be234b66af_73364982.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/468b2e17fbbeb51895996e386f6997ab_7996249.png change filename to text .imagette247233421751965020/ imagette247233421751965020/1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802087_0.png.png imagette247233421751965020/1751964686_3869513_1371168823_8a03f12da02a5ec94ef36a61490017ff_rle_crop_3875785971_0.png.png imagette247233421751965020/1751964686_3869513_1371168864_15ed5bbc67fa0b88f8195e970242dd8c_rle_crop_3875785950_0.png.png imagette247233421751965020/1751964965_3141025_1371169928_4c49ef0c273401dbcf987eb204114af6_rle_crop_3875806356_0.png.png imagette247233421751965020/1751964726_3133946_1371168053_86b1bd7dd5b5fcafd57a3a4952bb7a8f_rle_crop_3875786912_0.png.png imagette247233441751965020/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ba2e4c05b829f15588aa1546469d176e_72218567.png imagette247233421751965020 24723344 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=24723344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247233441751965020 24723347 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=24723347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371170895: '1751964726_3133946_1371168212_d3de4d60446449b35d954263737375c2_rle_crop_3875786655_0.png', 1371171659: '1751964806_3875468_1371169239_10c2bf30a2b31e1b71d3becb35eb7e87_rle_crop_3875799412_0.png', 1371172412: '1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802083_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b880dcb1166ecf94b1ef8df553fa32e2_26087384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/02cab9dc87df9d8e9eed2325a7aab025_37098709.png change filename to text .imagette247233471751965020/ imagette247233471751965020/1751964726_3133946_1371168212_d3de4d60446449b35d954263737375c2_rle_crop_3875786655_0.png.png imagette247233471751965020/1751964806_3875468_1371169239_10c2bf30a2b31e1b71d3becb35eb7e87_rle_crop_3875799412_0.png.png imagette247233471751965020/1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802083_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3fb99dc0a311929cc8d94557f2cd275d_47483729.png imagette247233471751965020 24723349 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=24723349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371172356: '1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802084_0.png', 1371173068: '1751964965_3141025_1371169783_c191af21997427068e12efa14f4d226e_rle_crop_3875809474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a6f665896efa1529b51162b588596905_12899362.png change filename to text .imagette247233491751965020/ imagette247233491751965020/1751964864_3878315_1371170199_085b95117cbf15b1d2eb7051c22fd7f5_rle_crop_3875802084_0.png.png imagette247233491751965020/1751964965_3141025_1371169783_c191af21997427068e12efa14f4d226e_rle_crop_3875809474_0.png.png imagette247233501751965021/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ef086bca6aa5aeb517bc9ac24e9af4c6_95479656.png imagette247233491751965020 24723350 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=24723350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247233501751965021 24723352 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=24723352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371172416: '1751964864_3878315_1371170064_ec070763703e4b5922854b99db64fb4c_rle_crop_3875802168_0.png'} change filename to text .imagette247233521751965021/ imagette247233521751965021/1751964864_3878315_1371170064_ec070763703e4b5922854b99db64fb4c_rle_crop_3875802168_0.png.png imagette247233531751965021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/df8082337ab3df8e07b73d716455fab3_83066067.png imagette247233521751965021 24723353 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=24723353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247233531751965021 24723345 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=24723345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371170854: '1751964726_3133946_1371168346_9b2902cec256d65c4d2a250270256152_rle_crop_3875786630_0.png', 1371171658: '1751964806_3875468_1371169216_4f3ead7efc2cfefd0ee48b9c6216b1b3_rle_crop_3875799419_0.png', 1371172377: '1751964864_3878315_1371170123_a8e10676bd3c9c338f1b9248e657e1c3_rle_crop_3875802116_0.png', 1371172380: '1751964864_3878315_1371170090_e883e7eabb1d03da928c7a77217d3f55_rle_crop_3875802127_0.png', 1371172383: '1751964864_3878315_1371170064_ec070763703e4b5922854b99db64fb4c_rle_crop_3875802169_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/98952ae379bc1cdd55dbea5b45c392bf_96838571.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ae4ea650bc7d93e03ab291dc41060431_23391649.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/523e48af384828aa8ab51a97485f294e_47578992.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a8879e27c908739fb404adbb4076c854_17764698.png change filename to text .imagette247233451751965021/ imagette247233451751965021/1751964864_3878315_1371170123_a8e10676bd3c9c338f1b9248e657e1c3_rle_crop_3875802116_0.png.png imagette247233451751965021/1751964864_3878315_1371170090_e883e7eabb1d03da928c7a77217d3f55_rle_crop_3875802127_0.png.png imagette247233451751965021/1751964726_3133946_1371168346_9b2902cec256d65c4d2a250270256152_rle_crop_3875786630_0.png.png imagette247233451751965021/1751964806_3875468_1371169216_4f3ead7efc2cfefd0ee48b9c6216b1b3_rle_crop_3875799419_0.png.png imagette247233451751965021/1751964864_3878315_1371170064_ec070763703e4b5922854b99db64fb4c_rle_crop_3875802169_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/42ee9d66c354d9dad5b1052f575aff31_6592370.png imagette247233451751965021 24723348 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=24723348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371170281: '1751964686_3869513_1371168765_0595776d86529d8f8ce67b5a277a434f_rle_crop_3875785986_0.png', 1371170841: '1751964726_3133946_1371168053_86b1bd7dd5b5fcafd57a3a4952bb7a8f_rle_crop_3875786910_0.png', 1371171657: '1751964806_3875468_1371169115_30bf0a63454e2f5de1f12c0230b9d15f_rle_crop_3875800014_0.png', 1371172345: '1751964864_3878315_1371170160_e4be557a727d0e5dd839cb34db788ab1_rle_crop_3875802098_0.png', 1371173049: '1751964965_3141025_1371169928_4c49ef0c273401dbcf987eb204114af6_rle_crop_3875806358_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/5c636abd4b5aa8bec0416865f4bcd15e_68906305.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/7f8fe7e42f53dcb4b7097ac9fa2f690b_21722862.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/672e5019d64480dab743760db7b87c18_56966019.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4c1d6cd39cafa41533bea6f1f96214c1_85576505.png change filename to text .imagette247233481751965021/ imagette247233481751965021/1751964965_3141025_1371169928_4c49ef0c273401dbcf987eb204114af6_rle_crop_3875806358_0.png.png imagette247233481751965021/1751964864_3878315_1371170160_e4be557a727d0e5dd839cb34db788ab1_rle_crop_3875802098_0.png.png imagette247233481751965021/1751964726_3133946_1371168053_86b1bd7dd5b5fcafd57a3a4952bb7a8f_rle_crop_3875786910_0.png.png imagette247233481751965021/1751964806_3875468_1371169115_30bf0a63454e2f5de1f12c0230b9d15f_rle_crop_3875800014_0.png.png imagette247233481751965021/1751964686_3869513_1371168765_0595776d86529d8f8ce67b5a277a434f_rle_crop_3875785986_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/26232738514e83e105215fad8b40a367_42848535.png imagette247233481751965021 24723351 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=24723351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371170879: '1751964726_3133946_1371168004_4bdb316c4a1fdfc0293fbda58cc4a4ba_rle_crop_3875786923_0.png', 1371172407: '1751964864_3878315_1371170055_78257a541600845a646b5f871ca55dc5_rle_crop_3875802187_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/e737afbf282601fd20060446a918dfec_92159071.png change filename to text .imagette247233511751965021/ imagette247233511751965021/1751964864_3878315_1371170055_78257a541600845a646b5f871ca55dc5_rle_crop_3875802187_0.png.png imagette247233511751965021/1751964726_3133946_1371168004_4bdb316c4a1fdfc0293fbda58cc4a4ba_rle_crop_3875786923_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/38a30b021065f93d27f0037867297399_98776470.png imagette247233511751965021 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24723307 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24723355,24723356,24723357,24723358,24723359,24723360,24723361,24723362,24723363,24723364,24723365,24723366?tags=cartonnette,papier,mal_croppe,Carton_gris,environnement,plastique,Teint_Dans_La_Masse,autre_refus,metal,Carton_brun,kraft,flou your option no_mail is active, we will not send the real mail to your client args[1371172421] : ('0.029015676523835746',) no score found for photo 1371172421 We are sending mail with results at report@fotonower.com args[1371172415] : ('0.029015676523835746',) no score found for photo 1371172415 We are sending mail with results at report@fotonower.com args[1371172366] : ('0.029015676523835746',) no score found for photo 1371172366 We are sending mail with results at report@fotonower.com args[1371172329] : ('0.029015676523835746',) no score found for photo 1371172329 We are sending mail with results at report@fotonower.com args[1371172286] : ('0.029015676523835746',) no score found for photo 1371172286 We are sending mail with results at report@fotonower.com args[1371172219] : ('0.029015676523835746',) no score found for photo 1371172219 We are sending mail with results at report@fotonower.com args[1371171858] : ('0.029015676523835746',) no score found for photo 1371171858 We are sending mail with results at report@fotonower.com args[1371171813] : ('0.029015676523835746',) no score found for photo 1371171813 We are sending mail with results at report@fotonower.com args[1371171776] : ('0.029015676523835746',) no score found for photo 1371171776 We are sending mail with results at report@fotonower.com args[1371171773] : ('0.029015676523835746',) no score found for photo 1371171773 We are sending mail with results at report@fotonower.com args[1371171735] : ('0.029015676523835746',) no score found for photo 1371171735 We are sending mail with results at report@fotonower.com args[1371171671] : ('0.029015676523835746',) no score found for photo 1371171671 We are sending mail with results at report@fotonower.com refus_total : 0.029015676523835746 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=24723307 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_P24723307_08-07-2025_10_57_00.pdf results_Auto_P24723307_08-07-2025_10_57_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_10_57_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','24723307','results_Auto_P24723307_08-07-2025_10_57_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_10_57_00.pdf','pdf','','0.16','0.029015676523835746') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24723307]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] map_info['map_portfolio_photo'] : {24723307: [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671, 1371171442, 1371171438, 1371171426, 1371171368, 1371171316, 1371171238, 1371170730, 1371170667, 1371170595, 1371170534, 1371170464, 1371170403, 1371170199, 1371170160, 1371170123, 1371170090, 1371170064, 1371170055, 1371169928, 1371169884, 1371169825, 1371169783, 1371169714, 1371169650, 1371169449, 1371169414, 1371169379, 1371169363, 1371169361, 1371169359, 1371169242, 1371169239, 1371169216, 1371169182, 1371169148, 1371169115, 1371168864, 1371168823, 1371168765, 1371168671, 1371168583, 1371168552, 1371168346, 1371168298, 1371168212, 1371168118, 1371168053, 1371168004]} final : False mtd_id 4302 list_pids : [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] 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, '3250806') ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806') 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', '24723307', '1371172421', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806')] time used for this insertion : 0.015099525451660156 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8766286373138428 time spend to save output : 0.015330791473388672 total time spend for step 4 : 2.8919594287872314 step5:split_time_score Tue Jul 8 10:57:02 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 : ['24723307'] 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 : [('24723307',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24723307) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371171776: {'path': 'temp/1751965020_1858260_1371171776_e7f070f3841ac49b6edd5d3958434bf9.jpg', 'extension': 'jpg'}, 1371171813: {'path': 'temp/1751965020_1858260_1371171813_dd2a9bc547e286803973030b18cc97d9.jpg', 'extension': 'jpg'}, 1371171858: {'path': 'temp/1751965020_1858260_1371171858_741ef79c66a2f1abb7a06b89c5905ea9.jpg', 'extension': 'jpg'}, 1371171671: {'path': 'temp/1751965020_1858260_1371171671_5e090099c510f7ae36f35457802fb0c3.jpg', 'extension': 'jpg'}, 1371171735: {'path': 'temp/1751965020_1858260_1371171735_c1d8c0244d67ed80f604278fb484fd8a.jpg', 'extension': 'jpg'}, 1371171773: {'path': 'temp/1751965020_1858260_1371171773_22f62639eb5dd535149d269fad7d7a9d.jpg', 'extension': 'jpg'}, 1371172219: {'path': 'temp/1751965020_1858260_1371172219_eb51e83efccc81ed05e45ea8f9bb8dfb.jpg', 'extension': 'jpg'}, 1371172286: {'path': 'temp/1751965020_1858260_1371172286_8530c41a0854089edd6e82be77d5ee72.jpg', 'extension': 'jpg'}, 1371172329: {'path': 'temp/1751965020_1858260_1371172329_2055a92c70991544a354643f72fab92b.jpg', 'extension': 'jpg'}, 1371172366: {'path': 'temp/1751965020_1858260_1371172366_eb4acd818ac51ece906c0b812da7a3e6.jpg', 'extension': 'jpg'}, 1371172415: {'path': 'temp/1751965020_1858260_1371172415_3f5dc3b4006fed84cdf36093e038d63f.jpg', 'extension': 'jpg'}, 1371172421: {'path': 'temp/1751965020_1858260_1371172421_c757cd52a161b0e315fb0931b29206c5.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 = 24723307; (('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 = 24723307 group by h (('10', 60),) 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=24723307 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 (24723307) 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 (24723307) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24723307 Nombre de photos uploadées : 60 / 23040 (0%) 08072025 24723307 Nombre de photos taguées (types de déchets): 0 / 60 (0%) 08072025 24723307 Nombre de photos taguées (volume) : 0 / 60 (0%) [{'photo_id': 1371168346, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/9b2902cec256d65c4d2a250270256152.jpg', 'username': None, 'uploaded_at': 1751964363, 'text': 'image_08072025_10_45_04_010149m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371168298, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a5621bd4d6cd048aa37fe19a8d6f6abe.jpg', 'username': None, 'uploaded_at': 1751964363, 'text': 'image_08072025_10_45_14_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371168212, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/d3de4d60446449b35d954263737375c2.jpg', 'username': None, 'uploaded_at': 1751964363, 'text': 'image_08072025_10_45_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371168118, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3b4e9c266908091f82f323156b1ab88f.jpg', 'username': None, 'uploaded_at': 1751964363, 'text': 'image_08072025_10_45_35_010136m0.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.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034165382385253906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24723307, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03047633171081543 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12279309, '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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12279310, '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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12279311, '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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12279312, '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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12279313, '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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24704667, 'dashboard_result_id': 12279314, '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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24705055, 'dashboard_result_id': 12279315, '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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24705431, 'dashboard_result_id': 12279316, '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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24706018, 'dashboard_result_id': 12279317, '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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24706657, 'dashboard_result_id': 12279318, '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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24707037, 'dashboard_result_id': 12279319, '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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24707471, 'dashboard_result_id': 12279320, '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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24707886, 'dashboard_result_id': 12279321, '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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24708456, 'dashboard_result_id': 12279322, '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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24708864, 'dashboard_result_id': 12279323, '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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24709305, 'dashboard_result_id': 12279324, '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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24709706, 'dashboard_result_id': 12279325, '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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24710277, 'dashboard_result_id': 12279326, '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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24710641, 'dashboard_result_id': 12279327, '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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24711106, 'dashboard_result_id': 12279328, '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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24711540, 'dashboard_result_id': 12279329, '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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24712059, 'dashboard_result_id': 12279330, '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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24712470, 'dashboard_result_id': 12279331, '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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24712908, 'dashboard_result_id': 12279332, '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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24713368, 'dashboard_result_id': 12279333, '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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24713857, 'dashboard_result_id': 12279334, '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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24714245, 'dashboard_result_id': 12279335, '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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24714691, 'dashboard_result_id': 12279336, '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_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24715147, 'dashboard_result_id': 12279337, '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_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24716070, 'dashboard_result_id': 12279338, '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_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24716628, 'dashboard_result_id': 12279339, '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_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24717173, 'dashboard_result_id': 12279340, '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_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24717751, 'dashboard_result_id': 12279341, '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_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24718421, 'dashboard_result_id': 12279342, '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_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24718960, 'dashboard_result_id': 12279343, '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_P24718960_08-07-2025_08_40_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24719549, 'dashboard_result_id': 12279344, '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_P24719549_08-07-2025_10_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719567, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24720018, 'dashboard_result_id': 12279345, '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_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24721716, 'dashboard_result_id': 12279346, '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_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1969339, 'mtr_portfolio_id': 24723307, 'dashboard_result_id': 12279347, '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_P24723307_08-07-2025_10_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, '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 = 24702229 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': 3249205, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 39), 'result': '0.03439958030371631', 'result_long': None, 'result_double': None}] Qualite : 0.03439958030371631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1969339 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279309, 0.03439958030371631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_06_20_43.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3249206, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 6, 20, 59), 'result': '0.029852122284747536', 'result_long': None, 'result_double': None}] Qualite : 0.029852122284747536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1969339 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279310, 0.029852122284747536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_06_21_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3249207, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 27), 'result': '0.036019155894893067', 'result_long': None, 'result_double': None}] Qualite : 0.036019155894893067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1969339 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279311, 0.036019155894893067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_06_21_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3249208, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 6, 21, 56), 'result': '0.03227754957319547', 'result_long': None, 'result_double': None}] Qualite : 0.03227754957319547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1969339 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279312, 0.03227754957319547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_06_21_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3249209, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 6, 22, 31), 'result': '0.054244446119892195', 'result_long': None, 'result_double': None}] Qualite : 0.054244446119892195 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1969339 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279313, 0.054244446119892195, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_06_22_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24704667 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': 3249210, 'mtr_portfolio_id': 24704667, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 31), 'result': '0.0511404306075878', 'result_long': None, 'result_double': None}] Qualite : 0.0511404306075878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704667 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704667 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_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, 'pht': 3726}}" where mtr_portfolio_id = 24704667 and dashboard_run_id = 1969339 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`=24704667 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279314, 0.0511404306075878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704667_08-07-2025_06_23_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24704690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704699, '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 = 24705055 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': 3249211, 'mtr_portfolio_id': 24705055, 'created_at': datetime.datetime(2025, 7, 8, 6, 23, 58), 'result': '0.05021798049816016', 'result_long': None, 'result_double': None}] Qualite : 0.05021798049816016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705055 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705055 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_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, 'pht': 3726}}" where mtr_portfolio_id = 24705055 and dashboard_run_id = 1969339 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`=24705055 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279315, 0.05021798049816016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705055_08-07-2025_06_24_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24705082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705093, '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 = 24705431 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': 3249212, 'mtr_portfolio_id': 24705431, 'created_at': datetime.datetime(2025, 7, 8, 6, 24, 57), 'result': '0.035253266256025644', 'result_long': None, 'result_double': None}] Qualite : 0.035253266256025644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24705431 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24705431 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_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, 'pht': 3726}}" where mtr_portfolio_id = 24705431 and dashboard_run_id = 1969339 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`=24705431 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279316, 0.035253266256025644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24705431_08-07-2025_06_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24705444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24705445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24705446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24705448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24705449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24705450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24705452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24705453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24705454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24705456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24705457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24705458, '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 = 24706018 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': 3249213, 'mtr_portfolio_id': 24706018, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 27), 'result': '0.04718973249228311', 'result_long': None, 'result_double': None}] Qualite : 0.04718973249228311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706018 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_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, 'pht': 3726}}" where mtr_portfolio_id = 24706018 and dashboard_run_id = 1969339 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`=24706018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279317, 0.04718973249228311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706018_08-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706057, '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 = 24706657 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': 3249214, 'mtr_portfolio_id': 24706657, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 38), 'result': '0.05936192136152819', 'result_long': None, 'result_double': None}] Qualite : 0.05936192136152819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24706657 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24706657 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_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, 'pht': 3726}}" where mtr_portfolio_id = 24706657 and dashboard_run_id = 1969339 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`=24706657 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279318, 0.05936192136152819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24706657_08-07-2025_06_25_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24706684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24706685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24706686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24706687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24706688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24706689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24706690, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24706691, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24706692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24706693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24706694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24706695, '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 = 24707037 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': 3249215, 'mtr_portfolio_id': 24707037, 'created_at': datetime.datetime(2025, 7, 8, 6, 25, 57), 'result': '0.047344868686948', 'result_long': None, 'result_double': None}] Qualite : 0.047344868686948 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707037 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707037 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_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, 'pht': 3726}}" where mtr_portfolio_id = 24707037 and dashboard_run_id = 1969339 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`=24707037 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279319, 0.047344868686948, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707037_08-07-2025_06_26_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707075, '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 = 24707471 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': 3249216, 'mtr_portfolio_id': 24707471, 'created_at': datetime.datetime(2025, 7, 8, 6, 26, 27), 'result': '0.04386404503174259', 'result_long': None, 'result_double': None}] Qualite : 0.04386404503174259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707471 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_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, 'pht': 3726}}" where mtr_portfolio_id = 24707471 and dashboard_run_id = 1969339 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`=24707471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279320, 0.04386404503174259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707471_08-07-2025_06_26_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24707485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707486, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707490, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707494, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707496, '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 = 24707886 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': 3249217, 'mtr_portfolio_id': 24707886, 'created_at': datetime.datetime(2025, 7, 8, 6, 27, 28), 'result': '0.03575609201014095', 'result_long': None, 'result_double': None}] Qualite : 0.03575609201014095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24707886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24707886 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_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, 'pht': 3726}}" where mtr_portfolio_id = 24707886 and dashboard_run_id = 1969339 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`=24707886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279321, 0.03575609201014095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24707886_08-07-2025_06_27_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24707915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24707916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24707917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24707918, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24707919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24707920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24707921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24707922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24707923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24707924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24707925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24707926, '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 = 24708456 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': 3249218, 'mtr_portfolio_id': 24708456, 'created_at': datetime.datetime(2025, 7, 8, 6, 28), 'result': '0.040077296222902986', 'result_long': None, 'result_double': None}] Qualite : 0.040077296222902986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708456 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708456 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_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, 'pht': 3726}}" where mtr_portfolio_id = 24708456 and dashboard_run_id = 1969339 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`=24708456 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279322, 0.040077296222902986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708456_08-07-2025_06_28_04.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708485, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708490, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708495, '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 = 24708864 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': 3249219, 'mtr_portfolio_id': 24708864, 'created_at': datetime.datetime(2025, 7, 8, 6, 28, 28), 'result': '0.05241112392920958', 'result_long': None, 'result_double': None}] Qualite : 0.05241112392920958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24708864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24708864 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_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, 'pht': 3726}}" where mtr_portfolio_id = 24708864 and dashboard_run_id = 1969339 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`=24708864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279323, 0.05241112392920958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24708864_08-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24708869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24708870, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24708871, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24708872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24708873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24708874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24708875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24708876, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24708877, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24708878, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24708879, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24708880, '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 = 24709305 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': 3249220, 'mtr_portfolio_id': 24709305, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 30), 'result': '0.027266168628190587', 'result_long': None, 'result_double': None}] Qualite : 0.027266168628190587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709305 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_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, 'pht': 3726}}" where mtr_portfolio_id = 24709305 and dashboard_run_id = 1969339 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`=24709305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279324, 0.027266168628190587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709305_08-07-2025_06_29_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709320, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709323, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709324, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709327, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24709328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709330, '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 = 24709706 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': 3249221, 'mtr_portfolio_id': 24709706, 'created_at': datetime.datetime(2025, 7, 8, 6, 29, 59), 'result': '0.039416608539746385', 'result_long': None, 'result_double': None}] Qualite : 0.039416608539746385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24709706 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24709706 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_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, 'pht': 3726}}" where mtr_portfolio_id = 24709706 and dashboard_run_id = 1969339 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`=24709706 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279325, 0.039416608539746385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24709706_08-07-2025_06_30_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24709771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24709772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24709773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24709774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24709775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24709776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24709777, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24709778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24709779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24709780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24709781, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24709782, '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 = 24710277 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': 3249222, 'mtr_portfolio_id': 24710277, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 30), 'result': '0.029166659610018672', 'result_long': None, 'result_double': None}] Qualite : 0.029166659610018672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710277 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_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, 'pht': 3726}}" where mtr_portfolio_id = 24710277 and dashboard_run_id = 1969339 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`=24710277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279326, 0.029166659610018672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710277_08-07-2025_06_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710292, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24710295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710303, '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 = 24710641 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': 3249223, 'mtr_portfolio_id': 24710641, 'created_at': datetime.datetime(2025, 7, 8, 6, 30, 38), 'result': '0.022723499448938', 'result_long': None, 'result_double': None}] Qualite : 0.022723499448938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24710641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24710641 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_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, 'pht': 3726}}" where mtr_portfolio_id = 24710641 and dashboard_run_id = 1969339 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`=24710641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279327, 0.022723499448938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24710641_08-07-2025_06_30_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24710668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24710669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24710670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24710671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24710672, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24710673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24710674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24710675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24710676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24710677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24710678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24710679, '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 = 24711106 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': 3249224, 'mtr_portfolio_id': 24711106, 'created_at': datetime.datetime(2025, 7, 8, 6, 31, 29), 'result': '0.022118563344150313', 'result_long': None, 'result_double': None}] Qualite : 0.022118563344150313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711106 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_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, 'pht': 3726}}" where mtr_portfolio_id = 24711106 and dashboard_run_id = 1969339 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`=24711106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279328, 0.022118563344150313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711106_08-07-2025_06_31_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24711132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711143, '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 = 24711540 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': 3249034, 'mtr_portfolio_id': 24711540, 'created_at': datetime.datetime(2025, 7, 8, 5, 16, 57), 'result': '0.018584028979821202', 'result_long': None, 'result_double': None}] Qualite : 0.018584028979821202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24711540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24711540 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_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, 'pht': 3726}}" where mtr_portfolio_id = 24711540 and dashboard_run_id = 1969339 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`=24711540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279329, 0.018584028979821202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24711540_08-07-2025_05_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24711568, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24711569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24711570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24711571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24711572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24711573, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24711574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24711575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24711576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24711577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24711578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24711579, '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 = 24712059 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': 3249226, 'mtr_portfolio_id': 24712059, 'created_at': datetime.datetime(2025, 7, 8, 5, 40, 38), 'result': '0.025199203532719025', 'result_long': None, 'result_double': None}] Qualite : 0.025199203532719025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712059 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_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, 'pht': 3726}}" where mtr_portfolio_id = 24712059 and dashboard_run_id = 1969339 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`=24712059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279330, 0.025199203532719025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712059_08-07-2025_05_40_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712088, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712090, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712091, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712098, '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 = 24712470 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': 3249123, 'mtr_portfolio_id': 24712470, 'created_at': datetime.datetime(2025, 7, 8, 5, 46, 59), 'result': '0.0402626252856137', 'result_long': None, 'result_double': None}] Qualite : 0.0402626252856137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712470 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_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, 'pht': 3726}}" where mtr_portfolio_id = 24712470 and dashboard_run_id = 1969339 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`=24712470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279331, 0.0402626252856137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712470_08-07-2025_05_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712500, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712501, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24712504, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712506, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712508, '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 = 24712908 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': 3249291, 'mtr_portfolio_id': 24712908, 'created_at': datetime.datetime(2025, 7, 8, 6, 3, 29), 'result': '0.044108307242809924', 'result_long': None, 'result_double': None}] Qualite : 0.044108307242809924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24712908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24712908 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_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, 'pht': 3726}}" where mtr_portfolio_id = 24712908 and dashboard_run_id = 1969339 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`=24712908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279332, 0.044108307242809924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24712908_08-07-2025_06_03_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24712935, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24712936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24712937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24712938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24712939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24712940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24712941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24712942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24712943, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24712944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24712945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24712946, '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 = 24713368 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': 3249342, 'mtr_portfolio_id': 24713368, 'created_at': datetime.datetime(2025, 7, 8, 6, 16, 59), 'result': '0.03768009568978376', 'result_long': None, 'result_double': None}] Qualite : 0.03768009568978376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713368 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_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, 'pht': 3726}}" where mtr_portfolio_id = 24713368 and dashboard_run_id = 1969339 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`=24713368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279333, 0.03768009568978376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713368_08-07-2025_06_17_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713372, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24713374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713375, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713380, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713381, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713382, '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 = 24713857 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': 3249389, 'mtr_portfolio_id': 24713857, 'created_at': datetime.datetime(2025, 7, 8, 6, 33, 29), 'result': '0.03252529549769295', 'result_long': None, 'result_double': None}] Qualite : 0.03252529549769295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24713857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24713857 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_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, 'pht': 3726}}" where mtr_portfolio_id = 24713857 and dashboard_run_id = 1969339 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`=24713857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279334, 0.03252529549769295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24713857_08-07-2025_06_33_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24713864, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24713865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24713866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24713867, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24713869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24713870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24713871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24713873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24713874, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24713875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24713876, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24713878, '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 = 24714245 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': 3249426, 'mtr_portfolio_id': 24714245, 'created_at': datetime.datetime(2025, 7, 8, 6, 46, 59), 'result': '0.030573826947748812', 'result_long': None, 'result_double': None}] Qualite : 0.030573826947748812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714245 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_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, 'pht': 3726}}" where mtr_portfolio_id = 24714245 and dashboard_run_id = 1969339 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`=24714245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279335, 0.030573826947748812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714245_08-07-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714253, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714260, '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 = 24714691 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': 3249475, 'mtr_portfolio_id': 24714691, 'created_at': datetime.datetime(2025, 7, 8, 7, 1, 1), 'result': '0.03704878342817047', 'result_long': None, 'result_double': None}] Qualite : 0.03704878342817047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24714691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_07_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24714691 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_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, 'pht': 3726}}" where mtr_portfolio_id = 24714691 and dashboard_run_id = 1969339 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`=24714691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279336, 0.03704878342817047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24714691_08-07-2025_07_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24714709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24714710, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24714711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24714712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24714713, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24714714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24714715, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24714716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24714717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24714718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24714719, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24714720, '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 = 24715147 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': 3249546, 'mtr_portfolio_id': 24715147, 'created_at': datetime.datetime(2025, 7, 8, 7, 16, 56), 'result': '0.030669028573050795', 'result_long': None, 'result_double': None}] Qualite : 0.030669028573050795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24715147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24715147_08-07-2025_07_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24715147 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_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, 'pht': 3726}}" where mtr_portfolio_id = 24715147 and dashboard_run_id = 1969339 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`=24715147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279337, 0.030669028573050795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24715147_08-07-2025_07_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24715210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24715211, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24715212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24715213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24715214, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24715215, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24715216, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24715217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24715218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24715219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24715220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24715221, '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 = 24716070 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': 3249599, 'mtr_portfolio_id': 24716070, 'created_at': datetime.datetime(2025, 7, 8, 7, 32, 56), 'result': '0.04159461346647092', 'result_long': None, 'result_double': None}] Qualite : 0.04159461346647092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24716070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716070_08-07-2025_07_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24716070 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_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, 'pht': 3726}}" where mtr_portfolio_id = 24716070 and dashboard_run_id = 1969339 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`=24716070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279338, 0.04159461346647092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716070_08-07-2025_07_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716098, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716099, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716101, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716105, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716106, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716109, '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 = 24716628 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': 3249652, 'mtr_portfolio_id': 24716628, 'created_at': datetime.datetime(2025, 7, 8, 7, 46, 58), 'result': '0.034737307175583196', 'result_long': None, 'result_double': None}] Qualite : 0.034737307175583196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24716628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716628_08-07-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24716628 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_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, 'pht': 3726}}" where mtr_portfolio_id = 24716628 and dashboard_run_id = 1969339 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`=24716628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279339, 0.034737307175583196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24716628_08-07-2025_07_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24716666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24716667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24716668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24716669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24716670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24716671, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24716672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24716674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24716675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24716676, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24716677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24716678, '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 = 24717173 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': 3249718, 'mtr_portfolio_id': 24717173, 'created_at': datetime.datetime(2025, 7, 8, 8, 2, 58), 'result': '0.05152290195866409', 'result_long': None, 'result_double': None}] Qualite : 0.05152290195866409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24717173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717173_08-07-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24717173 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_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, 'pht': 3726}}" where mtr_portfolio_id = 24717173 and dashboard_run_id = 1969339 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`=24717173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279340, 0.05152290195866409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717173_08-07-2025_08_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717177, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24717184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717188, '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 = 24717751 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': 3249781, 'mtr_portfolio_id': 24717751, 'created_at': datetime.datetime(2025, 7, 8, 8, 16, 31), 'result': '0.030953575259441816', 'result_long': None, 'result_double': None}] Qualite : 0.030953575259441816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24717751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717751_08-07-2025_08_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24717751 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_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, 'pht': 3726}}" where mtr_portfolio_id = 24717751 and dashboard_run_id = 1969339 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`=24717751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279341, 0.030953575259441816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24717751_08-07-2025_08_16_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24717820, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24717821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24717822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24717823, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24717824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24717825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24717826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24717827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24717828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24717829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24717830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24717831, '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 = 24718421 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': 3249836, 'mtr_portfolio_id': 24718421, 'created_at': datetime.datetime(2025, 7, 8, 8, 32, 59), 'result': '0.0453973099380386', 'result_long': None, 'result_double': None}] Qualite : 0.0453973099380386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24718421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718421_08-07-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24718421 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_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, 'pht': 3726}}" where mtr_portfolio_id = 24718421 and dashboard_run_id = 1969339 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`=24718421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279342, 0.0453973099380386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718421_08-07-2025_08_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24718479, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24718480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24718482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24718483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24718484, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24718485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24718486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718488, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24718489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24718490, '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 = 24718960 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': 3249887, 'mtr_portfolio_id': 24718960, 'created_at': datetime.datetime(2025, 7, 8, 8, 42, 56), 'result': '0.10122821360623897', 'result_long': None, 'result_double': None}] Qualite : 0.10122821360623897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24718960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718960_08-07-2025_08_42_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24718960 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_P24718960_08-07-2025_08_42_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, 'pht': 3726}}" where mtr_portfolio_id = 24718960 and dashboard_run_id = 1969339 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`=24718960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279343, 0.10122821360623897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24718960_08-07-2025_08_42_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24718996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24718997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24718998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24718999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719004, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719007, '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 = 24719549 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 = 24719549 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 = 24719549 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24719549 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 = 24719549 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 = 24719549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24719549_08-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24719549 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_P24719549_08-07-2025_10_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24719556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24719557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24719558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24719559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24719560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24719561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24719562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24719563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24719564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24719565, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24719566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24719567, 'pht': 3726}}" where mtr_portfolio_id = 24719549 and dashboard_run_id = 1969339 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 = 24720018 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': 3250123, 'mtr_portfolio_id': 24720018, 'created_at': datetime.datetime(2025, 7, 8, 10, 32, 59), 'result': '0.022558512357531067', 'result_long': None, 'result_double': None}] Qualite : 0.022558512357531067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24720018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24720018_08-07-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24720018 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_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, 'pht': 3726}}" where mtr_portfolio_id = 24720018 and dashboard_run_id = 1969339 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`=24720018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279345, 0.022558512357531067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24720018_08-07-2025_10_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24720035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24720036, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24720037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24720038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24720039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24720040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24720041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24720042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24720043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24720044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24720045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24720046, '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 = 24721716 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': 3250507, 'mtr_portfolio_id': 24721716, 'created_at': datetime.datetime(2025, 7, 8, 10, 46, 58), 'result': '0.05586964368489518', 'result_long': None, 'result_double': None}] Qualite : 0.05586964368489518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24721716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24721716_08-07-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24721716 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_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, 'pht': 3726}}" where mtr_portfolio_id = 24721716 and dashboard_run_id = 1969339 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`=24721716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279346, 0.05586964368489518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24721716_08-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24721839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24721840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24721841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24721842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24721843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24721844, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24721845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24721846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24721847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24721848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24721849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24721850, '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 = 24723307 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': 3250806, 'mtr_portfolio_id': 24723307, 'created_at': datetime.datetime(2025, 7, 8, 10, 56, 59), 'result': '0.029015676523835746', 'result_long': None, 'result_double': None}] Qualite : 0.029015676523835746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24723307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_10_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24723307 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_P24723307_08-07-2025_10_57_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, 'pht': 3726}}" where mtr_portfolio_id = 24723307 and dashboard_run_id = 1969339 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`=24723307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12279347, 0.029015676523835746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24723307_08-07-2025_10_57_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24723342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24723343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24723344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24723345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24723346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24723347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24723348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24723349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24723350, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24723351, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24723352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24723353, '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 (24702229,24702755,24703205,24703713,24704184,24704667,24705055,24705431,24706018,24706657,24707037,24707471,24707886,24708456,24708864,24709305,24709706,24710277,24710641,24711106,24711540,24712059,24712470,24712908,24713368,24713857,24714245,24714691,24715147,24716070,24716628,24717173,24717751,24718421,24718960,24719549,24720018,24721716,24723307) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,), (1371109850,), (1371109861,), (1371109865,), (1371109869,), (1371109872,), (1371109874,), (1371109890,), (1371109896,), (1371109901,), (1371109904,), (1371109906,), (1371109907,), (1371109923,), (1371109934,), (1371109938,), (1371109947,), (1371109949,), (1371109950,), (1371109965,), (1371109970,), (1371109972,), (1371109973,), (1371109974,), (1371109975,), (1371109989,), (1371110002,), (1371110006,), (1371110008,), (1371110010,), (1371110012,), (1371110035,), (1371110038,), (1371110040,), (1371110042,), (1371110044,), (1371110045,), (1371110060,), (1371110073,), (1371110078,), (1371110080,), (1371110082,), (1371110083,), (1371110093,), (1371110097,), (1371110101,), (1371110105,), (1371110109,), (1371110110,), (1371110117,), (1371110124,), (1371110139,), (1371110143,), (1371110146,), (1371110147,), (1371110167,), (1371110170,), (1371110173,), (1371110177,), (1371110180,), (1371110182,), (1371110189,), (1371110192,), (1371110205,), (1371110208,), (1371110210,), (1371110212,), (1371110234,), (1371110238,), (1371110242,), (1371110246,), (1371110251,), (1371110254,), (1371110264,), (1371110267,), (1371110281,), (1371110284,), (1371110287,), (1371110289,), (1371110311,), (1371110314,), (1371110317,), (1371110320,), (1371110323,), (1371110325,), (1371110336,), (1371110353,), (1371110355,), (1371110359,), (1371110362,), (1371110364,), (1371110383,), (1371110388,), (1371110392,), (1371110396,), (1371110399,), (1371110401,), (1371110410,), (1371110418,), (1371110434,), (1371110442,), (1371110446,), (1371110448,), (1371110469,), (1371110471,), (1371110475,), (1371110481,), (1371110492,), (1371110494,), (1371110504,), (1371110509,), (1371110524,), (1371110527,), (1371110529,), (1371110530,), (1371110550,), (1371110554,), (1371110560,), (1371110563,), (1371110566,), (1371110568,), (1371110575,), (1371110588,), (1371110591,), (1371110596,), (1371110599,), (1371110601,), (1371110626,), (1371110631,), (1371110637,), (1371110642,), (1371110645,), (1371110647,), (1371110664,), (1371110673,), (1371110677,), (1371110679,), (1371110683,), (1371110685,), (1371110700,), (1371110705,), (1371110710,), (1371110715,), (1371110718,), (1371110720,), (1371110730,), (1371110735,), (1371110751,), (1371110763,), (1371110766,), (1371110771,), (1371110778,), (1371110782,), (1371110787,), (1371110789,), (1371110791,), (1371110793,), (1371110804,), (1371110811,), (1371110816,), (1371110821,), (1371110825,), (1371110828,), (1371110859,), (1371110863,), (1371110867,), (1371110872,), (1371110876,), (1371110877,), (1371110898,), (1371110903,), (1371110907,), (1371110911,), (1371110913,), (1371110915,), (1371110919,), (1371110929,), (1371110933,), (1371110936,), (1371110938,), (1371110939,), (1371110951,), (1371110956,), (1371110960,), (1371110965,), (1371110968,), (1371110969,), (1371110980,), (1371110985,), (1371110989,), (1371110992,), (1371110994,), (1371110996,), (1371111008,), (1371111012,), (1371111015,), (1371111019,), (1371111022,), (1371111024,), (1371111038,), (1371111044,), (1371111048,), (1371111055,), (1371111061,), (1371111062,), (1371111078,), (1371111083,), (1371111087,), (1371111089,), (1371111096,), (1371111099,), (1371111110,), (1371111112,), (1371111115,), (1371111118,), (1371111122,), (1371111126,), (1371111135,), (1371111138,), (1371111143,), (1371111148,), (1371111152,), (1371111155,), (1371111176,), (1371111179,), (1371111181,), (1371111184,), (1371111186,), (1371111190,), (1371111214,), (1371111218,), (1371111224,), (1371111229,), (1371111233,), (1371111236,), (1371111256,), (1371111261,), (1371111265,), (1371111269,), (1371111271,), (1371111272,), (1371111312,), (1371111316,), (1371111321,), (1371111331,), (1371111337,), (1371111342,), (1371111357,), (1371111364,), (1371111370,), (1371111381,), (1371111385,), (1371111386,), (1371111398,), (1371111403,), (1371111406,), (1371111408,), (1371111410,), (1371111411,), (1371111436,), (1371111441,), (1371111443,), (1371111446,), (1371111449,), (1371111450,), (1371111800,), (1371111869,), (1371111935,), (1371112005,), (1371112071,), (1371112141,), (1371113397,), (1371113435,), (1371113473,), (1371113512,), (1371113544,), (1371113576,), (1371113821,), (1371113891,), (1371113964,), (1371114061,), (1371114131,), (1371114262,), (1371114298,), (1371114422,), (1371114493,), (1371114565,), (1371114632,), (1371114816,), (1371114822,), (1371114855,), (1371114866,), (1371114894,), (1371114914,), (1371115019,), (1371115052,), (1371115065,), (1371115067,), (1371115072,), (1371115106,), (1371115167,), (1371115171,), (1371115176,), (1371115180,), (1371115183,), (1371115184,), (1371115208,), (1371115212,), (1371115216,), (1371115218,), (1371115221,), (1371115223,), (1371115244,), (1371115246,), (1371115248,), (1371115250,), (1371115252,), (1371115254,), (1371115289,), (1371115292,), (1371115294,), (1371115295,), (1371115296,), (1371115299,), (1371115313,), (1371115315,), (1371115318,), (1371115320,), (1371115324,), (1371115326,), (1371115343,), (1371115344,), (1371115345,), (1371115347,), (1371115348,), (1371115350,), (1371115371,), (1371115375,), (1371115378,), (1371115381,), (1371115384,), (1371115385,), (1371115410,), (1371115418,), (1371115422,), (1371115426,), (1371115428,), (1371115429,), (1371115459,), (1371115462,), (1371115465,), (1371115468,), (1371115470,), (1371115472,), (1371115491,), (1371115494,), (1371115496,), (1371115498,), (1371115500,), (1371115503,), (1371115525,), (1371115528,), (1371115531,), (1371115538,), (1371115540,), (1371115542,), (1371115559,), (1371115560,), (1371115562,), (1371115563,), (1371115565,), (1371115568,), (1371115585,), (1371115587,), (1371115597,), (1371115602,), (1371115607,), (1371115609,), (1371115616,), (1371115618,), (1371115620,), (1371115623,), (1371115624,), (1371115628,), (1371115643,), (1371115645,), (1371115648,), (1371115650,), (1371115652,), (1371115653,), (1371115661,), (1371115665,), (1371115667,), (1371115671,), (1371115674,), (1371115676,), (1371115704,), (1371115708,), (1371115712,), (1371115714,), (1371115716,), (1371115717,), (1371115727,), (1371115730,), (1371115734,), (1371115736,), (1371115738,), (1371115739,), (1371115747,), (1371115752,), (1371115755,), (1371115758,), (1371115761,), (1371115762,), (1371115772,), (1371115775,), (1371115778,), (1371115780,), (1371115783,), (1371115784,), (1371115799,), (1371115803,), (1371115806,), (1371115808,), (1371115811,), (1371115813,), (1371115819,), (1371115821,), (1371115823,), (1371115825,), (1371115828,), (1371115830,), (1371115846,), (1371115848,), (1371115851,), (1371115853,), (1371115856,), (1371115864,), (1371115878,), (1371115880,), (1371115883,), (1371115885,), (1371115888,), (1371115890,), (1371115901,), (1371115903,), (1371115906,), (1371115908,), (1371115910,), (1371115911,), (1371115925,), (1371115928,), (1371115931,), (1371115934,), (1371115938,), (1371115947,), (1371115958,), (1371115961,), (1371115964,), (1371115966,), (1371115970,), (1371115973,), (1371115989,), (1371115993,), (1371115996,), (1371116000,), (1371116003,), (1371116005,), (1371116017,), (1371116025,), (1371116029,), (1371116032,), (1371116034,), (1371116035,), (1371116053,), (1371116057,), (1371116061,), (1371116063,), (1371116065,), (1371116066,), (1371116077,), (1371116082,), (1371116087,), (1371116091,), (1371116093,), (1371116094,), (1371116101,), (1371116105,), (1371116109,), (1371116113,), (1371116115,), (1371116117,), (1371116129,), (1371116132,), (1371116134,), (1371116137,), (1371116140,), (1371116142,), (1371116160,), (1371116163,), (1371116165,), (1371116169,), (1371116172,), (1371116174,), (1371116193,), (1371116198,), (1371116200,), (1371116203,), (1371116205,), (1371116206,), (1371116212,), (1371116216,), (1371116220,), (1371116225,), (1371116228,), (1371116229,), (1371116240,), (1371116244,), (1371116248,), (1371116251,), (1371116253,), (1371116254,), (1371116286,), (1371116290,), (1371116293,), (1371116296,), (1371116298,), (1371116299,), (1371116305,), (1371116308,), (1371116319,), (1371116323,), (1371116325,), (1371116326,), (1371116342,), (1371116346,), (1371116349,), (1371116352,), (1371116354,), (1371116356,), (1371116366,), (1371116371,), (1371116373,), (1371116375,), (1371116377,), (1371116378,), (1371116405,), (1371116410,), (1371116414,), (1371116417,), (1371116419,), (1371116421,), (1371116437,), (1371116444,), (1371116450,), (1371116453,), (1371116455,), (1371116456,), (1371116464,), (1371116468,), (1371116471,), (1371116474,), (1371116476,), (1371116477,), (1371116487,), (1371116490,), (1371116493,), (1371116496,), (1371116498,), (1371116499,), (1371116520,), (1371116525,), (1371116528,), (1371116531,), (1371116533,), (1371116534,), (1371116551,), (1371116557,), (1371116560,), (1371116563,), (1371116565,), (1371116566,), (1371116596,), (1371116600,), (1371116603,), (1371116607,), (1371116609,), (1371116610,), (1371116624,), (1371116632,), (1371116634,), (1371116636,), (1371116638,), (1371116640,), (1371116653,), (1371116656,), (1371116660,), (1371116663,), (1371116665,), (1371116666,), (1371116677,), (1371116681,), (1371116683,), (1371116685,), (1371116688,), (1371116690,), (1371116697,), (1371116699,), (1371116702,), (1371116704,), (1371116706,), (1371116709,), (1371116717,), (1371116721,), (1371116724,), (1371116726,), (1371116729,), (1371116731,), (1371116747,), (1371116750,), (1371116753,), (1371116755,), (1371116758,), (1371116760,), (1371116835,), (1371116878,), (1371116915,), (1371116949,), (1371116983,), (1371117016,), (1371117526,), (1371117562,), (1371117600,), (1371117638,), (1371117676,), (1371117710,), (1371117976,), (1371118016,), (1371118052,), (1371118089,), (1371118127,), (1371118432,), (1371118475,), (1371118510,), (1371118545,), (1371118582,), (1371118633,), (1371119054,), (1371119090,), (1371119148,), (1371119219,), (1371119266,), (1371119318,), (1371119429,), (1371119433,), (1371119438,), (1371119442,), (1371119448,), (1371119481,), (1371119661,), (1371119687,), (1371119690,), (1371119724,), (1371119732,), (1371119734,), (1371119757,), (1371119759,), (1371119761,), (1371119765,), (1371119768,), (1371119771,), (1371119785,), (1371119789,), (1371119794,), (1371119798,), (1371119801,), (1371119802,), (1371119822,), (1371119829,), (1371119835,), (1371119839,), (1371119843,), (1371119844,), (1371119865,), (1371119869,), (1371119872,), (1371119875,), (1371119877,), (1371119880,), (1371119898,), (1371119900,), (1371119902,), (1371119904,), (1371119907,), (1371119910,), (1371119961,), (1371119965,), (1371119967,), (1371119970,), (1371119974,), (1371119975,), (1371119992,), (1371119996,), (1371119999,), (1371120001,), (1371120004,), (1371120006,), (1371120031,), (1371120034,), (1371120037,), (1371120040,), (1371120044,), (1371120047,), (1371120077,), (1371120080,), (1371120082,), (1371120084,), (1371120087,), (1371120089,), (1371120124,), (1371120128,), (1371120132,), (1371120133,), (1371120141,), (1371120142,), (1371120168,), (1371120173,), (1371120178,), (1371120181,), (1371120184,), (1371120187,), (1371120217,), (1371120222,), (1371120226,), (1371120229,), (1371120231,), (1371120233,), (1371120257,), (1371120261,), (1371120263,), (1371120265,), (1371120272,), (1371120276,), (1371120288,), (1371120291,), (1371120293,), (1371120296,), (1371120301,), (1371120304,), (1371120319,), (1371120325,), (1371120329,), (1371120334,), (1371120339,), (1371120341,), (1371120384,), (1371120390,), (1371120394,), (1371120397,), (1371120399,), (1371120400,), (1371120414,), (1371120418,), (1371120421,), (1371120425,), (1371120428,), (1371120430,), (1371120445,), (1371120451,), (1371120455,), (1371120459,), (1371120463,), (1371120464,), (1371120476,), (1371120487,), (1371120493,), (1371120498,), (1371120504,), (1371120505,), (1371120519,), (1371120523,), (1371120526,), (1371120530,), (1371120533,), (1371120537,), (1371120558,), (1371120562,), (1371120563,), (1371120565,), (1371120568,), (1371120570,), (1371120598,), (1371120600,), (1371120602,), (1371120605,), (1371120608,), (1371120610,), (1371120631,), (1371120633,), (1371120634,), (1371120636,), (1371120638,), (1371120641,), (1371120659,), (1371120664,), (1371120665,), (1371120667,), (1371120669,), (1371120671,), (1371120689,), (1371120693,), (1371120697,), (1371120701,), (1371120704,), (1371120706,), (1371120760,), (1371120762,), (1371120765,), (1371120767,), (1371120769,), (1371120771,), (1371120803,), (1371120807,), (1371120810,), (1371120811,), (1371120812,), (1371120813,), (1371120827,), (1371120832,), (1371120835,), (1371120845,), (1371120855,), (1371120859,), (1371120885,), (1371120895,), (1371120897,), (1371120899,), (1371120900,), (1371120901,), (1371120910,), (1371120913,), (1371120915,), (1371120917,), (1371120919,), (1371120922,), (1371120949,), (1371120958,), (1371120961,), (1371120964,), (1371120969,), (1371120972,), (1371120991,), (1371120996,), (1371120999,), (1371121002,), (1371121004,), (1371121006,), (1371121028,), (1371121032,), (1371121035,), (1371121037,), (1371121039,), (1371121041,), (1371121064,), (1371121070,), (1371121076,), (1371121081,), (1371121086,), (1371121087,), (1371121097,), (1371121101,), (1371121106,), (1371121109,), (1371121111,), (1371121112,), (1371121153,), (1371121158,), (1371121163,), (1371121166,), (1371121168,), (1371121169,), (1371121189,), (1371121192,), (1371121199,), (1371121202,), (1371121206,), (1371121208,), (1371121226,), (1371121232,), (1371121238,), (1371121241,), (1371121245,), (1371121247,), (1371121258,), (1371121261,), (1371121266,), (1371121269,), (1371121273,), (1371121276,), (1371121284,), (1371121286,), (1371121289,), (1371121292,), (1371121296,), (1371121300,), (1371121322,), (1371121325,), (1371121328,), (1371121331,), (1371121333,), (1371121335,), (1371121351,), (1371121355,), (1371121360,), (1371121364,), (1371121367,), (1371121369,), (1371121387,), (1371121392,), (1371121397,), (1371121402,), (1371121404,), (1371121405,), (1371121431,), (1371121437,), (1371121441,), (1371121444,), (1371121446,), (1371121447,), (1371121464,), (1371121471,), (1371121475,), (1371121479,), (1371121482,), (1371121484,), (1371121520,), (1371121525,), (1371121527,), (1371121529,), (1371121531,), (1371121533,), (1371121544,), (1371121549,), (1371121554,), (1371121558,), (1371121561,), (1371121562,), (1371121576,), (1371121580,), (1371121583,), (1371121586,), (1371121589,), (1371121593,), (1371121614,), (1371121621,), (1371121625,), (1371121630,), (1371121633,), (1371121634,), (1371121638,), (1371121641,), (1371121643,), (1371121646,), (1371121651,), (1371121654,), (1371121676,), (1371121680,), (1371121685,), (1371121689,), (1371121693,), (1371121696,), (1371121708,), (1371121711,), (1371121713,), (1371121716,), (1371121721,), (1371121725,), (1371121745,), (1371121751,), (1371121756,), (1371121759,), (1371121762,), (1371121764,), (1371122659,), (1371122729,), (1371122796,), (1371122863,), (1371122949,), (1371123040,), (1371123314,), (1371123426,), (1371123487,), (1371123552,), (1371123618,), (1371123816,), (1371123849,), (1371123882,), (1371123915,), (1371123948,), (1371123981,), (1371124176,), (1371124229,), (1371124263,), (1371124293,), (1371124324,), (1371124344,), (1371124452,), (1371124487,), (1371124520,), (1371124552,), (1371124586,), (1371124616,), (1371124724,), (1371124729,), (1371124761,), (1371124782,), (1371124786,), (1371124788,), (1371124819,), (1371124822,), (1371124826,), (1371124828,), (1371124830,), (1371124834,), (1371124865,), (1371124870,), (1371124874,), (1371124877,), (1371124880,), (1371124882,), (1371124902,), (1371124909,), (1371124915,), (1371124918,), (1371124921,), (1371124923,), (1371124933,), (1371124939,), (1371124944,), (1371124950,), (1371124967,), (1371124970,), (1371124995,), (1371124999,), (1371125003,), (1371125008,), (1371125012,), (1371125016,), (1371125037,), (1371125043,), (1371125048,), (1371125050,), (1371125053,), (1371125054,), (1371125115,), (1371125122,), (1371125127,), (1371125131,), (1371125134,), (1371125136,), (1371125152,), (1371125158,), (1371125163,), (1371125170,), (1371125171,), (1371125173,), (1371125188,), (1371125194,), (1371125200,), (1371125203,), (1371125207,), (1371125208,), (1371125226,), (1371125229,), (1371125233,), (1371125236,), (1371125240,), (1371125243,), (1371125267,), (1371125272,), (1371125277,), (1371125280,), (1371125285,), (1371125289,), (1371125310,), (1371125321,), (1371125331,), (1371125340,), (1371125345,), (1371125347,), (1371125361,), (1371125365,), (1371125369,), (1371125371,), (1371125374,), (1371125376,), (1371125402,), (1371125417,), (1371125429,), (1371125432,), (1371125435,), (1371125437,), (1371125466,), (1371125471,), (1371125476,), (1371125480,), (1371125485,), (1371125489,), (1371125521,), (1371125546,), (1371125554,), (1371125559,), (1371125562,), (1371125564,), (1371125619,), (1371125624,), (1371125630,), (1371125636,), (1371125640,), (1371125643,), (1371125667,), (1371125677,), (1371125682,), (1371125685,), (1371125688,), (1371125690,), (1371125724,), (1371125729,), (1371125736,), (1371125741,), (1371125744,), (1371125747,), (1371125777,), (1371125788,), (1371125795,), (1371125798,), (1371125801,), (1371125804,), (1371125842,), (1371125849,), (1371125854,), (1371125857,), (1371125859,), (1371125860,), (1371125872,), (1371125878,), (1371125884,), (1371125887,), (1371125891,), (1371125892,), (1371125925,), (1371125929,), (1371125933,), (1371125937,), (1371125940,), (1371125943,), (1371125974,), (1371125984,), (1371125989,), (1371125994,), (1371125997,), (1371125999,), (1371126027,), (1371126034,), (1371126040,), (1371126046,), (1371126050,), (1371126052,), (1371126066,), (1371126080,), (1371126084,), (1371126088,), (1371126094,), (1371126098,), (1371126171,), (1371126176,), (1371126180,), (1371126184,), (1371126187,), (1371126189,), (1371126208,), (1371126216,), (1371126221,), (1371126225,), (1371126229,), (1371126231,), (1371126251,), (1371126255,), (1371126259,), (1371126262,), (1371126266,), (1371126268,), (1371126283,), (1371126289,), (1371126296,), (1371126299,), (1371126302,), (1371126304,), (1371126328,), (1371126332,), (1371126335,), (1371126340,), (1371126344,), (1371126346,), (1371126366,), (1371126372,), (1371126377,), (1371126380,), (1371126384,), (1371126388,), (1371126406,), (1371126410,), (1371126416,), (1371126420,), (1371126424,), (1371126428,), (1371126455,), (1371126460,), (1371126463,), (1371126469,), (1371126473,), (1371126475,), (1371126508,), (1371126514,), (1371126520,), (1371126523,), (1371126526,), (1371126528,), (1371126552,), (1371126556,), (1371126561,), (1371126565,), (1371126569,), (1371126571,), (1371126636,), (1371126644,), (1371126649,), (1371126653,), (1371126656,), (1371126658,), (1371126676,), (1371126682,), (1371126688,), (1371126692,), (1371126697,), (1371126699,), (1371126718,), (1371126723,), (1371126727,), (1371126731,), (1371126735,), (1371126739,), (1371126761,), (1371126767,), (1371126773,), (1371126776,), (1371126779,), (1371126781,), (1371126798,), (1371126802,), (1371126806,), (1371126809,), (1371126814,), (1371126818,), (1371126842,), (1371126848,), (1371126861,), (1371126863,), (1371126865,), (1371126867,), (1371126886,), (1371126891,), (1371126898,), (1371126902,), (1371126905,), (1371126907,), (1371126930,), (1371126938,), (1371126945,), (1371126949,), (1371126953,), (1371126954,), (1371126972,), (1371126976,), (1371126981,), (1371126986,), (1371126989,), (1371126994,), (1371127011,), (1371127016,), (1371127021,), (1371127024,), (1371127029,), (1371127031,), (1371127057,), (1371127061,), (1371127065,), (1371127068,), (1371127072,), (1371127075,), (1371127097,), (1371127103,), (1371127107,), (1371127109,), (1371127111,), (1371127114,), (1371127135,), (1371127140,), (1371127144,), (1371127147,), (1371127152,), (1371127155,), (1371127167,), (1371127178,), (1371127182,), (1371127187,), (1371127192,), (1371127196,), (1371127217,), (1371127220,), (1371127223,), (1371127229,), (1371127234,), (1371127238,), (1371127248,), (1371127253,), (1371127256,), (1371127260,), (1371127264,), (1371127267,), (1371127285,), (1371127290,), (1371127295,), (1371127300,), (1371127319,), (1371127352,), (1371127554,), (1371127588,), (1371127619,), (1371127657,), (1371127690,), (1371127722,), (1371128590,), (1371128657,), (1371128738,), (1371128799,), (1371128866,), (1371128938,), (1371129132,), (1371129168,), (1371129212,), (1371129248,), (1371129284,), (1371129576,), (1371129597,), (1371129603,), (1371129630,), (1371129636,), (1371129640,), (1371129659,), (1371129664,), (1371129668,), (1371129671,), (1371129674,), (1371129678,), (1371129707,), (1371129711,), (1371129715,), (1371129720,), (1371129724,), (1371129728,), (1371129742,), (1371129746,), (1371129750,), (1371129754,), (1371129758,), (1371129762,), (1371129784,), (1371129792,), (1371129797,), (1371129800,), (1371129805,), (1371129808,), (1371129824,), (1371129828,), (1371129830,), (1371129832,), (1371129835,), (1371129838,), (1371129859,), (1371129862,), (1371129864,), (1371129866,), (1371129869,), (1371129870,), (1371129885,), (1371129889,), (1371129892,), (1371129895,), (1371129898,), (1371129902,), (1371129922,), (1371129927,), (1371129933,), (1371129936,), (1371129938,), (1371129940,), (1371129962,), (1371129967,), (1371129972,), (1371129977,), (1371129982,), (1371129984,), (1371130007,), (1371130013,), (1371130019,), (1371130022,), (1371130025,), (1371130028,), (1371130042,), (1371130049,), (1371130055,), (1371130059,), (1371130063,), (1371130065,), (1371130080,), (1371130085,), (1371130091,), (1371130094,), (1371130095,), (1371130096,), (1371130105,), (1371130110,), (1371130115,), (1371130119,), (1371130124,), (1371130126,), (1371130140,), (1371130145,), (1371130148,), (1371130151,), (1371130153,), (1371130155,), (1371130176,), (1371130180,), (1371130185,), (1371130188,), (1371130191,), (1371130193,), (1371130209,), (1371130216,), (1371130223,), (1371130228,), (1371130233,), (1371130235,), (1371130245,), (1371130248,), (1371130253,), (1371130258,), (1371130262,), (1371130265,), (1371130279,), (1371130285,), (1371130291,), (1371130293,), (1371130295,), (1371130296,), (1371130311,), (1371130318,), (1371130323,), (1371130326,), (1371130331,), (1371130332,), (1371130348,), (1371130353,), (1371130357,), (1371130361,), (1371130371,), (1371130373,), (1371130386,), (1371130394,), (1371130399,), (1371130403,), (1371130406,), (1371130408,), (1371130422,), (1371130429,), (1371130435,), (1371130439,), (1371130444,), (1371130446,), (1371130462,), (1371130465,), (1371130468,), (1371130473,), (1371130478,), (1371130482,), (1371130495,), (1371130500,), (1371130505,), (1371130508,), (1371130513,), (1371130515,), (1371130537,), (1371130539,), (1371130541,), (1371130545,), (1371130549,), (1371130552,), (1371130565,), (1371130570,), (1371130573,), (1371130576,), (1371130578,), (1371130579,), (1371130596,), (1371130602,), (1371130606,), (1371130611,), (1371130616,), (1371130620,), (1371130631,), (1371130643,), (1371130652,), (1371130655,), (1371130658,), (1371130659,), (1371130690,), (1371130696,), (1371130700,), (1371130710,), (1371130718,), (1371130719,), (1371130739,), (1371130751,), (1371130753,), (1371130757,), (1371130760,), (1371130763,), (1371130775,), (1371130778,), (1371130783,), (1371130786,), (1371130788,), (1371130791,), (1371130802,), (1371130814,), (1371130819,), (1371130823,), (1371130827,), (1371130828,), (1371130843,), (1371130849,), (1371130851,), (1371130853,), (1371130856,), (1371130858,), (1371130874,), (1371130878,), (1371130882,), (1371130886,), (1371130891,), (1371130893,), (1371130916,), (1371130921,), (1371130925,), (1371130927,), (1371130930,), (1371130932,), (1371130950,), (1371130954,), (1371130958,), (1371130962,), (1371130965,), (1371130966,), (1371130973,), (1371130977,), (1371130981,), (1371130985,), (1371130991,), (1371130994,), (1371131007,), (1371131011,), (1371131014,), (1371131018,), (1371131022,), (1371131025,), (1371131050,), (1371131052,), (1371131054,), (1371131058,), (1371131061,), (1371131064,), (1371131084,), (1371131088,), (1371131094,), (1371131096,), (1371131098,), (1371131105,), (1371131126,), (1371131131,), (1371131137,), (1371131141,), (1371131146,), (1371131147,), (1371131173,), (1371131179,), (1371131183,), (1371131186,), (1371131190,), (1371131192,), (1371131208,), (1371131212,), (1371131216,), (1371131218,), (1371131222,), (1371131224,), (1371131248,), (1371131252,), (1371131266,), (1371131275,), (1371131280,), (1371131283,), (1371131294,), (1371131296,), (1371131299,), (1371131302,), (1371131307,), (1371131309,), (1371131334,), (1371131342,), (1371131345,), (1371131348,), (1371131351,), (1371131353,), (1371131372,), (1371131376,), (1371131381,), (1371131384,), (1371131387,), (1371131389,), (1371131410,), (1371131414,), (1371131418,), (1371131421,), (1371131423,), (1371131425,), (1371131456,), (1371131459,), (1371131462,), (1371131465,), (1371131467,), (1371131470,), (1371131492,), (1371131497,), (1371131499,), (1371131500,), (1371131501,), (1371131502,), (1371131518,), (1371131522,), (1371131525,), (1371131527,), (1371131530,), (1371131531,), (1371131545,), (1371131559,), (1371131567,), (1371131569,), (1371131570,), (1371131572,), (1371131598,), (1371131601,), (1371131604,), (1371131607,), (1371131611,), (1371131612,), (1371131628,), (1371131632,), (1371131633,), (1371131634,), (1371131636,), (1371131638,), (1371131663,), (1371131668,), (1371131670,), (1371131672,), (1371131705,), (1371131736,), (1371131946,), (1371131985,), (1371132026,), (1371132060,), (1371132094,), (1371132126,), (1371132798,), (1371132805,), (1371132829,), (1371132863,), (1371132898,), (1371132929,), (1371133276,), (1371133328,), (1371133371,), (1371133409,), (1371133471,), (1371133702,), (1371133735,), (1371133773,), (1371133805,), (1371133835,), (1371133862,), (1371133882,), (1371133886,), (1371133888,), (1371133894,), (1371133933,), (1371133962,), (1371134141,), (1371134144,), (1371134146,), (1371134153,), (1371134187,), (1371134219,), (1371134305,), (1371134309,), (1371134312,), (1371134313,), (1371134315,), (1371134317,), (1371134335,), (1371134340,), (1371134343,), (1371134346,), (1371134351,), (1371134353,), (1371134368,), (1371134370,), (1371134373,), (1371134376,), (1371134380,), (1371134382,), (1371134404,), (1371134407,), (1371134411,), (1371134415,), (1371134418,), (1371134421,), (1371134453,), (1371134457,), (1371134462,), (1371134466,), (1371134470,), (1371134476,), (1371134496,), (1371134505,), (1371134512,), (1371134515,), (1371134521,), (1371134523,), (1371134554,), (1371134560,), (1371134564,), (1371134567,), (1371134572,), (1371134574,), (1371134598,), (1371134609,), (1371134615,), (1371134618,), (1371134621,), (1371134623,), (1371134654,), (1371134658,), (1371134661,), (1371134663,), (1371134667,), (1371134671,), (1371134684,), (1371134690,), (1371134693,), (1371134698,), (1371134703,), (1371134706,), (1371134722,), (1371134725,), (1371134729,), (1371134732,), (1371134739,), (1371134743,), (1371134757,), (1371134766,), (1371134770,), (1371134776,), (1371134788,), (1371134791,), (1371134823,), (1371134826,), (1371134828,), (1371134831,), (1371134835,), (1371134837,), (1371134852,), (1371134860,), (1371134871,), (1371134875,), (1371134879,), (1371134882,), (1371134910,), (1371134917,), (1371134923,), (1371134928,), (1371134934,), (1371134937,), (1371134956,), (1371134964,), (1371134968,), (1371134972,), (1371134975,), (1371134977,), (1371134999,), (1371135003,), (1371135008,), (1371135012,), (1371135015,), (1371135019,), (1371135037,), (1371135041,), (1371135045,), (1371135048,), (1371135052,), (1371135056,), (1371135088,), (1371135092,), (1371135096,), (1371135099,), (1371135102,), (1371135104,), (1371135123,), (1371135128,), (1371135133,), (1371135136,), (1371135141,), (1371135143,), (1371135168,), (1371135172,), (1371135176,), (1371135180,), (1371135183,), (1371135188,), (1371135215,), (1371135226,), (1371135233,), (1371135237,), (1371135240,), (1371135241,), (1371135258,), (1371135264,), (1371135270,), (1371135274,), (1371135278,), (1371135281,), (1371135293,), (1371135307,), (1371135311,), (1371135315,), (1371135318,), (1371135320,), (1371135342,), (1371135348,), (1371135353,), (1371135360,), (1371135365,), (1371135368,), (1371135376,), (1371135382,), (1371135387,), (1371135391,), (1371135395,), (1371135398,), (1371135422,), (1371135428,), (1371135433,), (1371135438,), (1371135445,), (1371135449,), (1371135467,), (1371135475,), (1371135482,), (1371135485,), (1371135489,), (1371135492,), (1371135523,), (1371135535,), (1371135542,), (1371135545,), (1371135550,), (1371135558,), (1371135575,), (1371135578,), (1371135582,), (1371135588,), (1371135592,), (1371135595,), (1371135616,), (1371135620,), (1371135623,), (1371135629,), (1371135634,), (1371135638,), (1371135657,), (1371135667,), (1371135671,), (1371135673,), (1371135677,), (1371135680,), (1371135697,), (1371135701,), (1371135704,), (1371135708,), (1371135712,), (1371135716,), (1371135734,), (1371135740,), (1371135752,), (1371135755,), (1371135757,), (1371135758,), (1371135788,), (1371135793,), (1371135797,), (1371135799,), (1371135800,), (1371135801,), (1371135812,), (1371135817,), (1371135821,), (1371135828,), (1371135832,), (1371135836,), (1371135864,), (1371135868,), (1371135874,), (1371135877,), (1371135880,), (1371135882,), (1371135899,), (1371135907,), (1371135912,), (1371135914,), (1371135916,), (1371135917,), (1371135944,), (1371135950,), (1371135954,), (1371135958,), (1371135961,), (1371135962,), (1371135979,), (1371135989,), (1371135999,), (1371136005,), (1371136007,), (1371136008,), (1371136030,), (1371136034,), (1371136035,), (1371136036,), (1371136039,), (1371136040,), (1371136059,), (1371136065,), (1371136077,), (1371136084,), (1371136088,), (1371136090,), (1371136106,), (1371136108,), (1371136109,), (1371136111,), (1371136115,), (1371136118,), (1371136141,), (1371136144,), (1371136148,), (1371136150,), (1371136152,), (1371136153,), (1371136165,), (1371136173,), (1371136178,), (1371136181,), (1371136186,), (1371136188,), (1371136206,), (1371136217,), (1371136226,), (1371136229,), (1371136232,), (1371136236,), (1371136271,), (1371136276,), (1371136279,), (1371136281,), (1371136285,), (1371136288,), (1371136303,), (1371136309,), (1371136317,), (1371136319,), (1371136322,), (1371136323,), (1371136344,), (1371136350,), (1371136357,), (1371136358,), (1371136361,), (1371136363,), (1371136385,), (1371136391,), (1371136393,), (1371136395,), (1371136397,), (1371136398,), (1371136420,), (1371136423,), (1371136426,), (1371136429,), (1371136434,), (1371136436,), (1371136448,), (1371136453,), (1371136456,), (1371136458,), (1371136460,), (1371136462,), (1371136479,), (1371136484,), (1371136489,), (1371136493,), (1371136496,), (1371136499,), (1371136558,), (1371136602,), (1371136638,), (1371136670,), (1371136708,), (1371136740,), (1371137589,), (1371137653,), (1371137718,), (1371137751,), (1371137810,), (1371137870,), (1371138114,), (1371138155,), (1371138188,), (1371138221,), (1371138255,), (1371138680,), (1371138712,), (1371138780,), (1371138856,), (1371138973,), (1371139039,), (1371139136,), (1371139143,), (1371139176,), (1371139202,), (1371139243,), (1371139275,), (1371139427,), (1371139438,), (1371139455,), (1371139488,), (1371139519,), (1371139529,), (1371139608,), (1371139633,), (1371139638,), (1371139642,), (1371139646,), (1371139648,), (1371139692,), (1371139704,), (1371139712,), (1371139719,), (1371139722,), (1371139724,), (1371139738,), (1371139749,), (1371139789,), (1371139807,), (1371139837,), (1371139848,), (1371139856,), (1371139860,), (1371139862,), (1371139865,), (1371139869,), (1371139871,), (1371139904,), (1371139908,), (1371139911,), (1371139917,), (1371139921,), (1371139926,), (1371139947,), (1371139952,), (1371139956,), (1371139961,), (1371139964,), (1371139967,), (1371140000,), (1371140009,), (1371140019,), (1371140027,), (1371140055,), (1371140065,), (1371140184,), (1371140216,), (1371140262,), (1371140292,), (1371140295,), (1371140298,), (1371140311,), (1371140317,), (1371140321,), (1371140325,), (1371140328,), (1371140330,), (1371140376,), (1371140413,), (1371140475,), (1371140520,), (1371140562,), (1371140600,), (1371140801,), (1371140804,), (1371140810,), (1371140814,), (1371140821,), (1371140827,), (1371140844,), (1371140848,), (1371140851,), (1371140860,), (1371140866,), (1371140871,), (1371140906,), (1371140911,), (1371140915,), (1371140922,), (1371140927,), (1371140930,), (1371140947,), (1371140951,), (1371140955,), (1371140959,), (1371140964,), (1371140974,), (1371140981,), (1371140986,), (1371140990,), (1371140995,), (1371141001,), (1371141009,), (1371141123,), (1371141130,), (1371141135,), (1371141142,), (1371141148,), (1371141152,), (1371141183,), (1371141187,), (1371141192,), (1371141196,), (1371141200,), (1371141202,), (1371141219,), (1371141224,), (1371141228,), (1371141233,), (1371141237,), (1371141243,), (1371141259,), (1371141276,), (1371141280,), (1371141285,), (1371141290,), (1371141294,), (1371141306,), (1371141310,), (1371141311,), (1371141315,), (1371141330,), (1371141337,), (1371141349,), (1371141365,), (1371141371,), (1371141374,), (1371141379,), (1371141382,), (1371141395,), (1371141398,), (1371141403,), (1371141407,), (1371141420,), (1371141425,), (1371141441,), (1371141444,), (1371141449,), (1371141452,), (1371141458,), (1371141462,), (1371141473,), (1371141476,), (1371141479,), (1371141484,), (1371141487,), (1371141492,), (1371141507,), (1371141513,), (1371141516,), (1371141520,), (1371141525,), (1371141529,), (1371141548,), (1371141552,), (1371141557,), (1371141561,), (1371141567,), (1371141570,), (1371141595,), (1371141600,), (1371141604,), (1371141607,), (1371141610,), (1371141613,), (1371141644,), (1371141649,), (1371141654,), (1371141659,), (1371141664,), (1371141666,), (1371141676,), (1371141682,), (1371141689,), (1371141693,), (1371141697,), (1371141701,), (1371141709,), (1371141714,), (1371141719,), (1371141722,), (1371141726,), (1371141730,), (1371141744,), (1371141749,), (1371141753,), (1371141759,), (1371141763,), (1371141767,), (1371141780,), (1371141783,), (1371141786,), (1371141789,), (1371141793,), (1371141797,), (1371141807,), (1371141810,), (1371141815,), (1371141819,), (1371141827,), (1371141834,), (1371141886,), (1371141896,), (1371141898,), (1371141905,), (1371141909,), (1371141912,), (1371141917,), (1371141923,), (1371141927,), (1371141932,), (1371141937,), (1371141942,), (1371141954,), (1371141964,), (1371141971,), (1371141975,), (1371141979,), (1371141982,), (1371142007,), (1371142011,), (1371142014,), (1371142021,), (1371142028,), (1371142031,), (1371142049,), (1371142054,), (1371142058,), (1371142061,), (1371142064,), (1371142067,), (1371142097,), (1371142103,), (1371142107,), (1371142111,), (1371142114,), (1371142117,), (1371142138,), (1371142144,), (1371142150,), (1371142154,), (1371142159,), (1371142161,), (1371142170,), (1371142175,), (1371142180,), (1371142184,), (1371142192,), (1371142199,), (1371142219,), (1371142222,), (1371142225,), (1371142228,), (1371142235,), (1371142239,), (1371142258,), (1371142261,), (1371142263,), (1371142266,), (1371142277,), (1371142285,), (1371142303,), (1371142305,), (1371142309,), (1371142312,), (1371142316,), (1371142318,), (1371142328,), (1371142333,), (1371142338,), (1371142345,), (1371142352,), (1371142358,), (1371142372,), (1371142376,), (1371142381,), (1371142385,), (1371142390,), (1371142393,), (1371142420,), (1371142426,), (1371142429,), (1371142432,), (1371142438,), (1371142441,), (1371142464,), (1371142470,), (1371142485,), (1371142490,), (1371142496,), (1371142500,), (1371142513,), (1371142518,), (1371142523,), (1371142529,), (1371142533,), (1371142537,), (1371142567,), (1371142585,), (1371142614,), (1371142628,), (1371142638,), (1371142642,), (1371142712,), (1371142714,), (1371142718,), (1371142721,), (1371142728,), (1371142732,), (1371142755,), (1371142763,), (1371142766,), (1371142771,), (1371142777,), (1371142780,), (1371142801,), (1371142804,), (1371142808,), (1371142811,), (1371142814,), (1371142817,), (1371142967,), (1371143002,), (1371143033,), (1371143064,), (1371143100,), (1371143132,), (1371143420,), (1371143424,), (1371143437,), (1371143442,), (1371143450,), (1371143453,), (1371143575,), (1371143637,), (1371143698,), (1371143761,), (1371143825,), (1371144071,), (1371144131,), (1371144215,), (1371144306,), (1371144406,), (1371144473,), (1371144722,), (1371144810,), (1371144872,), (1371144938,), (1371145025,), (1371145087,), (1371145273,), (1371145298,), (1371145301,), (1371145346,), (1371145397,), (1371145444,), (1371145870,), (1371145892,), (1371145920,), (1371145922,), (1371145972,), (1371146029,), (1371146091,), (1371146094,), (1371146098,), (1371146101,), (1371146105,), (1371146108,), (1371146123,), (1371146128,), (1371146131,), (1371146135,), (1371146139,), (1371146143,), (1371146160,), (1371146173,), (1371146207,), (1371146241,), (1371146275,), (1371146310,), (1371146540,), (1371146578,), (1371146609,), (1371146643,), (1371146679,), (1371146712,), (1371146924,), (1371146957,), (1371146989,), (1371147016,), (1371147020,), (1371147026,), (1371147043,), (1371147066,), (1371147102,), (1371147139,), (1371147176,), (1371147211,), (1371147338,), (1371147341,), (1371147345,), (1371147379,), (1371147417,), (1371147454,), (1371147483,), (1371147485,), (1371147487,), (1371147489,), (1371147492,), (1371147497,), (1371147691,), (1371147725,), (1371147759,), (1371147797,), (1371147827,), (1371147834,), (1371147853,), (1371147855,), (1371147858,), (1371147860,), (1371147871,), (1371147877,), (1371147898,), (1371147902,), (1371147905,), (1371147909,), (1371147915,), (1371147920,), (1371147934,), (1371147938,), (1371147946,), (1371147957,), (1371147966,), (1371147971,), (1371147993,), (1371147996,), (1371147999,), (1371148001,), (1371148005,), (1371148010,), (1371148028,), (1371148033,), (1371148035,), (1371148039,), (1371148044,), (1371148049,), (1371148075,), (1371148079,), (1371148082,), (1371148085,), (1371148089,), (1371148093,), (1371148117,), (1371148126,), (1371148138,), (1371148142,), (1371148146,), (1371148149,), (1371148176,), (1371148180,), (1371148184,), (1371148188,), (1371148192,), (1371148199,), (1371148222,), (1371148229,), (1371148235,), (1371148251,), (1371148286,), (1371148289,), (1371148310,), (1371148315,), (1371148319,), (1371148324,), (1371148329,), (1371148333,), (1371148349,), (1371148355,), (1371148360,), (1371148365,), (1371148368,), (1371148372,), (1371148405,), (1371148410,), (1371148415,), (1371148419,), (1371148424,), (1371148426,), (1371148450,), (1371148454,), (1371148460,), (1371148463,), (1371148467,), (1371148471,), (1371148488,), (1371148493,), (1371148498,), (1371148503,), (1371148508,), (1371148510,), (1371148531,), (1371148543,), (1371148549,), (1371148553,), (1371148559,), (1371148563,), (1371148590,), (1371148596,), (1371148601,), (1371148605,), (1371148609,), (1371148613,), (1371148630,), (1371148643,), (1371148654,), (1371148659,), (1371148663,), (1371148668,), (1371148711,), (1371148720,), (1371148727,), (1371148730,), (1371148733,), (1371148736,), (1371148747,), (1371148760,), (1371148770,), (1371148774,), (1371148784,), (1371148788,), (1371148815,), (1371148818,), (1371148821,), (1371148825,), (1371148829,), (1371148833,), (1371148843,), (1371148851,), (1371148860,), (1371148864,), (1371148867,), (1371148869,), (1371148886,), (1371148888,), (1371148892,), (1371148897,), (1371148900,), (1371148902,), (1371148921,), (1371148929,), (1371148933,), (1371148937,), (1371148941,), (1371148944,), (1371148972,), (1371148977,), (1371148982,), (1371148986,), (1371148990,), (1371148992,), (1371149001,), (1371149006,), (1371149011,), (1371149015,), (1371149020,), (1371149023,), (1371149046,), (1371149049,), (1371149055,), (1371149059,), (1371149063,), (1371149067,), (1371149083,), (1371149090,), (1371149098,), (1371149100,), (1371149102,), (1371149105,), (1371149139,), (1371149141,), (1371149143,), (1371149145,), (1371149147,), (1371149150,), (1371151367,), (1371151372,), (1371151376,), (1371151380,), (1371151383,), (1371151395,), (1371151398,), (1371151401,), (1371151405,), (1371151408,), (1371151411,), (1371151421,), (1371151425,), (1371151428,), (1371151432,), (1371151435,), (1371151437,), (1371151448,), (1371151452,), (1371151455,), (1371151458,), (1371151461,), (1371151464,), (1371151475,), (1371151479,), (1371151482,), (1371151485,), (1371151488,), (1371151491,), (1371151505,), (1371151510,), (1371151513,), (1371151516,), (1371151519,), (1371151524,), (1371151543,), (1371151547,), (1371151551,), (1371151555,), (1371151559,), (1371151563,), (1371151571,), (1371151574,), (1371151576,), (1371151579,), (1371151583,), (1371151586,), (1371151597,), (1371151601,), (1371151604,), (1371151608,), (1371151612,), (1371151617,), (1371151629,), (1371151631,), (1371151634,), (1371151636,), (1371151639,), (1371151643,), (1371151656,), (1371151659,), (1371151661,), (1371151663,), (1371151665,), (1371151668,), (1371151681,), (1371151684,), (1371151686,), (1371151688,), (1371151691,), (1371151694,), (1371151711,), (1371151714,), (1371151717,), (1371151720,), (1371151722,), (1371151726,), (1371151738,), (1371151749,), (1371151757,), (1371151761,), (1371151764,), (1371151767,), (1371151786,), (1371151789,), (1371151790,), (1371151792,), (1371151796,), (1371151801,), (1371151847,), (1371151857,), (1371151862,), (1371151870,), (1371151890,), (1371151916,), (1371152010,), (1371152077,), (1371152107,), (1371152109,), (1371152116,), (1371152126,), (1371152176,), (1371152180,), (1371152181,), (1371152183,), (1371152187,), (1371152201,), (1371152229,), (1371152231,), (1371152246,), (1371152271,), (1371152278,), (1371152292,), (1371152549,), (1371152653,), (1371152721,), (1371152788,), (1371152890,), (1371152958,), (1371153263,), (1371153267,), (1371153270,), (1371153278,), (1371153285,), (1371153288,), (1371153466,), (1371153512,), (1371153574,), (1371153644,), (1371153726,), (1371153786,), (1371154126,), (1371154221,), (1371154308,), (1371154371,), (1371154480,), (1371154581,), (1371154913,), (1371154982,), (1371154988,), (1371155009,), (1371155052,), (1371155103,), (1371155496,), (1371155554,), (1371155630,), (1371155656,), (1371155665,), (1371155673,), (1371155805,), (1371155845,), (1371155887,), (1371155920,), (1371155936,), (1371155983,), (1371156206,), (1371156260,), (1371156279,), (1371156320,), (1371156351,), (1371156408,), (1371157148,), (1371157176,), (1371157253,), (1371157284,), (1371157299,), (1371157302,), (1371157457,), (1371157548,), (1371157666,), (1371157758,), (1371157868,), (1371157944,), (1371158196,), (1371158218,), (1371158281,), (1371158326,), (1371158365,), (1371158396,), (1371158806,), (1371158816,), (1371158820,), (1371158825,), (1371158858,), (1371158916,), (1371159225,), (1371159272,), (1371159311,), (1371159374,), (1371159422,), (1371159454,), (1371159909,), (1371160017,), (1371160122,), (1371160192,), (1371160228,), (1371160291,), (1371160500,), (1371160559,), (1371160592,), (1371160625,), (1371160663,), (1371160714,), (1371160978,), (1371161024,), (1371161088,), (1371161175,), (1371161270,), (1371161345,), (1371161607,), (1371161612,), (1371161676,), (1371161728,), (1371161776,), (1371161827,), (1371162501,), (1371162609,), (1371162697,), (1371162778,), (1371162832,), (1371162891,), (1371163043,), (1371163112,), (1371163197,), (1371163278,), (1371163357,), (1371163396,), (1371163692,), (1371163774,), (1371163864,), (1371163980,), (1371164091,), (1371164175,), (1371164550,), (1371164577,), (1371164580,), (1371164584,), (1371164598,), (1371164634,), (1371165070,), (1371165126,), (1371165210,), (1371165277,), (1371165335,), (1371165376,), (1371165721,), (1371165852,), (1371165937,), (1371165977,), (1371166039,), (1371166104,), (1371166455,), (1371166488,), (1371166520,), (1371166553,), (1371166595,), (1371166628,), (1371166800,), (1371166838,), (1371166871,), (1371166908,), (1371166947,), (1371167002,), (1371167383,), (1371167418,), (1371167452,), (1371167477,), (1371167496,), (1371167559,), (1371168004,), (1371168053,), (1371168118,), (1371168212,), (1371168298,), (1371168346,), (1371168552,), (1371168583,), (1371168671,), (1371168765,), (1371168823,), (1371168864,), (1371169115,), (1371169148,), (1371169182,), (1371169216,), (1371169239,), (1371169242,), (1371169359,), (1371169361,), (1371169363,), (1371169379,), (1371169414,), (1371169449,), (1371169650,), (1371169714,), (1371169783,), (1371169825,), (1371169884,), (1371169928,), (1371170055,), (1371170064,), (1371170090,), (1371170123,), (1371170160,), (1371170199,), (1371170403,), (1371170464,), (1371170534,), (1371170595,), (1371170667,), (1371170730,), (1371171238,), (1371171316,), (1371171368,), (1371171426,), (1371171438,), (1371171442,), (1371171671,), (1371171735,), (1371171773,), (1371171776,), (1371171813,), (1371171858,), (1371172219,), (1371172286,), (1371172329,), (1371172366,), (1371172415,), (1371172421,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 60, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24723307]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] map_info['map_portfolio_photo'] : {24723307: [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671, 1371171442, 1371171438, 1371171426, 1371171368, 1371171316, 1371171238, 1371170730, 1371170667, 1371170595, 1371170534, 1371170464, 1371170403, 1371170199, 1371170160, 1371170123, 1371170090, 1371170064, 1371170055, 1371169928, 1371169884, 1371169825, 1371169783, 1371169714, 1371169650, 1371169449, 1371169414, 1371169379, 1371169363, 1371169361, 1371169359, 1371169242, 1371169239, 1371169216, 1371169182, 1371169148, 1371169115, 1371168864, 1371168823, 1371168765, 1371168671, 1371168583, 1371168552, 1371168346, 1371168298, 1371168212, 1371168118, 1371168053, 1371168004]} final : True mtd_id 4302 list_pids : [1371172421, 1371172415, 1371172366, 1371172329, 1371172286, 1371172219, 1371171858, 1371171813, 1371171776, 1371171773, 1371171735, 1371171671] Looping around the photos to save general results len do output : 1 /24723307Didn'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, '3250806') ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806') ('4302', None, None, None, None, None, None, None, '3250806') ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806') 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, '24723307', 'None', None, None, None, None, '3250806'), ('4302', '24723307', '1371172421', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172415', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172366', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172329', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172286', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371172219', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171858', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171813', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171776', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171773', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171735', None, None, None, None, None, '3250806'), ('4302', '24723307', '1371171671', None, None, None, None, None, '3250806')] time used for this insertion : 0.01721978187561035 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.257852554321289 time spend to save output : 0.017453908920288086 total time spend for step 5 : 2.275306463241577 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 (3250806) 2.21user 2.49system 0:10.80elapsed 43%CPU (0avgtext+0avgdata 161732maxresident)k 88inputs+9960outputs (6major+71804minor)pagefaults 0swaps