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 : 4061100 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 (4016670) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4016670) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307002 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4016670'] with mtr_portfolio_ids : ['28307002'] and first list_photo_ids : [] new path : /proc/4061100/ Name: python3 Umask: 0002 State: R (running) Tgid: 4061100 Ngid: 0 Pid: 4061100 PPid: 4061099 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4061100 NSpid: 4061100 NSpgid: 4059159 NSsid: 4059159 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97736 kB VmRSS: 97736 kB RssAnon: 59908 kB RssFile: 37828 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 59 nonvoluntary_ctxt_switches: 162 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4061100', 'Ngid': '0', 'Pid': '4061100', 'PPid': '4061099', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4061100', 'NSpid': '4061100', 'NSpgid': '4059159', 'NSsid': '4059159', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97736 kB', 'VmRSS': '97736 kB', 'RssAnon': '59908 kB', 'RssFile': '37828 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '59', 'nonvoluntary_ctxt_switches': '162'} ('datou_batch_current', '4061100', '1106908', '0', '1106884', '865636', '97736', b'', 'marlene', '4016670') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28307002) 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 (4016670 ) ) 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 (28307002) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393104486, 'portfolio_id': 28307002}, {'photo_id': 1393104485, 'portfolio_id': 28307002}, {'photo_id': 1393104423, 'portfolio_id': 28307002}, {'photo_id': 1393104413, 'portfolio_id': 28307002}, {'photo_id': 1393104406, 'portfolio_id': 28307002}, {'photo_id': 1393103608, 'portfolio_id': 28307002}, {'photo_id': 1393103602, 'portfolio_id': 28307002}, {'photo_id': 1393103590, 'portfolio_id': 28307002}, {'photo_id': 1393103515, 'portfolio_id': 28307002}, {'photo_id': 1393103512, 'portfolio_id': 28307002}, {'photo_id': 1393103508, 'portfolio_id': 28307002}, {'photo_id': 1393103396, 'portfolio_id': 28307002}, {'photo_id': 1393103355, 'portfolio_id': 28307002}, {'photo_id': 1393103353, 'portfolio_id': 28307002}, {'photo_id': 1393103276, 'portfolio_id': 28307002}, {'photo_id': 1393103273, 'portfolio_id': 28307002}, {'photo_id': 1393103271, 'portfolio_id': 28307002}, {'photo_id': 1393103270, 'portfolio_id': 28307002}, {'photo_id': 1393103268, 'portfolio_id': 28307002}, {'photo_id': 1393103228, 'portfolio_id': 28307002}, {'photo_id': 1393103224, 'portfolio_id': 28307002}, {'photo_id': 1393103219, 'portfolio_id': 28307002}, {'photo_id': 1393103216, 'portfolio_id': 28307002}, {'photo_id': 1393103214, 'portfolio_id': 28307002}, {'photo_id': 1393103212, 'portfolio_id': 28307002}, {'photo_id': 1393103175, 'portfolio_id': 28307002}, {'photo_id': 1393103172, 'portfolio_id': 28307002}, {'photo_id': 1393103168, 'portfolio_id': 28307002}, {'photo_id': 1393103164, 'portfolio_id': 28307002}, {'photo_id': 1393103150, 'portfolio_id': 28307002}, {'photo_id': 1393103147, 'portfolio_id': 28307002}, {'photo_id': 1393103143, 'portfolio_id': 28307002}, {'photo_id': 1393103140, 'portfolio_id': 28307002}, {'photo_id': 1393103139, 'portfolio_id': 28307002}, {'photo_id': 1393103138, 'portfolio_id': 28307002}, {'photo_id': 1393103103, 'portfolio_id': 28307002}, {'photo_id': 1393103099, 'portfolio_id': 28307002}, {'photo_id': 1393103089, 'portfolio_id': 28307002}, {'photo_id': 1393103083, 'portfolio_id': 28307002}, {'photo_id': 1393103079, 'portfolio_id': 28307002}, {'photo_id': 1393103047, 'portfolio_id': 28307002}, {'photo_id': 1393103043, 'portfolio_id': 28307002}, {'photo_id': 1393103041, 'portfolio_id': 28307002}, {'photo_id': 1393103038, 'portfolio_id': 28307002}, {'photo_id': 1393103036, 'portfolio_id': 28307002}, {'photo_id': 1393102921, 'portfolio_id': 28307002}, {'photo_id': 1393102917, 'portfolio_id': 28307002}, {'photo_id': 1393102914, 'portfolio_id': 28307002}, {'photo_id': 1393102913, 'portfolio_id': 28307002}, {'photo_id': 1393102912, 'portfolio_id': 28307002}, {'photo_id': 1393102895, 'portfolio_id': 28307002}, {'photo_id': 1393102877, 'portfolio_id': 28307002}, {'photo_id': 1393102842, 'portfolio_id': 28307002}, {'photo_id': 1393102809, 'portfolio_id': 28307002}] map_portfolio_id_photo_id: {28307002: [1393104486, 1393104485, 1393104423, 1393104413, 1393104406, 1393103608, 1393103602, 1393103590, 1393103515, 1393103512, 1393103508, 1393103396, 1393103355, 1393103353, 1393103276, 1393103273, 1393103271, 1393103270, 1393103268, 1393103228, 1393103224, 1393103219, 1393103216, 1393103214, 1393103212, 1393103175, 1393103172, 1393103168, 1393103164, 1393103150, 1393103147, 1393103143, 1393103140, 1393103139, 1393103138, 1393103103, 1393103099, 1393103089, 1393103083, 1393103079, 1393103047, 1393103043, 1393103041, 1393103038, 1393103036, 1393102921, 1393102917, 1393102914, 1393102913, 1393102912, 1393102895, 1393102877, 1393102842, 1393102809]} ##### 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.016449928283691406 #### 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 Fri Nov 7 14:32: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 (28307002) 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 : 28307002 get user id for portfolio 28307002 get sub ptf for main ptf 28307002, type 3726 and hashtags ['autre_refus', 'papier', 'flou', 'kraft', 'environnement', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'plastique', 'metal', 'Teint_Dans_La_Masse', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28307002 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','kraft','environnement','mal_croppe','Carton_gris','Carton_brun','plastique','metal','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28307002 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','kraft','environnement','mal_croppe','Carton_gris','Carton_brun','plastique','metal','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28307002, 'sub_port_id': 28307007, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158912, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'mal_croppe': {'main_port_id': 28307002, 'sub_port_id': 28307008, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158913, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28307002, 'sub_port_id': 28307009, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158914, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'kraft': {'main_port_id': 28307002, 'sub_port_id': 28307010, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158915, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'cartonnette': {'main_port_id': 28307002, 'sub_port_id': 28307011, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158916, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'flou': {'main_port_id': 28307002, 'sub_port_id': 28307012, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158917, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'Carton_gris': {'main_port_id': 28307002, 'sub_port_id': 28307013, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158918, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'Carton_brun': {'main_port_id': 28307002, 'sub_port_id': 28307014, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158919, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'environnement': {'main_port_id': 28307002, 'sub_port_id': 28307015, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158920, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'papier': {'main_port_id': 28307002, 'sub_port_id': 28307016, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158921, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'plastique': {'main_port_id': 28307002, 'sub_port_id': 28307017, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158922, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}, 'autre_refus': {'main_port_id': 28307002, 'sub_port_id': 28307018, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158923, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28307007 , 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=28307002 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 (28307007) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307008 , 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=28307002 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 (28307008) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307009 , 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=28307002 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 (28307009) result : ((1393103127,), (1393103182,), (1393103197,), (1393103342,), (1393103343,), (1393103344,), (1393103638,), (1393103639,), (1393103657,), (1393103964,), (1393103966,), (1393104106,), (1393104369,), (1393104491,), (1393104492,), (1393104493,), (1393104494,), (1393104526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307010 , 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=28307002 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 (28307010) result : ((1393103208,), (1393104421,), (1393104422,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307011 , 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=28307002 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 (28307011) result : ((1393103132,), (1393103133,), (1393103186,), (1393103348,), (1393103659,), (1393104126,), (1393104128,), (1393104498,), (1393104499,), (1393104584,), (1393104585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307012 , 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=28307002 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 (28307012) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307013 , 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=28307002 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 (28307013) result : ((1393103130,), (1393103184,), (1393103185,), (1393103201,), (1393103202,), (1393103203,), (1393103345,), (1393103346,), (1393103347,), (1393103642,), (1393103643,), (1393103644,), (1393103645,), (1393103990,), (1393103992,), (1393103994,), (1393103996,), (1393104116,), (1393104372,), (1393104373,), (1393104399,), (1393104400,), (1393104401,), (1393104402,), (1393104403,), (1393104581,), (1393104582,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307014 , 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=28307002 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 (28307014) result : ((1393103134,), (1393103187,), (1393103204,), (1393103350,), (1393103661,), (1393103662,), (1393103663,), (1393103665,), (1393104140,), (1393104407,), (1393104408,), (1393104409,), (1393104410,), (1393104411,), (1393104412,), (1393104502,), (1393104504,), (1393104506,), (1393104507,), (1393104586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307015 , 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=28307002 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 (28307015) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307016 , 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=28307002 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 (28307016) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307017 , 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=28307002 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 (28307017) result : ((1393103135,), (1393103136,), (1393103188,), (1393103205,), (1393103351,), (1393103352,), (1393103667,), (1393104149,), (1393104377,), (1393104415,), (1393104416,), (1393104417,), (1393104418,), (1393104419,), (1393104420,), (1393104511,), (1393104512,), (1393104587,), (1393104588,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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 28307018 , 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=28307002 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 (28307018) result : ((1393103128,), (1393103129,), (1393103199,), (1393103641,), (1393103974,), (1393104395,), (1393104396,), (1393104397,), (1393104398,), (1393104497,), (1393104559,), (1393104564,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28307002) result : ((1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) 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`=28307002 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','kraft','environnement','mal_croppe','Carton_gris','Carton_brun','plastique','metal','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28307002 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','flou','kraft','environnement','mal_croppe','Carton_gris','Carton_brun','plastique','metal','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28307002, 'sub_port_id': 28307019, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158924, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'mal_croppe': {'main_port_id': 28307002, 'sub_port_id': 28307020, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158925, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28307002, 'sub_port_id': 28307021, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158926, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'kraft': {'main_port_id': 28307002, 'sub_port_id': 28307022, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158927, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'cartonnette': {'main_port_id': 28307002, 'sub_port_id': 28307023, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158928, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'flou': {'main_port_id': 28307002, 'sub_port_id': 28307024, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158929, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'Carton_gris': {'main_port_id': 28307002, 'sub_port_id': 28307025, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158930, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'Carton_brun': {'main_port_id': 28307002, 'sub_port_id': 28307026, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158931, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'environnement': {'main_port_id': 28307002, 'sub_port_id': 28307027, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158932, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'papier': {'main_port_id': 28307002, 'sub_port_id': 28307028, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158933, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'plastique': {'main_port_id': 28307002, 'sub_port_id': 28307029, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158934, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}, 'autre_refus': {'main_port_id': 28307002, 'sub_port_id': 28307030, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19158935, 'last_updated_at': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 7, 14, 31, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 7, 14, 19, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307011 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307024,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307012 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307025,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28307030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28307018 lien utilise dans velours : https://marlene.fotonower.com/velours/28307019,28307020,28307021,28307022,28307023,28307024,28307025,28307026,28307027,28307028,28307029,28307030?tags=metal,mal_croppe,Teint_Dans_La_Masse,kraft,cartonnette,flou,Carton_gris,Carton_brun,environnement,papier,plastique,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28307002]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393104486, 1393104485] map_info['map_portfolio_photo'] : {28307002: [1393104486, 1393104485, 1393104423, 1393104413, 1393104406, 1393103608, 1393103602, 1393103590, 1393103515, 1393103512, 1393103508, 1393103396, 1393103355, 1393103353, 1393103276, 1393103273, 1393103271, 1393103270, 1393103268, 1393103228, 1393103224, 1393103219, 1393103216, 1393103214, 1393103212, 1393103175, 1393103172, 1393103168, 1393103164, 1393103150, 1393103147, 1393103143, 1393103140, 1393103139, 1393103138, 1393103103, 1393103099, 1393103089, 1393103083, 1393103079, 1393103047, 1393103043, 1393103041, 1393103038, 1393103036, 1393102921, 1393102917, 1393102914, 1393102913, 1393102912, 1393102895, 1393102877, 1393102842, 1393102809]} final : False mtd_id 4302 list_pids : [1393104486, 1393104485] Looping around the photos to save general results len do output : 1 /28307002. 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, '4016670') ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670') ('4302', None, None, None, None, None, None, None, '4016670') ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '28307002', "{'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018}", None, None, None, None, '4016670'), ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670'), ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670')] time used for this insertion : 0.01261758804321289 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5821187496185303 time spend to save output : 0.012931108474731445 total time spend for step 1 : 1.5950498580932617 step2:final Fri Nov 7 14:32: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 (28307002) 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 28307002 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393102895,1393102877,1393102842,1393102809,1393102921,1393102917,1393102914,1393102913,1393102912,1393103047,1393103043,1393103041,1393103038,1393103036,1393103103,1393103099,1393103089,1393103083,1393103079,1393103150,1393103147,1393103143,1393103140,1393103139,1393103138,1393103175,1393103172,1393103168,1393103164,1393103228,1393103224,1393103219,1393103216,1393103214,1393103212,1393103276,1393103273,1393103271,1393103270,1393103268,1393103515,1393103512,1393103508,1393103396,1393103355,1393103353,1393103608,1393103602,1393103590,1393104423,1393104413,1393104406,1393104486,1393104485); 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([28307002]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',)} new output for save of step final : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',)} [1393104486, 1393104485] map_info['map_portfolio_photo'] : {28307002: [1393104486, 1393104485, 1393104423, 1393104413, 1393104406, 1393103608, 1393103602, 1393103590, 1393103515, 1393103512, 1393103508, 1393103396, 1393103355, 1393103353, 1393103276, 1393103273, 1393103271, 1393103270, 1393103268, 1393103228, 1393103224, 1393103219, 1393103216, 1393103214, 1393103212, 1393103175, 1393103172, 1393103168, 1393103164, 1393103150, 1393103147, 1393103143, 1393103140, 1393103139, 1393103138, 1393103103, 1393103099, 1393103089, 1393103083, 1393103079, 1393103047, 1393103043, 1393103041, 1393103038, 1393103036, 1393102921, 1393102917, 1393102914, 1393102913, 1393102912, 1393102895, 1393102877, 1393102842, 1393102809]} final : False mtd_id 4302 list_pids : [1393104486, 1393104485] Looping around the photos to save general results len do output : 2 /1393104486.Didn't retrieve data . /1393104485.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, '4016670') ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670') ('4302', None, None, None, None, None, None, None, '4016670') ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '28307002', '1393104486', '0.05792845647008964', None, None, None, None, '4016670'), ('4302', '28307002', '1393104485', '0.05792845647008964', None, None, None, None, '4016670')] time used for this insertion : 0.011654138565063477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07201123237609863 time spend to save output : 0.011960983276367188 total time spend for step 2 : 0.08397221565246582 step3:velours_tree Fri Nov 7 14:32: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 : {28307002: [{'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018}]} input_args_next_step : {28307002: ()} output_args : {28307002: [{'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018}]} args : 28307002 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28307002) 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([28307002]) 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.30733656883239746 time spend to save output : 5.340576171875e-05 total time spend for step 3 : 0.3073899745941162 step4:send_mail_cod Fri Nov 7 14:32: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 : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',)} input_args_next_step : {1393104486: ()} output_args : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',)} args : 1393104486 depend.output_id : 0 input_args_next_step : {1393104486: ('0.05792845647008964',), 1393104485: ()} output_args : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',)} args : 1393104485 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 : {28307002: [{'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018}]} input_args_next_step : {1393104486: ('0.05792845647008964',), 1393104485: ('0.05792845647008964',), 28307002: ()} output_args : {28307002: [{'metal': 28307007, 'mal_croppe': 28307008, 'Teint_Dans_La_Masse': 28307009, 'kraft': 28307010, 'cartonnette': 28307011, 'flou': 28307012, 'Carton_gris': 28307013, 'Carton_brun': 28307014, 'environnement': 28307015, 'papier': 28307016, 'plastique': 28307017, 'autre_refus': 28307018}]} args : 28307002 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 :3, first value : ('0.05792845647008964',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28307002) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1393104486,1393104485) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393104485 begin to download photo : 1393104486 download finish for photo 1393104485 download finish for photo 1393104486 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette283070071762522380/ imagette283070081762522380/ length of list_filenames : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P28307002_07-11-2025_14_33_00.pdf 28307007 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307007 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283070071762522380 28307008 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283070081762522380 28307010 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393103208: '1762521687_2382638_1393103079_fdb7d54cd41acf9e2a72bc8ae44dfdcd_rle_crop_4024742331_0.png', 1393104421: '1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747635_0.png', 1393104422: '1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/0e57a676036961a231003c9aba3c59ec_7462859.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/90a82511a3c2e5a40d4eddeaa07b9a7a_93795714.png change filename to text .imagette283070101762522380/ imagette283070101762522380/1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747653_0.png.png imagette283070101762522380/1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747635_0.png.png imagette283070101762522380/1762521687_2382638_1393103079_fdb7d54cd41acf9e2a72bc8ae44dfdcd_rle_crop_4024742331_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/508f8522543a9954c6c1ebc334b5f73d_32853995.png imagette283070101762522380 28307011 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307011 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393103132: '1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741617_0.png', 1393103133: '1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741645_0.png', 1393103186: '1762521665_2382286_1393102895_ebcd369b7beec5ffdb603c9c3f631ee3_rle_crop_4024742187_0.png', 1393103348: '1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744493_0.png', 1393103659: '1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745352_0.png', 1393104126: '1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746468_0.png', 1393104128: '1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746466_0.png', 1393104498: '1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748335_0.png', 1393104499: '1762522266_2409178_1393103216_873036c22b16b02635b671b342dbdefb_rle_crop_4024748348_0.png', 1393104584: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748546_0.png', 1393104585: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748555_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/8abc2b5c600c2d6ba09565e31acfa5fd_9036932.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/327b32d7391ace63f3bc8d9dc4be644e_32217275.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/de81594ed86b70d34c07e4ea8f0ac364_94450691.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/0500b1441b61c13c5771b62358b12fac_30508790.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/04e7fcacc9ad8ee5efd37c1883d62de6_95724961.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/1bc33d2faa261eb3b9b2b8b994d77e8f_89850318.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/f847126baa041aa7aa9900a7e2b82a12_11190822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/d5054ad27efc28b6ff4655362b31547d_32915885.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/de2ed6003d432c275251506c09a39e35_19047911.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/68a925a948b359938d33ddfcfe817a5e_4207443.png change filename to text .imagette283070111762522380/ imagette283070111762522380/1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741645_0.png.png imagette283070111762522380/1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744493_0.png.png imagette283070111762522380/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748555_0.png.png imagette283070111762522380/1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746468_0.png.png imagette283070111762522380/1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746466_0.png.png imagette283070111762522380/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748546_0.png.png imagette283070111762522380/1762521665_2382286_1393102895_ebcd369b7beec5ffdb603c9c3f631ee3_rle_crop_4024742187_0.png.png imagette283070111762522380/1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741617_0.png.png imagette283070111762522380/1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745352_0.png.png imagette283070111762522380/1762522266_2409178_1393103216_873036c22b16b02635b671b342dbdefb_rle_crop_4024748348_0.png.png imagette283070111762522380/1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748335_0.png.png imagette283070121762522381/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/ae3185354b3a6a20f0c53934ee2b0a5e_61416625.png imagette283070111762522380 28307012 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307012 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette283070121762522381 28307017 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393104415: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747669_0.png', 1393104588: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748562_0.png', 1393104587: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748560_0.png', 1393104512: '1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748471_0.png', 1393104511: '1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748476_0.png', 1393104420: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747699_0.png', 1393104419: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747698_0.png', 1393104418: '1762522167_2404315_1393103355_cd1303dcbc2674aab7e551e19e563281_rle_crop_4024747681_0.png', 1393104417: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747670_0.png', 1393104416: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747673_0.png', 1393103135: '1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741641_0.png', 1393104377: '1762522145_2403963_1393103043_cf19680fec6bea061a403c84dc4f3324_rle_crop_4024747408_0.png', 1393104149: '1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746469_0.png', 1393103667: '1762521927_2393592_1393103268_666f51440f4e2772e98f638cb5ef1594_rle_crop_4024745398_0.png', 1393103352: '1762521805_2388172_1393103143_a79185cdd7fcae0bc07ad5a8890a6eda_rle_crop_4024744513_0.png', 1393103351: '1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744492_0.png', 1393103205: '1762521687_2382638_1393103079_fdb7d54cd41acf9e2a72bc8ae44dfdcd_rle_crop_4024742335_0.png', 1393103188: '1762521665_2382286_1393102877_a3b7a197d01376eaacfafd38549d2290_rle_crop_4024742199_0.png', 1393103136: '1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741653_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/720912c8f223689e7d280361a135fb72_24738384.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9ca909f135881c2ae06c460d0ba8bad8_44030063.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/ccf57418d49a9dd105b5678adca50154_23804252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/132b84c452fb39071da7da687f287bae_93139414.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/381676a5081f8795342c9299e5c2f7b6_19254325.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a800e53ae1b5014c897ef3464a57f7fe_80908173.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9bf66958d884ef72c57b5fe9d88313ec_50325066.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/7d9b3a5c489e667b1e6b023e075e48ec_58710663.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5db1f40af85ecc99b863b978074b7404_32480132.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/f4cf2b2603bc72a6ca7e50c8519d1d91_41953300.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/178c47062f54e380dd40b9e87dd52cef_55362823.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/3ebeab75525d26c859109a2d8554ff58_13237004.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/51c03d08a7e2b7ad1a745766bd08ee41_35497049.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/1301b9226b2e0db41278c17bc3b72298_56440191.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/322ce90462585cf90f47514f7d4bdb83_13773781.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/80302b3eef17761381f5c51fa7eba387_18087455.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/4d9874fe58be466e4e2b4acba2ddad77_96878182.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/af12a6e6d1ac72cabcba7a0ed5063b67_65218473.png change filename to text .imagette283070171762522381/ imagette283070171762522381/1762521687_2382638_1393103079_fdb7d54cd41acf9e2a72bc8ae44dfdcd_rle_crop_4024742335_0.png.png imagette283070171762522381/1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746469_0.png.png imagette283070171762522381/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748560_0.png.png imagette283070171762522381/1762522167_2404315_1393103355_cd1303dcbc2674aab7e551e19e563281_rle_crop_4024747681_0.png.png imagette283070171762522381/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748562_0.png.png imagette283070171762522381/1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748471_0.png.png imagette283070171762522381/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747698_0.png.png imagette283070171762522381/1762521927_2393592_1393103268_666f51440f4e2772e98f638cb5ef1594_rle_crop_4024745398_0.png.png imagette283070171762522381/1762522145_2403963_1393103043_cf19680fec6bea061a403c84dc4f3324_rle_crop_4024747408_0.png.png imagette283070171762522381/1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748476_0.png.png imagette283070171762522381/1762521805_2388172_1393103143_a79185cdd7fcae0bc07ad5a8890a6eda_rle_crop_4024744513_0.png.png imagette283070171762522381/1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744492_0.png.png imagette283070171762522381/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747669_0.png.png imagette283070171762522381/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747699_0.png.png imagette283070171762522381/1762521665_2382286_1393102877_a3b7a197d01376eaacfafd38549d2290_rle_crop_4024742199_0.png.png imagette283070171762522381/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747673_0.png.png imagette283070171762522381/1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741641_0.png.png imagette283070171762522381/1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741653_0.png.png imagette283070171762522381/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747670_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/8792d1aba43f69ca9c1d8700b0ee26ec_79929061.png imagette283070171762522381 28307018 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307018 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393103128: '1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741629_0.png', 1393103129: '1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741638_0.png', 1393103199: '1762521687_2382638_1393103089_2fe0c137662b339e5940cfb55d65deee_rle_crop_4024742306_0.png', 1393103641: '1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744694_0.png', 1393103974: '1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744694_0.png', 1393104395: '1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747639_0.png', 1393104396: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747712_0.png', 1393104397: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747700_0.png', 1393104398: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747709_0.png', 1393104497: '1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748302_0.png', 1393104559: '1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748569_0.png', 1393104564: '1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748572_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5a53d123443443793d4ca3a3fbf344be_64956545.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9e1e422bc9f1b336f51b086601dfee80_67247042.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5858ed896585b9dddef5bac0dbe89314_93428239.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/8bd4d49e092bd91c54b4de44a2c5ae4c_50141894.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/8bd4d49e092bd91c54b4de44a2c5ae4c_78857448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/dab90758924ac72cae6067620f886052_31264243.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/7a0c7428b7ed9f3f277b47f26ed92534_6304178.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e98c7c89a85646f9e8e63895fcb787fe_61721829.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/3c47d16d14c0a6fb4000cd45c4360a3e_21173320.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/3d054126819a6df6aec54ec2a53e947b_22179148.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/fcbd9e386b271874fd547c86c82b9a0f_89433353.png change filename to text .imagette283070181762522382/ imagette283070181762522382/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747709_0.png.png imagette283070181762522382/1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741638_0.png.png imagette283070181762522382/1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748572_0.png.png imagette283070181762522382/1762521566_2377543_1393102913_c67d7b714e6d390b382867b1aa5847d9_rle_crop_4024741629_0.png.png imagette283070181762522382/1762521687_2382638_1393103089_2fe0c137662b339e5940cfb55d65deee_rle_crop_4024742306_0.png.png imagette283070181762522382/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747700_0.png.png imagette283070181762522382/1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747639_0.png.png imagette283070181762522382/1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748569_0.png.png imagette283070181762522382/1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744694_0.png.png imagette283070181762522382/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747712_0.png.png imagette283070181762522382/1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744694_0.png.png imagette283070181762522382/1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748302_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/d540e2658d505184f8e09f54b88a17ea_87786024.png imagette283070181762522382 28307009 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307009 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393103964: '1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744699_0.png', 1393104526: '1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748575_0.png', 1393104494: '1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748469_0.png', 1393104493: '1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748472_0.png', 1393104492: '1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748337_0.png', 1393104491: '1762522266_2409178_1393103224_0511aa49e88d3ff82c7fb59308d4ec54_rle_crop_4024748320_0.png', 1393104369: '1762522145_2403963_1393103043_cf19680fec6bea061a403c84dc4f3324_rle_crop_4024747415_0.png', 1393104106: '1762522046_2398791_1393103602_36ae05ffc67656d11597430bb5b08523_rle_crop_4024746462_0.png', 1393103966: '1762522026_2398429_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744712_0.png', 1393103127: '1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741650_0.png', 1393103657: '1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745361_0.png', 1393103639: '1762521905_2392908_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744712_0.png', 1393103638: '1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744699_0.png', 1393103344: '1762521805_2388172_1393103139_10858cc63d5bc41d0efc433a22d98ce1_rle_crop_4024744529_0.png', 1393103343: '1762521805_2388172_1393103143_a79185cdd7fcae0bc07ad5a8890a6eda_rle_crop_4024744516_0.png', 1393103342: '1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744497_0.png', 1393103197: '1762521687_2382638_1393103089_2fe0c137662b339e5940cfb55d65deee_rle_crop_4024742312_0.png', 1393103182: '1762521665_2382286_1393102842_3e8cf5f4420f1aa5dbcdcf2f7f4b9301_rle_crop_4024742208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a52679df5ee815862175ed3ef66070d1_30870703.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a364576eea104d5d861d3778b985982e_43758352.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e3882f469e1fa1055afd0baaf9dddcee_2534390.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/4369fc049e88115189463f60ee9b725e_90507807.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5678f377ab9ce3fb137315cd9c7289e2_63246148.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/d8bac210b64236a344db19dfe144c68c_46229564.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/6d3dd724eb714297818493604ee5a2e6_63275653.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/2e9f38c1a657dfeec7244c33a678774e_72860370.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/4836f73741a5a618095408cd488f3bd9_53236218.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/d2714d35870c1e7482d6567cf8271919_1464345.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/32036b882347c1ffa935e11a4180ebfb_21075071.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/4836f73741a5a618095408cd488f3bd9_97645719.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a52679df5ee815862175ed3ef66070d1_46999815.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/365fb48aa374e06b02944f6054b16abe_67450736.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/7e35704b31570386c105296429cb9cb7_30610228.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/04d2bb07da805ae1713ea4e7b89767df_6834424.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/071170ebf58463456874596a7c667b94_37654015.png change filename to text .imagette283070091762522383/ imagette283070091762522383/1762521805_2388172_1393103139_10858cc63d5bc41d0efc433a22d98ce1_rle_crop_4024744529_0.png.png imagette283070091762522383/1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748337_0.png.png imagette283070091762522383/1762521665_2382286_1393102842_3e8cf5f4420f1aa5dbcdcf2f7f4b9301_rle_crop_4024742208_0.png.png imagette283070091762522383/1762522266_2409178_1393103224_0511aa49e88d3ff82c7fb59308d4ec54_rle_crop_4024748320_0.png.png imagette283070091762522383/1762521805_2388172_1393103143_a79185cdd7fcae0bc07ad5a8890a6eda_rle_crop_4024744516_0.png.png imagette283070091762522383/1762522145_2403963_1393103043_cf19680fec6bea061a403c84dc4f3324_rle_crop_4024747415_0.png.png imagette283070091762522383/1762521905_2392908_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744712_0.png.png imagette283070091762522383/1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744699_0.png.png imagette283070091762522383/1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748469_0.png.png imagette283070091762522383/1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748472_0.png.png imagette283070091762522383/1762522285_2409849_1393104406_428adddd55b75b2c232f80e5129abe70_rle_crop_4024748575_0.png.png imagette283070091762522383/1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745361_0.png.png imagette283070091762522383/1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744699_0.png.png imagette283070091762522383/1762522026_2398429_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744712_0.png.png imagette283070091762522383/1762522046_2398791_1393103602_36ae05ffc67656d11597430bb5b08523_rle_crop_4024746462_0.png.png imagette283070091762522383/1762521687_2382638_1393103089_2fe0c137662b339e5940cfb55d65deee_rle_crop_4024742312_0.png.png imagette283070091762522383/1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744497_0.png.png imagette283070091762522383/1762521566_2377543_1393102912_cc47c55db163fcfaafa987c8f66c2d3a_rle_crop_4024741650_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/c8c49f35d6a7ecad5c265fd75d4b3f42_81808644.png imagette283070091762522383 28307013 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393103990: '1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744692_0.png', 1393104582: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748554_0.png', 1393104581: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748553_0.png', 1393104403: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747702_0.png', 1393104402: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747701_0.png', 1393104401: '1762522167_2404315_1393103355_cd1303dcbc2674aab7e551e19e563281_rle_crop_4024747685_0.png', 1393104400: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747662_0.png', 1393104399: '1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747638_0.png', 1393104373: '1762522145_2403963_1393103041_210bce212993743f4c8fa2fd629545d6_rle_crop_4024747420_0.png', 1393104372: '1762522145_2403963_1393103041_210bce212993743f4c8fa2fd629545d6_rle_crop_4024747419_0.png', 1393104116: '1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746471_0.png', 1393103996: '1762522026_2398429_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744703_0.png', 1393103994: '1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744696_0.png', 1393103992: '1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744690_0.png', 1393103130: '1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741618_0.png', 1393103645: '1762521905_2392908_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744703_0.png', 1393103644: '1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744696_0.png', 1393103643: '1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744690_0.png', 1393103642: '1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744692_0.png', 1393103347: '1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744490_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/0bfa02ac9047615a3f606593a5f9d145_77272857.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/bf58e7226d95440edb8508c3a6b29342_18338787.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5d33534fa8d0444e7e3ac53306d7b6ce_60944760.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/4a3a954e511681f7ecf5ecc7a3437eb1_84680208.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/2be55c1ae27734dca369701841abdf41_3604072.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e6e77f694d26d838df6596a888a9e4b3_91429554.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/2ca476ddcdea8c309c3d8ed74e504770_98559536.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9f7ef14553983dc4a65d9acb9ac11bec_25792767.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/b2bbe25df5928136e5e48a3412db319a_7907404.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/f959282153fa1858c6aca481dcde0504_63696711.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/731fc6fb6fe1525fcef1896e45510c84_84739543.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9ce402c39a66a6719da17ecfd33d89db_66068051.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/63c9128b726ac57fab997bb78951029f_86004830.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5f9a87d416f5b438d76d1e480a609ab8_14531707.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e02bf897dbe5e87a6ef908a4868d9ee6_30390244.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9ce402c39a66a6719da17ecfd33d89db_70734185.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/63c9128b726ac57fab997bb78951029f_93075656.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/5f9a87d416f5b438d76d1e480a609ab8_80986554.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/0bfa02ac9047615a3f606593a5f9d145_59920896.png change filename to text .imagette283070131762522384/ imagette283070131762522384/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747701_0.png.png imagette283070131762522384/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748553_0.png.png imagette283070131762522384/1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746471_0.png.png imagette283070131762522384/1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744696_0.png.png imagette283070131762522384/1762522167_2404315_1393103512_685c1fc9ef1b68993703cc549fb9718c_rle_crop_4024747638_0.png.png imagette283070131762522384/1762522167_2404315_1393103355_cd1303dcbc2674aab7e551e19e563281_rle_crop_4024747685_0.png.png imagette283070131762522384/1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744692_0.png.png imagette283070131762522384/1762522026_2398429_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744703_0.png.png imagette283070131762522384/1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744690_0.png.png imagette283070131762522384/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748554_0.png.png imagette283070131762522384/1762522145_2403963_1393103041_210bce212993743f4c8fa2fd629545d6_rle_crop_4024747419_0.png.png imagette283070131762522384/1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744490_0.png.png imagette283070131762522384/1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744692_0.png.png imagette283070131762522384/1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741618_0.png.png imagette283070131762522384/1762522145_2403963_1393103041_210bce212993743f4c8fa2fd629545d6_rle_crop_4024747420_0.png.png imagette283070131762522384/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747662_0.png.png imagette283070131762522384/1762521905_2392908_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744696_0.png.png imagette283070131762522384/1762521905_2392908_1393103168_97a0189510f14498f1b3c3a4b163c581_rle_crop_4024744703_0.png.png imagette283070131762522384/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747702_0.png.png imagette283070131762522384/1762522026_2398429_1393103172_8cff3d0d99682443862add609101efec_rle_crop_4024744690_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/b8e38b7dd07824e8001f9f7a730efddb_22737275.png imagette283070131762522384 28307014 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393104408: '1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747651_0.png', 1393104586: '1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748559_0.png', 1393104507: '1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748467_0.png', 1393104506: '1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748341_0.png', 1393104504: '1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748309_0.png', 1393104502: '1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748310_0.png', 1393104412: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747705_0.png', 1393104411: '1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747710_0.png', 1393104410: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747666_0.png', 1393104409: '1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747672_0.png', 1393103134: '1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741620_0.png', 1393104407: '1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747652_0.png', 1393104140: '1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746473_0.png', 1393103665: '1762521927_2393592_1393103268_666f51440f4e2772e98f638cb5ef1594_rle_crop_4024745394_0.png', 1393103663: '1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745358_0.png', 1393103662: '1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745354_0.png', 1393103661: '1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745353_0.png', 1393103350: '1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744494_0.png', 1393103204: '1762521687_2382638_1393103083_faff2176a9c28a6229c7109f7a55c83f_rle_crop_4024742324_0.png', 1393103187: '1762521665_2382286_1393102895_ebcd369b7beec5ffdb603c9c3f631ee3_rle_crop_4024742191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e2972cb42fee997b3f30fb521f6e69da_67997692.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9634e65a968ad6e199f75b28f806a7a5_83564746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/02b852320edf55c306bdde1521f5c1cf_75297278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/234a8a0239be2fcee147c18f30833de4_87751393.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/46c3ad305fa6234926ad8943919e16fb_78274195.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/6e7ebda9f4fbc9620b0745b6447b8ce3_90322112.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/fbceee2313014376917c8d9385877ea7_84889307.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/26eaad6fbb90fa52a15177e52d398343_95817738.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/1578e48bb377f826e29d2858e9474932_39946240.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/dda99c8573da01f1ec6e7c918aaae4c1_2672617.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/2a1bc0ad230b0be41e92826b074d9ac7_82047032.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/749d95fd5d142f11ed7c33da12038eaf_42236511.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/991b805f1ac3e771dc0101201f141049_82891518.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/35fe4523266ae017c58d43bbf54ccde4_79588586.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/7519d690b6a58d3ef686f0bad8e39140_95328625.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/6a35bf42a76e4853ab923351fe8a88db_62150428.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/e416f50c8b2c02bae23ec07d1827b909_65715458.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/9c77c16e5d626fa4982c65295f237b85_75891089.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/f3e024ee3fdd5c9a95b5e802191e00f9_37439375.png change filename to text .imagette283070141762522386/ imagette283070141762522386/1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745353_0.png.png imagette283070141762522386/1762521566_2377543_1393102914_7b3e5061b421d7fff3df7196c11a91c7_rle_crop_4024741620_0.png.png imagette283070141762522386/1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748309_0.png.png imagette283070141762522386/1762522046_2398791_1393103590_c619bbcdd306f449d2dc59ea037e009d_rle_crop_4024746473_0.png.png imagette283070141762522386/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747705_0.png.png imagette283070141762522386/1762522266_2409178_1393103219_a7fcd7ede8facbd03de065a1c1219a58_rle_crop_4024748341_0.png.png imagette283070141762522386/1762522285_2409849_1393104413_b7df3dbe2e54a890ff5535918518934e_rle_crop_4024748559_0.png.png imagette283070141762522386/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747672_0.png.png imagette283070141762522386/1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745354_0.png.png imagette283070141762522386/1762521687_2382638_1393103083_faff2176a9c28a6229c7109f7a55c83f_rle_crop_4024742324_0.png.png imagette283070141762522386/1762522266_2409178_1393103214_9e6bc965943577354ab3692385878e88_rle_crop_4024748467_0.png.png imagette283070141762522386/1762522167_2404315_1393103353_3dc16dd67a5532f81222a029282af04c_rle_crop_4024747710_0.png.png imagette283070141762522386/1762521805_2388172_1393103147_ee02fcb22a12f5632ace99e6b156d74c_rle_crop_4024744494_0.png.png imagette283070141762522386/1762522266_2409178_1393103276_0e819ec9bcd8cd7ce57ac43eb86c8c30_rle_crop_4024748310_0.png.png imagette283070141762522386/1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747652_0.png.png imagette283070141762522386/1762521665_2382286_1393102895_ebcd369b7beec5ffdb603c9c3f631ee3_rle_crop_4024742191_0.png.png imagette283070141762522386/1762522167_2404315_1393103396_5f452a9f6dc75dcaf436b99d24a139a4_rle_crop_4024747666_0.png.png imagette283070141762522386/1762521927_2393592_1393103268_666f51440f4e2772e98f638cb5ef1594_rle_crop_4024745394_0.png.png imagette283070141762522386/1762521927_2393592_1393103273_a25d29d53259f2977cfacc7a934563a3_rle_crop_4024745358_0.png.png imagette283070141762522386/1762522167_2404315_1393103508_5ecd568eac37634188a361a5fd8a208b_rle_crop_4024747651_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/41609cc212285d362e283876ebb64a0c_77431471.png imagette283070141762522386 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28307002 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28307019,28307020,28307021,28307022,28307023,28307024,28307025,28307026,28307027,28307028,28307029,28307030?tags=metal,mal_croppe,Teint_Dans_La_Masse,kraft,cartonnette,flou,Carton_gris,Carton_brun,environnement,papier,plastique,autre_refus your option no_mail is active, we will not send the real mail to your client args[1393104486] : ('0.05792845647008964',) no score found for photo 1393104486 We are sending mail with results at report@fotonower.com args[1393104485] : ('0.05792845647008964',) no score found for photo 1393104485 We are sending mail with results at report@fotonower.com refus_total : 0.05792845647008964 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307002 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_P28307002_07-11-2025_14_33_00.pdf results_Auto_P28307002_07-11-2025_14_33_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28307002_07-11-2025_14_33_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','28307002','results_Auto_P28307002_07-11-2025_14_33_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28307002_07-11-2025_14_33_00.pdf','pdf','','0.33','0.05792845647008964') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28307002]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393104486, 1393104485] map_info['map_portfolio_photo'] : {28307002: [1393104486, 1393104485, 1393104423, 1393104413, 1393104406, 1393103608, 1393103602, 1393103590, 1393103515, 1393103512, 1393103508, 1393103396, 1393103355, 1393103353, 1393103276, 1393103273, 1393103271, 1393103270, 1393103268, 1393103228, 1393103224, 1393103219, 1393103216, 1393103214, 1393103212, 1393103175, 1393103172, 1393103168, 1393103164, 1393103150, 1393103147, 1393103143, 1393103140, 1393103139, 1393103138, 1393103103, 1393103099, 1393103089, 1393103083, 1393103079, 1393103047, 1393103043, 1393103041, 1393103038, 1393103036, 1393102921, 1393102917, 1393102914, 1393102913, 1393102912, 1393102895, 1393102877, 1393102842, 1393102809]} final : False mtd_id 4302 list_pids : [1393104486, 1393104485] 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, '4016670') ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670') ('4302', None, None, None, None, None, None, None, '4016670') ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '28307002', '1393104486', None, None, None, None, None, '4016670'), ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670')] time used for this insertion : 0.011584281921386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.047123193740845 time spend to save output : 0.011772632598876953 total time spend for step 4 : 9.058895826339722 step5:split_time_score Fri Nov 7 14:33:08 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 : ['28307002'] 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 : [('28307002',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28307002) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393104485: {'path': 'temp/1762522379_4061100_1393104485_148d0eca82563cd618a88575f8638bef.jpg', 'extension': 'jpg'}, 1393104486: {'path': 'temp/1762522379_4061100_1393104486_44018cb76ed58b021b28f41a32d2ffc7.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 = 28307002; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28307002 group by h (('14', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28307002 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 (28307002) 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 (28307002) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07112025 28307002 Nombre de photos uploadées : 54 / 23040 (0%) 07112025 28307002 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 07112025 28307002 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1393102895, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/ebcd369b7beec5ffdb603c9c3f631ee3.jpg', 'username': None, 'uploaded_at': 1762521367, 'text': 'image_07112025_14_15_03_010156m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393102877, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a3b7a197d01376eaacfafd38549d2290.jpg', 'username': None, 'uploaded_at': 1762521367, 'text': 'image_07112025_14_15_13_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393102842, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/3e8cf5f4420f1aa5dbcdcf2f7f4b9301.jpg', 'username': None, 'uploaded_at': 1762521367, 'text': 'image_07112025_14_15_23_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1393102809, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/7/a60ec549009de3a1b20f561466f94362.jpg', 'username': None, 'uploaded_at': 1762521367, 'text': 'image_07112025_14_15_33_010138m0.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.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025310516357421875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28307002, '2025-11-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2530388,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2107863426208496 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= 2530388 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28281663, 'dashboard_result_id': 16987128, '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_P28281663_07-11-2025_06_18_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28282061, 'dashboard_result_id': 16987129, '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_P28282061_07-11-2025_06_19_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28282493, 'dashboard_result_id': 16987130, '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_P28282493_07-11-2025_06_20_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28282879, 'dashboard_result_id': 16987131, '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_P28282879_07-11-2025_06_20_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28283926, 'dashboard_result_id': 16987132, '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_P28283926_07-11-2025_06_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28283944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28283945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28283946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28283947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28283948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28283949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28283950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28283951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28283952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28283953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28283954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28283955, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28284433, 'dashboard_result_id': 16987133, '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_P28284433_07-11-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28284864, 'dashboard_result_id': 16987134, '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_P28284864_07-11-2025_06_23_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28285404, 'dashboard_result_id': 16987135, '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_P28285404_07-11-2025_06_23_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28285972, 'dashboard_result_id': 16987136, '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_P28285972_07-11-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28286424, 'dashboard_result_id': 16987137, '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_P28286424_07-11-2025_06_25_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28286436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286445, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28286911, 'dashboard_result_id': 16987138, '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_P28286911_07-11-2025_06_25_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28286944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286956, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28287492, 'dashboard_result_id': 16987139, '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_P28287492_07-11-2025_06_26_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28287517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28287518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28287519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28287520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28287521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28287522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28287523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28287524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28287525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28287526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28287527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28287528, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28288007, 'dashboard_result_id': 16987140, '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_P28288007_07-11-2025_06_26_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28288012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288023, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28288467, 'dashboard_result_id': 16987141, '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_P28288467_07-11-2025_06_27_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28288502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288503, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28289357, 'dashboard_result_id': 16987142, '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_P28289357_07-11-2025_06_28_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28289366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289374, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28289750, 'dashboard_result_id': 16987143, '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_P28289750_07-11-2025_06_28_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28289755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289766, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28290275, 'dashboard_result_id': 16987144, '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_P28290275_07-11-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28290280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290288, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28290672, 'dashboard_result_id': 16987145, '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_P28290672_07-11-2025_07_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28290677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290688, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28291027, 'dashboard_result_id': 16987146, '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_P28291027_07-11-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291062, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28291656, 'dashboard_result_id': 16987147, '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_P28291656_07-11-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291680, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28292160, 'dashboard_result_id': 16987148, '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_P28292160_07-11-2025_06_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292196, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28292616, 'dashboard_result_id': 16987149, '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_P28292616_07-11-2025_07_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292637, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28293148, 'dashboard_result_id': 16987150, '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_P28293148_07-11-2025_07_20_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293157, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28293161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293163, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28293906, 'dashboard_result_id': 16987151, '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_P28293906_07-11-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28293909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293920, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28294381, 'dashboard_result_id': 16987152, '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_P28294381_07-11-2025_07_49_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28294383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294394, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28294932, 'dashboard_result_id': 16987153, '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_P28294932_07-11-2025_08_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28294939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294950, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28295475, 'dashboard_result_id': 16987154, '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_P28295475_07-11-2025_08_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28295492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28295493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28295494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28295495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28295496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28295497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28295498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28295499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28295500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28295501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28295502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28295503, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28296108, 'dashboard_result_id': 16987155, '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_P28296108_07-11-2025_08_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296163, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28296762, 'dashboard_result_id': 16987156, '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_P28296762_07-11-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296812, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28297390, 'dashboard_result_id': 16987157, '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_P28297390_07-11-2025_09_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28297471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28297472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28297473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28297474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28297475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28297476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28297477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28297478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28297479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28297480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28297481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28297482, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28298769, 'dashboard_result_id': 16987158, '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_P28298769_07-11-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28298801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28298802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28298803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28298804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28298805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28298806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28298807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28298808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28298809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28298810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28298811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28298812, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28299301, 'dashboard_result_id': 16987159, '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_P28299301_07-11-2025_10_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299328, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28299744, 'dashboard_result_id': 16987160, '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_P28299744_07-11-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299796, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28300271, 'dashboard_result_id': 16987161, '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_P28300271_07-11-2025_10_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28300309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300314, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28300829, 'dashboard_result_id': 16987162, '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_P28300829_07-11-2025_10_49_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28300865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300876, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28301414, 'dashboard_result_id': 16987163, '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_P28301414_07-11-2025_11_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301429, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28301853, 'dashboard_result_id': 16987164, '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_P28301853_07-11-2025_11_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301917, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28302605, 'dashboard_result_id': 16987165, '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_P28302605_07-11-2025_11_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28302609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28302610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28302611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28302612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28302613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28302614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28302615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28302616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28302617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28302618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28302619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28302620, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28303360, 'dashboard_result_id': 16987166, '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_P28303360_07-11-2025_11_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28303364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303374, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28303548, 'dashboard_result_id': 16987167, '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_P28303548_07-11-2025_12_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28303555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303566, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28304084, 'dashboard_result_id': 16987168, '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_P28304084_07-11-2025_14_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28304088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28304089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28304090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28304091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28304092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28304093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28304094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28304095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28304096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28304097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28304098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28304099, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28305985, 'dashboard_result_id': 16987169, '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_P28305985_07-11-2025_13_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28305989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28305990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28305991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28305992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28305993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28305994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28305995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28305996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28305997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28305998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28305999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306001, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28306060, 'dashboard_result_id': 16987170, '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_P28306060_07-11-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306073, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28306403, 'dashboard_result_id': 16987171, '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_P28306403_07-11-2025_14_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306444, 'pht': 3726}}"}, {'dashboat_entry_day': 2530388, 'dashboard_run_id': 2542773, 'mtr_portfolio_id': 28307002, 'dashboard_result_id': 16987172, '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_P28307002_07-11-2025_14_31_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28307007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28307008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28307009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28307010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28307011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28307012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28307013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28307014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28307015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28307016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28307017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28307018, '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 = 28281663 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': 4014090, 'mtr_portfolio_id': 28281663, 'created_at': datetime.datetime(2025, 11, 7, 6, 18, 29), 'result': '0.06913855491106878', 'result_long': None, 'result_double': None}] Qualite : 0.06913855491106878 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28281663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28281663_07-11-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28281663 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_P28281663_07-11-2025_06_18_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, 'pht': 3726}}" where mtr_portfolio_id = 28281663 and dashboard_run_id = 2542773 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`=28281663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987128, 0.06913855491106878, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28281663_07-11-2025_06_18_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28281664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28281665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28281666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28281667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28281668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28281669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28281670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28281671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28281672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28281673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28281674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28281675, '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 = 28282061 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': 4014091, 'mtr_portfolio_id': 28282061, 'created_at': datetime.datetime(2025, 11, 7, 6, 19, 29), 'result': '0.06565343853054073', 'result_long': None, 'result_double': None}] Qualite : 0.06565343853054073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282061_07-11-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282061 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_P28282061_07-11-2025_06_19_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, 'pht': 3726}}" where mtr_portfolio_id = 28282061 and dashboard_run_id = 2542773 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`=28282061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987129, 0.06565343853054073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282061_07-11-2025_06_19_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282072, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282076, '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 = 28282493 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': 4014092, 'mtr_portfolio_id': 28282493, 'created_at': datetime.datetime(2025, 11, 7, 6, 19, 58), 'result': '0.05277529826425871', 'result_long': None, 'result_double': None}] Qualite : 0.05277529826425871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282493_07-11-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282493 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_P28282493_07-11-2025_06_20_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, 'pht': 3726}}" where mtr_portfolio_id = 28282493 and dashboard_run_id = 2542773 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`=28282493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987130, 0.05277529826425871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282493_07-11-2025_06_20_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282518, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282526, '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 = 28282879 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': 4014093, 'mtr_portfolio_id': 28282879, 'created_at': datetime.datetime(2025, 11, 7, 6, 20, 29), 'result': '0.04275165830663633', 'result_long': None, 'result_double': None}] Qualite : 0.04275165830663633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28282879 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282879_07-11-2025_06_20_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28282879 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_P28282879_07-11-2025_06_20_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, 'pht': 3726}}" where mtr_portfolio_id = 28282879 and dashboard_run_id = 2542773 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`=28282879 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987131, 0.04275165830663633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28282879_07-11-2025_06_20_34.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28282885, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28282886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28282887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28282888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28282889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28282890, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28282891, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28282892, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28282893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28282894, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28282895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28282896, '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 = 28283926 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': 4014094, 'mtr_portfolio_id': 28283926, 'created_at': datetime.datetime(2025, 11, 7, 6, 21, 29), 'result': '0.039423126549853346', 'result_long': None, 'result_double': None}] Qualite : 0.039423126549853346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28283926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28283926_07-11-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28283926 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_P28283926_07-11-2025_06_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28283944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28283945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28283946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28283947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28283948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28283949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28283950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28283951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28283952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28283953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28283954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28283955, 'pht': 3726}}" where mtr_portfolio_id = 28283926 and dashboard_run_id = 2542773 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`=28283926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987132, 0.039423126549853346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28283926_07-11-2025_06_21_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28283944, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28283945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28283946, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28283947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28283948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28283949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28283950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28283951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28283952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28283953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28283954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28283955, '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 = 28284433 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': 4014095, 'mtr_portfolio_id': 28284433, 'created_at': datetime.datetime(2025, 11, 7, 6, 21, 57), 'result': '0.033100493947782965', 'result_long': None, 'result_double': None}] Qualite : 0.033100493947782965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28284433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284433_07-11-2025_06_22_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28284433 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_P28284433_07-11-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, 'pht': 3726}}" where mtr_portfolio_id = 28284433 and dashboard_run_id = 2542773 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`=28284433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987133, 0.033100493947782965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284433_07-11-2025_06_22_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284438, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284439, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28284440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284449, '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 = 28284864 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': 4014096, 'mtr_portfolio_id': 28284864, 'created_at': datetime.datetime(2025, 11, 7, 6, 22, 59), 'result': '0.046433470561761475', 'result_long': None, 'result_double': None}] Qualite : 0.046433470561761475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28284864 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284864_07-11-2025_06_23_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28284864 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_P28284864_07-11-2025_06_23_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, 'pht': 3726}}" where mtr_portfolio_id = 28284864 and dashboard_run_id = 2542773 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`=28284864 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987134, 0.046433470561761475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28284864_07-11-2025_06_23_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28284877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28284878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28284879, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28284880, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28284881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28284882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28284883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28284884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28284885, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28284886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28284887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28284888, '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 = 28285404 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': 4014097, 'mtr_portfolio_id': 28285404, 'created_at': datetime.datetime(2025, 11, 7, 6, 23, 28), 'result': '0.04641160158163423', 'result_long': None, 'result_double': None}] Qualite : 0.04641160158163423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28285404 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285404_07-11-2025_06_23_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28285404 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_P28285404_07-11-2025_06_23_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, 'pht': 3726}}" where mtr_portfolio_id = 28285404 and dashboard_run_id = 2542773 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`=28285404 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987135, 0.04641160158163423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285404_07-11-2025_06_23_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285406, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285413, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285416, '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 = 28285972 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': 4014098, 'mtr_portfolio_id': 28285972, 'created_at': datetime.datetime(2025, 11, 7, 6, 23, 59), 'result': '0.053802415749994593', 'result_long': None, 'result_double': None}] Qualite : 0.053802415749994593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28285972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28285972 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_P28285972_07-11-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, 'pht': 3726}}" where mtr_portfolio_id = 28285972 and dashboard_run_id = 2542773 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`=28285972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987136, 0.053802415749994593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28285972_07-11-2025_06_24_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28285977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28285978, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28285979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28285980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28285981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28285982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28285983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28285984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28285985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28285986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28285987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28285988, '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 = 28286424 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': 4014099, 'mtr_portfolio_id': 28286424, 'created_at': datetime.datetime(2025, 11, 7, 6, 25), 'result': '0.05116586775066912', 'result_long': None, 'result_double': None}] Qualite : 0.05116586775066912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28286424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28286424_07-11-2025_06_25_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28286424 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_P28286424_07-11-2025_06_25_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28286436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286445, 'pht': 3726}}" where mtr_portfolio_id = 28286424 and dashboard_run_id = 2542773 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`=28286424 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987137, 0.05116586775066912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28286424_07-11-2025_06_25_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286434, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28286436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286445, '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 = 28286911 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': 4014100, 'mtr_portfolio_id': 28286911, 'created_at': datetime.datetime(2025, 11, 7, 6, 25, 29), 'result': '0.05956659748739012', 'result_long': None, 'result_double': None}] Qualite : 0.05956659748739012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28286911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28286911_07-11-2025_06_25_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28286911 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_P28286911_07-11-2025_06_25_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28286944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286956, 'pht': 3726}}" where mtr_portfolio_id = 28286911 and dashboard_run_id = 2542773 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`=28286911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987138, 0.05956659748739012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28286911_07-11-2025_06_25_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28286944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28286945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28286946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28286947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28286948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28286949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28286950, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28286951, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28286952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28286953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28286955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28286956, '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 = 28287492 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': 4014101, 'mtr_portfolio_id': 28287492, 'created_at': datetime.datetime(2025, 11, 7, 6, 25, 59), 'result': '0.056620326618719206', 'result_long': None, 'result_double': None}] Qualite : 0.056620326618719206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28287492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28287492_07-11-2025_06_26_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28287492 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_P28287492_07-11-2025_06_26_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28287517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28287518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28287519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28287520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28287521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28287522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28287523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28287524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28287525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28287526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28287527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28287528, 'pht': 3726}}" where mtr_portfolio_id = 28287492 and dashboard_run_id = 2542773 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`=28287492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987139, 0.056620326618719206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28287492_07-11-2025_06_26_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28287517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28287518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28287519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28287520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28287521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28287522, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28287523, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28287524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28287525, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28287526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28287527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28287528, '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 = 28288007 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': 4014102, 'mtr_portfolio_id': 28288007, 'created_at': datetime.datetime(2025, 11, 7, 6, 26, 29), 'result': '0.043407394001289845', 'result_long': None, 'result_double': None}] Qualite : 0.043407394001289845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28288007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28288007_07-11-2025_06_26_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28288007 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_P28288007_07-11-2025_06_26_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28288012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288023, 'pht': 3726}}" where mtr_portfolio_id = 28288007 and dashboard_run_id = 2542773 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`=28288007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987140, 0.043407394001289845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28288007_07-11-2025_06_26_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28288012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288013, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288023, '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 = 28288467 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': 4014103, 'mtr_portfolio_id': 28288467, 'created_at': datetime.datetime(2025, 11, 7, 6, 27, 30), 'result': '0.048442786330771634', 'result_long': None, 'result_double': None}] Qualite : 0.048442786330771634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28288467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28288467_07-11-2025_06_27_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28288467 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_P28288467_07-11-2025_06_27_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28288502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288503, 'pht': 3726}}" where mtr_portfolio_id = 28288467 and dashboard_run_id = 2542773 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`=28288467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987141, 0.048442786330771634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28288467_07-11-2025_06_27_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28288492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28288493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28288494, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28288495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28288496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28288497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28288498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28288499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28288500, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28288501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28288502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28288503, '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 = 28289357 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': 4014105, 'mtr_portfolio_id': 28289357, 'created_at': datetime.datetime(2025, 11, 7, 6, 27, 59), 'result': '0.032263848797957066', 'result_long': None, 'result_double': None}] Qualite : 0.032263848797957066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28289357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28289357_07-11-2025_06_28_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28289357 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_P28289357_07-11-2025_06_28_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28289366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289374, 'pht': 3726}}" where mtr_portfolio_id = 28289357 and dashboard_run_id = 2542773 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`=28289357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987142, 0.032263848797957066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28289357_07-11-2025_06_28_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289364, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28289366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289373, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289374, '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 = 28289750 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': 4014106, 'mtr_portfolio_id': 28289750, 'created_at': datetime.datetime(2025, 11, 7, 6, 28, 27), 'result': '0.041895511437362476', 'result_long': None, 'result_double': None}] Qualite : 0.041895511437362476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28289750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28289750_07-11-2025_06_28_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28289750 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_P28289750_07-11-2025_06_28_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28289755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289766, 'pht': 3726}}" where mtr_portfolio_id = 28289750 and dashboard_run_id = 2542773 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`=28289750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987143, 0.041895511437362476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28289750_07-11-2025_06_28_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28289755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28289756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28289757, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28289758, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28289759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28289760, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28289761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28289762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28289763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28289764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28289765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28289766, '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 = 28290275 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': 4014018, 'mtr_portfolio_id': 28290275, 'created_at': datetime.datetime(2025, 11, 7, 5, 52, 59), 'result': '0.055223366359129215', 'result_long': None, 'result_double': None}] Qualite : 0.055223366359129215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28290275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28290275_07-11-2025_05_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28290275 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_P28290275_07-11-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28290280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290288, 'pht': 3726}}" where mtr_portfolio_id = 28290275 and dashboard_run_id = 2542773 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`=28290275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987144, 0.055223366359129215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28290275_07-11-2025_05_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290277, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290279, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28290280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290281, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290285, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290288, '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 = 28290672 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': 4014189, 'mtr_portfolio_id': 28290672, 'created_at': datetime.datetime(2025, 11, 7, 7, 30, 56), 'result': '0.03996551761176012', 'result_long': None, 'result_double': None}] Qualite : 0.03996551761176012 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28290672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28290672_07-11-2025_07_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28290672 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_P28290672_07-11-2025_07_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28290677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290688, 'pht': 3726}}" where mtr_portfolio_id = 28290672 and dashboard_run_id = 2542773 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`=28290672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987145, 0.03996551761176012, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28290672_07-11-2025_07_30_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28290677, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28290678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28290679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28290680, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28290681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28290682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28290683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28290684, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28290685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28290686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28290687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28290688, '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 = 28291027 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': 4014256, 'mtr_portfolio_id': 28291027, 'created_at': datetime.datetime(2025, 11, 7, 6, 17, 1), 'result': '0.04874885712898764', 'result_long': None, 'result_double': None}] Qualite : 0.04874885712898764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28291027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28291027_07-11-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28291027 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_P28291027_07-11-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291062, 'pht': 3726}}" where mtr_portfolio_id = 28291027 and dashboard_run_id = 2542773 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`=28291027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987146, 0.04874885712898764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28291027_07-11-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291055, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291056, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291062, '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 = 28291656 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': 4014327, 'mtr_portfolio_id': 28291656, 'created_at': datetime.datetime(2025, 11, 7, 6, 32, 59), 'result': '0.0501041021333214', 'result_long': None, 'result_double': None}] Qualite : 0.0501041021333214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28291656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28291656_07-11-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28291656 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_P28291656_07-11-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291680, 'pht': 3726}}" where mtr_portfolio_id = 28291656 and dashboard_run_id = 2542773 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`=28291656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987147, 0.0501041021333214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28291656_07-11-2025_06_33_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28291669, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28291670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28291671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28291672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28291673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28291674, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28291675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28291676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28291677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28291678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28291679, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28291680, '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 = 28292160 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': 4014391, 'mtr_portfolio_id': 28292160, 'created_at': datetime.datetime(2025, 11, 7, 6, 46, 59), 'result': '0.04889606972455756', 'result_long': None, 'result_double': None}] Qualite : 0.04889606972455756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28292160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28292160_07-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28292160 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_P28292160_07-11-2025_06_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292196, 'pht': 3726}}" where mtr_portfolio_id = 28292160 and dashboard_run_id = 2542773 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`=28292160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987148, 0.04889606972455756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28292160_07-11-2025_06_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292186, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292193, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292194, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292196, '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 = 28292616 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': 4014433, 'mtr_portfolio_id': 28292616, 'created_at': datetime.datetime(2025, 11, 7, 7, 4, 58), 'result': '0.032056800752302266', 'result_long': None, 'result_double': None}] Qualite : 0.032056800752302266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28292616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28292616_07-11-2025_07_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28292616 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_P28292616_07-11-2025_07_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292637, 'pht': 3726}}" where mtr_portfolio_id = 28292616 and dashboard_run_id = 2542773 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`=28292616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987149, 0.032056800752302266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28292616_07-11-2025_07_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28292626, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28292627, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28292628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28292629, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28292630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28292631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28292632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28292633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28292634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28292635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28292636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28292637, '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 = 28293148 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': 4014525, 'mtr_portfolio_id': 28293148, 'created_at': datetime.datetime(2025, 11, 7, 7, 20, 32), 'result': '0.04701046152086073', 'result_long': None, 'result_double': None}] Qualite : 0.04701046152086073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28293148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28293148_07-11-2025_07_20_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28293148 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_P28293148_07-11-2025_07_20_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293157, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28293161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293163, 'pht': 3726}}" where mtr_portfolio_id = 28293148 and dashboard_run_id = 2542773 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`=28293148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987150, 0.04701046152086073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28293148_07-11-2025_07_20_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293156, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293157, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293159, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28293161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293163, '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 = 28293906 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': 4014650, 'mtr_portfolio_id': 28293906, 'created_at': datetime.datetime(2025, 11, 7, 7, 33, 29), 'result': '0.03342275715221788', 'result_long': None, 'result_double': None}] Qualite : 0.03342275715221788 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28293906 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28293906_07-11-2025_07_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28293906 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_P28293906_07-11-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28293909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293920, 'pht': 3726}}" where mtr_portfolio_id = 28293906 and dashboard_run_id = 2542773 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`=28293906 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987151, 0.03342275715221788, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28293906_07-11-2025_07_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28293909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28293910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28293911, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28293912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28293913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28293914, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28293915, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28293916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28293917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28293918, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28293919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28293920, '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 = 28294381 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': 4014711, 'mtr_portfolio_id': 28294381, 'created_at': datetime.datetime(2025, 11, 7, 7, 49, 27), 'result': '0.06213513996931339', 'result_long': None, 'result_double': None}] Qualite : 0.06213513996931339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28294381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28294381_07-11-2025_07_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28294381 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_P28294381_07-11-2025_07_49_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28294383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294394, 'pht': 3726}}" where mtr_portfolio_id = 28294381 and dashboard_run_id = 2542773 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`=28294381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987152, 0.06213513996931339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28294381_07-11-2025_07_49_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28294383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294384, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294385, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294391, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294394, '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 = 28294932 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': 4014784, 'mtr_portfolio_id': 28294932, 'created_at': datetime.datetime(2025, 11, 7, 8, 4, 58), 'result': '0.05369731363851158', 'result_long': None, 'result_double': None}] Qualite : 0.05369731363851158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28294932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28294932_07-11-2025_08_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28294932 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_P28294932_07-11-2025_08_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28294939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294950, 'pht': 3726}}" where mtr_portfolio_id = 28294932 and dashboard_run_id = 2542773 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`=28294932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987153, 0.05369731363851158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28294932_07-11-2025_08_04_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28294938, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28294939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28294940, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28294941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28294942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28294944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28294945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28294946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28294947, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28294948, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28294949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28294950, '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 = 28295475 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': 4014858, 'mtr_portfolio_id': 28295475, 'created_at': datetime.datetime(2025, 11, 7, 8, 19, 27), 'result': '0.04363120917178104', 'result_long': None, 'result_double': None}] Qualite : 0.04363120917178104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28295475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28295475_07-11-2025_08_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28295475 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_P28295475_07-11-2025_08_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28295492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28295493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28295494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28295495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28295496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28295497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28295498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28295499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28295500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28295501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28295502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28295503, 'pht': 3726}}" where mtr_portfolio_id = 28295475 and dashboard_run_id = 2542773 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`=28295475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987154, 0.04363120917178104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28295475_07-11-2025_08_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28295492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28295493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28295494, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28295495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28295496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28295497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28295498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28295499, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28295500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28295501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28295502, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28295503, '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 = 28296108 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': 4014970, 'mtr_portfolio_id': 28296108, 'created_at': datetime.datetime(2025, 11, 7, 8, 32, 57), 'result': '0.05826362372975622', 'result_long': None, 'result_double': None}] Qualite : 0.05826362372975622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28296108 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28296108_07-11-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28296108 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_P28296108_07-11-2025_08_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296163, 'pht': 3726}}" where mtr_portfolio_id = 28296108 and dashboard_run_id = 2542773 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`=28296108 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987155, 0.05826362372975622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28296108_07-11-2025_08_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296153, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296154, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296163, '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 = 28296762 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': 4015069, 'mtr_portfolio_id': 28296762, 'created_at': datetime.datetime(2025, 11, 7, 8, 48, 58), 'result': '0.057896913055596376', 'result_long': None, 'result_double': None}] Qualite : 0.057896913055596376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28296762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28296762_07-11-2025_08_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28296762 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_P28296762_07-11-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296812, 'pht': 3726}}" where mtr_portfolio_id = 28296762 and dashboard_run_id = 2542773 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`=28296762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987156, 0.057896913055596376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28296762_07-11-2025_08_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28296801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28296802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28296803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28296804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28296805, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28296806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28296807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28296808, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28296809, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28296810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28296811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28296812, '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 = 28297390 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': 4015164, 'mtr_portfolio_id': 28297390, 'created_at': datetime.datetime(2025, 11, 7, 9, 32, 59), 'result': '0.04283012502573442', 'result_long': None, 'result_double': None}] Qualite : 0.04283012502573442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28297390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28297390_07-11-2025_09_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28297390 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_P28297390_07-11-2025_09_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28297471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28297472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28297473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28297474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28297475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28297476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28297477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28297478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28297479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28297480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28297481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28297482, 'pht': 3726}}" where mtr_portfolio_id = 28297390 and dashboard_run_id = 2542773 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`=28297390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987157, 0.04283012502573442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28297390_07-11-2025_09_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28297471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28297472, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28297473, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28297474, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28297475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28297476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28297477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28297478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28297479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28297480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28297481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28297482, '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 = 28298769 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': 4015358, 'mtr_portfolio_id': 28298769, 'created_at': datetime.datetime(2025, 11, 7, 9, 48, 58), 'result': '0.04707560270233438', 'result_long': None, 'result_double': None}] Qualite : 0.04707560270233438 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28298769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28298769_07-11-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28298769 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_P28298769_07-11-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28298801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28298802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28298803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28298804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28298805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28298806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28298807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28298808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28298809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28298810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28298811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28298812, 'pht': 3726}}" where mtr_portfolio_id = 28298769 and dashboard_run_id = 2542773 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`=28298769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987158, 0.04707560270233438, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28298769_07-11-2025_09_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28298801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28298802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28298803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28298804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28298805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28298806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28298807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28298808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28298809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28298810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28298811, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28298812, '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 = 28299301 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': 4015426, 'mtr_portfolio_id': 28299301, 'created_at': datetime.datetime(2025, 11, 7, 10, 2, 58), 'result': '0.03487514860782786', 'result_long': None, 'result_double': None}] Qualite : 0.03487514860782786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28299301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28299301_07-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28299301 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_P28299301_07-11-2025_10_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299328, 'pht': 3726}}" where mtr_portfolio_id = 28299301 and dashboard_run_id = 2542773 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`=28299301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987159, 0.03487514860782786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28299301_07-11-2025_10_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299321, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299327, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299328, '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 = 28299744 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': 4015524, 'mtr_portfolio_id': 28299744, 'created_at': datetime.datetime(2025, 11, 7, 10, 16, 58), 'result': '0.04354416102151034', 'result_long': None, 'result_double': None}] Qualite : 0.04354416102151034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28299744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28299744_07-11-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28299744 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_P28299744_07-11-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299796, 'pht': 3726}}" where mtr_portfolio_id = 28299744 and dashboard_run_id = 2542773 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`=28299744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987160, 0.04354416102151034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28299744_07-11-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28299785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28299786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28299787, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28299788, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28299789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28299790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28299791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28299792, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28299793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28299794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28299795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28299796, '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 = 28300271 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': 4015611, 'mtr_portfolio_id': 28300271, 'created_at': datetime.datetime(2025, 11, 7, 10, 35, 30), 'result': '0.04764391786427205', 'result_long': None, 'result_double': None}] Qualite : 0.04764391786427205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28300271 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28300271_07-11-2025_10_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28300271 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_P28300271_07-11-2025_10_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28300309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300314, 'pht': 3726}}" where mtr_portfolio_id = 28300271 and dashboard_run_id = 2542773 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`=28300271 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987161, 0.04764391786427205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28300271_07-11-2025_10_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300305, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28300309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300312, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300314, '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 = 28300829 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': 4015714, 'mtr_portfolio_id': 28300829, 'created_at': datetime.datetime(2025, 11, 7, 10, 49, 32), 'result': '0.06863924577571272', 'result_long': None, 'result_double': None}] Qualite : 0.06863924577571272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28300829 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28300829_07-11-2025_10_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28300829 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_P28300829_07-11-2025_10_49_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28300865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300876, 'pht': 3726}}" where mtr_portfolio_id = 28300829 and dashboard_run_id = 2542773 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`=28300829 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987162, 0.06863924577571272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28300829_07-11-2025_10_49_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28300865, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28300866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28300867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28300868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28300869, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28300870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28300871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28300872, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28300873, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28300874, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28300875, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28300876, '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 = 28301414 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': 4015797, 'mtr_portfolio_id': 28301414, 'created_at': datetime.datetime(2025, 11, 7, 11, 4, 59), 'result': '0.0402958306076382', 'result_long': None, 'result_double': None}] Qualite : 0.0402958306076382 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28301414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28301414_07-11-2025_11_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28301414 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_P28301414_07-11-2025_11_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301429, 'pht': 3726}}" where mtr_portfolio_id = 28301414 and dashboard_run_id = 2542773 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`=28301414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987163, 0.0402958306076382, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28301414_07-11-2025_11_05_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301418, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301419, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301423, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301425, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301427, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301428, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301429, '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 = 28301853 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': 4015864, 'mtr_portfolio_id': 28301853, 'created_at': datetime.datetime(2025, 11, 7, 11, 16, 58), 'result': '0.06377545314479327', 'result_long': None, 'result_double': None}] Qualite : 0.06377545314479327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28301853 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28301853_07-11-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28301853 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_P28301853_07-11-2025_11_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301917, 'pht': 3726}}" where mtr_portfolio_id = 28301853 and dashboard_run_id = 2542773 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`=28301853 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987164, 0.06377545314479327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28301853_07-11-2025_11_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28301906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28301907, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28301908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28301909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28301910, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28301911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28301912, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28301913, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28301914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28301915, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28301916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28301917, '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 = 28302605 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': 4015970, 'mtr_portfolio_id': 28302605, 'created_at': datetime.datetime(2025, 11, 7, 11, 38, 58), 'result': '0.04568194384331375', 'result_long': None, 'result_double': None}] Qualite : 0.04568194384331375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28302605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28302605_07-11-2025_11_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28302605 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_P28302605_07-11-2025_11_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28302609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28302610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28302611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28302612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28302613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28302614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28302615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28302616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28302617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28302618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28302619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28302620, 'pht': 3726}}" where mtr_portfolio_id = 28302605 and dashboard_run_id = 2542773 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`=28302605 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987165, 0.04568194384331375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28302605_07-11-2025_11_38_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28302609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28302610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28302611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28302612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28302613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28302614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28302615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28302616, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28302617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28302618, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28302619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28302620, '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 = 28303360 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': 4016076, 'mtr_portfolio_id': 28303360, 'created_at': datetime.datetime(2025, 11, 7, 11, 47, 28), 'result': '0.048526855535857005', 'result_long': None, 'result_double': None}] Qualite : 0.048526855535857005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28303360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28303360_07-11-2025_11_47_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28303360 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_P28303360_07-11-2025_11_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28303364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303374, 'pht': 3726}}" where mtr_portfolio_id = 28303360 and dashboard_run_id = 2542773 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`=28303360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987166, 0.048526855535857005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28303360_07-11-2025_11_47_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28303364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303373, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303374, '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 = 28303548 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': 4016105, 'mtr_portfolio_id': 28303548, 'created_at': datetime.datetime(2025, 11, 7, 12, 3, 32), 'result': '0.07002800657041128', 'result_long': None, 'result_double': None}] Qualite : 0.07002800657041128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28303548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28303548_07-11-2025_12_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28303548 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_P28303548_07-11-2025_12_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28303555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303566, 'pht': 3726}}" where mtr_portfolio_id = 28303548 and dashboard_run_id = 2542773 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`=28303548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987167, 0.07002800657041128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28303548_07-11-2025_12_03_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28303555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28303556, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28303557, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28303558, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28303559, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28303560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28303561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28303562, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28303563, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28303564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28303565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28303566, '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 = 28304084 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': 4016241, 'mtr_portfolio_id': 28304084, 'created_at': datetime.datetime(2025, 11, 7, 14, 1), 'result': '0.03483328857025933', 'result_long': None, 'result_double': None}] Qualite : 0.03483328857025933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28304084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28304084_07-11-2025_14_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28304084 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_P28304084_07-11-2025_14_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28304088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28304089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28304090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28304091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28304092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28304093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28304094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28304095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28304096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28304097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28304098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28304099, 'pht': 3726}}" where mtr_portfolio_id = 28304084 and dashboard_run_id = 2542773 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`=28304084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987168, 0.03483328857025933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28304084_07-11-2025_14_01_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28304088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28304089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28304090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28304091, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28304092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28304093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28304094, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28304095, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28304096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28304097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28304098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28304099, '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 = 28305985 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 = 28305985 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 = 28305985 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28305985 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 = 28305985 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 = 28305985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28305985_07-11-2025_13_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28305985 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_P28305985_07-11-2025_13_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28305989, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28305990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28305991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28305992, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28305993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28305994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28305995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28305996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28305997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28305998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28305999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306001, 'pht': 3726}}" where mtr_portfolio_id = 28305985 and dashboard_run_id = 2542771 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28306060 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': 4016539, 'mtr_portfolio_id': 28306060, 'created_at': datetime.datetime(2025, 11, 7, 14, 4, 57), 'result': '0.054079782470223735', 'result_long': None, 'result_double': None}] Qualite : 0.054079782470223735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28306060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28306060_07-11-2025_14_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28306060 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_P28306060_07-11-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306073, 'pht': 3726}}" where mtr_portfolio_id = 28306060 and dashboard_run_id = 2542771 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`=28306060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987170, 0.054079782470223735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28306060_07-11-2025_14_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306063, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306073, '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 = 28306403 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': 4016593, 'mtr_portfolio_id': 28306403, 'created_at': datetime.datetime(2025, 11, 7, 14, 19, 1), 'result': '0.07368029324681151', 'result_long': None, 'result_double': None}] Qualite : 0.07368029324681151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28306403 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28306403_07-11-2025_14_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28306403 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_P28306403_07-11-2025_14_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306444, 'pht': 3726}}" where mtr_portfolio_id = 28306403 and dashboard_run_id = 2542771 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`=28306403 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987171, 0.07368029324681151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28306403_07-11-2025_14_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28306433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28306434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28306435, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28306436, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28306437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28306438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28306439, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28306440, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28306441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28306442, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28306443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28306444, '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 = 28307002 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': 4016670, 'mtr_portfolio_id': 28307002, 'created_at': datetime.datetime(2025, 11, 7, 14, 32, 59), 'result': '0.05792845647008964', 'result_long': None, 'result_double': None}] Qualite : 0.05792845647008964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28307002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28307002_07-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28307002 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_P28307002_07-11-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28307007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28307008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28307009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28307010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28307011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28307012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28307013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28307014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28307015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28307016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28307017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28307018, 'pht': 3726}}" where mtr_portfolio_id = 28307002 and dashboard_run_id = 2542771 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`=28307002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16987172, 0.05792845647008964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28307002_07-11-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28307007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28307008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28307009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28307010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28307011, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28307012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28307013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28307014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28307015, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28307016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28307017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28307018, '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 (28281663,28282061,28282493,28282879,28283926,28284433,28284864,28285404,28285972,28286424,28286911,28287492,28288007,28288467,28289357,28289750,28290275,28290672,28291027,28291656,28292160,28292616,28293148,28293906,28294381,28294932,28295475,28296108,28296762,28297390,28298769,28299301,28299744,28300271,28300829,28301414,28301853,28302605,28303360,28303548,28304084,28305985,28306060,28306403,28307002) result : ((1393022676,), (1393022677,), (1393022680,), (1393022682,), (1393022711,), (1393022714,), (1393022715,), (1393023161,), (1393023195,), (1393023228,), (1393023259,), (1393023289,), (1393023323,), (1393023664,), (1393023696,), (1393023731,), (1393023854,), (1393023965,), (1393024015,), (1393024378,), (1393024410,), (1393024416,), (1393024712,), (1393024753,), (1393024789,), (1393024826,), (1393024864,), (1393025240,), (1393025273,), (1393025310,), (1393025348,), (1393025418,), (1393025422,), (1393025424,), (1393025426,), (1393025457,), (1393025459,), (1393025460,), (1393025461,), (1393025548,), (1393025550,), (1393025551,), (1393025573,), (1393025575,), (1393025576,), (1393025577,), (1393025612,), (1393025614,), (1393025615,), (1393025616,), (1393025619,), (1393025671,), (1393025674,), (1393025678,), (1393025712,), (1393025711,), (1393025745,), (1393025747,), (1393025748,), (1393025817,), (1393025848,), (1393025850,), (1393025853,), (1393025856,), (1393025870,), (1393025891,), (1393025899,), (1393025905,), (1393025909,), (1393025912,), (1393025914,), (1393025926,), (1393025928,), (1393026111,), (1393026117,), (1393026119,), (1393026122,), (1393026127,), (1393026131,), (1393026146,), (1393026149,), (1393026151,), (1393026155,), (1393026165,), (1393026219,), (1393026220,), (1393026222,), (1393026226,), (1393026230,), (1393026244,), (1393026250,), (1393026257,), (1393026292,), (1393026297,), (1393026299,), (1393026308,), (1393026317,), (1393026598,), (1393026635,), (1393026688,), (1393026728,), (1393026759,), (1393026807,), (1393026809,), (1393026812,), (1393026815,), (1393026820,), (1393026836,), (1393026837,), (1393026838,), (1393026839,), (1393026846,), (1393026894,), (1393026896,), (1393026898,), (1393026899,), (1393026901,), (1393026938,), (1393026955,), (1393026958,), (1393026964,), (1393026981,), (1393026983,), (1393026934,), (1393026936,), (1393026989,), (1393026991,), (1393026996,), (1393027046,), (1393027048,), (1393027051,), (1393027066,), (1393027067,), (1393027068,), (1393027071,), (1393027085,), (1393027087,), (1393027089,), (1393027091,), (1393027094,), (1393027097,), (1393027146,), (1393027148,), (1393027162,), (1393027186,), (1393027187,), (1393027188,), (1393027191,), (1393027195,), (1393027198,), (1393027230,), (1393027232,), (1393027236,), (1393027240,), (1393027349,), (1393027388,), (1393027422,), (1393027457,), (1393027492,), (1393027529,), (1393027792,), (1393027797,), (1393027800,), (1393027891,), (1393027984,), (1393027987,), (1393027990,), (1393027994,), (1393028006,), (1393028039,), (1393028042,), (1393028045,), (1393028048,), (1393028052,), (1393028079,), (1393028075,), (1393028077,), (1393028118,), (1393028122,), (1393028131,), (1393028197,), (1393028202,), (1393028204,), (1393028224,), (1393028226,), (1393028230,), (1393028235,), (1393028239,), (1393028281,), (1393028282,), (1393028304,), (1393028309,), (1393028312,), (1393028456,), (1393028492,), (1393028527,), (1393028561,), (1393028595,), (1393028633,), (1393028914,), (1393028916,), (1393028917,), (1393028919,), (1393028922,), (1393028943,), (1393028945,), (1393028947,), (1393029005,), (1393029014,), (1393029017,), (1393029021,), (1393029049,), (1393029097,), (1393029102,), (1393029103,), (1393029105,), (1393029109,), (1393029153,), (1393029155,), (1393029157,), (1393029161,), (1393029208,), (1393029221,), (1393029229,), (1393029231,), (1393029235,), (1393029271,), (1393029273,), (1393029276,), (1393029278,), (1393029283,), (1393029285,), (1393029327,), (1393029342,), (1393029363,), (1393029382,), (1393029395,), (1393029403,), (1393029425,), (1393033090,), (1393033079,), (1393033081,), (1393033082,), (1393033085,), (1393033088,), (1393033100,), (1393033101,), (1393033102,), (1393033103,), (1393033107,), (1393033316,), (1393033348,), (1393033803,), (1393033834,), (1393033867,), (1393033897,), (1393033930,), (1393033961,), (1393034281,), (1393034312,), (1393034346,), (1393034377,), (1393034411,), (1393034445,), (1393034606,), (1393034607,), (1393034608,), (1393034737,), (1393034767,), (1393034798,), (1393034830,), (1393034861,), (1393035038,), (1393035047,), (1393035057,), (1393035058,), (1393035060,), (1393035062,), (1393035093,), (1393035094,), (1393035122,), (1393035123,), (1393035138,), (1393035144,), (1393035151,), (1393035165,), (1393035180,), (1393035188,), (1393035189,), (1393035191,), (1393035207,), (1393035235,), (1393035236,), (1393035237,), (1393035239,), (1393035274,), (1393035275,), (1393035276,), (1393035277,), (1393035296,), (1393035295,), (1393035330,), (1393035339,), (1393035341,), (1393035343,), (1393035346,), (1393035400,), (1393035401,), (1393035402,), (1393035417,), (1393035422,), (1393035425,), (1393035429,), (1393035432,), (1393035434,), (1393035450,), (1393035455,), (1393035456,), (1393035457,), (1393035472,), (1393035473,), (1393035474,), (1393035475,), (1393035477,), (1393035479,), (1393035492,), (1393035499,), (1393035501,), (1393035503,), (1393035506,), (1393035508,), (1393035557,), (1393035558,), (1393035559,), (1393035560,), (1393035562,), (1393035603,), (1393035605,), (1393035632,), (1393035633,), (1393035634,), (1393035636,), (1393035657,), (1393035658,), (1393035659,), (1393035661,), (1393035723,), (1393035724,), (1393035725,), (1393035727,), (1393035743,), (1393035744,), (1393035745,), (1393035747,), (1393035791,), (1393035795,), (1393035801,), (1393035805,), (1393035810,), (1393035818,), (1393035820,), (1393035822,), (1393035869,), (1393035872,), (1393035910,), (1393035921,), (1393035855,), (1393035859,), (1393035863,), (1393035867,), (1393035875,), (1393035878,), (1393035882,), (1393035889,), (1393035934,), (1393035936,), (1393035938,), (1393035940,), (1393036210,), (1393036239,), (1393036270,), (1393036693,), (1393036725,), (1393036755,), (1393037238,), (1393037239,), (1393037241,), (1393037243,), (1393037266,), (1393037268,), (1393037270,), (1393037272,), (1393037584,), (1393037621,), (1393037652,), (1393037839,), (1393037850,), (1393037865,), (1393037868,), (1393037892,), (1393037896,), (1393037897,), (1393037899,), (1393037901,), (1393037912,), (1393037914,), (1393037916,), (1393037920,), (1393037922,), (1393037926,), (1393037977,), (1393037979,), (1393037980,), (1393038037,), (1393038039,), (1393038054,), (1393038087,), (1393038089,), (1393038091,), (1393038094,), (1393038146,), (1393038149,), (1393038151,), (1393038153,), (1393038156,), (1393038189,), (1393038181,), (1393038183,), (1393038185,), (1393038187,), (1393038219,), (1393038225,), (1393038239,), (1393038298,), (1393038300,), (1393038301,), (1393038302,), (1393038316,), (1393038322,), (1393038323,), (1393038326,), (1393038346,), (1393038349,), (1393038351,), (1393038353,), (1393038403,), (1393038405,), (1393038407,), (1393038429,), (1393038485,), (1393038488,), (1393038546,), (1393038578,), (1393038582,), (1393038608,), (1393038611,), (1393038628,), (1393038629,), (1393038633,), (1393038635,), (1393038685,), (1393038687,), (1393038688,), (1393038690,), (1393038691,), (1393038718,), (1393038720,), (1393038722,), (1393038724,), (1393038727,), (1393038771,), (1393038774,), (1393038776,), (1393038799,), (1393038801,), (1393038804,), (1393038809,), (1393038798,), (1393038824,), (1393038826,), (1393038827,), (1393038829,), (1393038832,), (1393038840,), (1393038923,), (1393038930,), (1393038933,), (1393038937,), (1393038942,), (1393038964,), (1393038965,), (1393038966,), (1393038967,), (1393038973,), (1393038992,), (1393038995,), (1393038998,), (1393039029,), (1393039031,), (1393039033,), (1393039036,), (1393039040,), (1393039075,), (1393039076,), (1393039077,), (1393039079,), (1393039083,), (1393039085,), (1393039113,), (1393039115,), (1393039171,), (1393039174,), (1393039177,), (1393039182,), (1393039206,), (1393039208,), (1393039243,), (1393039251,), (1393039306,), (1393039307,), (1393039309,), (1393039313,), (1393039318,), (1393039374,), (1393039382,), (1393039418,), (1393039420,), (1393039421,), (1393039422,), (1393039426,), (1393039429,), (1393039455,), (1393039457,), (1393039461,), (1393039464,), (1393039465,), (1393039466,), (1393039468,), (1393039444,), (1393039446,), (1393039449,), (1393039453,), (1393039475,), (1393039479,), (1393039493,), (1393039520,), (1393039522,), (1393039524,), (1393039546,), (1393039551,), (1393039555,), (1393039619,), (1393039622,), (1393039636,), (1393039644,), (1393039663,), (1393039665,), (1393039667,), (1393039670,), (1393039674,), (1393039720,), (1393039724,), (1393039728,), (1393039732,), (1393039735,), (1393039738,), (1393039780,), (1393039782,), (1393039786,), (1393039790,), (1393039795,), (1393039827,), (1393039828,), (1393039829,), (1393039865,), (1393039868,), (1393039869,), (1393039870,), (1393039873,), (1393039876,), (1393039910,), (1393039938,), (1393039941,), (1393039945,), (1393039967,), (1393040021,), (1393040022,), (1393040023,), (1393040026,), (1393040030,), (1393040064,), (1393040066,), (1393040067,), (1393040068,), (1393040071,), (1393040119,), (1393040121,), (1393040123,), (1393040125,), (1393040128,), (1393040134,), (1393040246,), (1393040251,), (1393040256,), (1393040262,), (1393040272,), (1393040278,), (1393040284,), (1393040289,), (1393040342,), (1393040347,), (1393040354,), (1393040401,), (1393040403,), (1393040336,), (1393040340,), (1393040341,), (1393040380,), (1393040395,), (1393040452,), (1393040456,), (1393040459,), (1393040461,), (1393040463,), (1393040551,), (1393040553,), (1393040555,), (1393040559,), (1393040564,), (1393040567,), (1393040575,), (1393040577,), (1393040579,), (1393040626,), (1393040627,), (1393040640,), (1393040642,), (1393040649,), (1393040691,), (1393040693,), (1393040694,), (1393040696,), (1393040700,), (1393040702,), (1393040731,), (1393040737,), (1393040740,), (1393040798,), (1393040801,), (1393040806,), (1393040827,), (1393040848,), (1393040850,), (1393040851,), (1393040853,), (1393040856,), (1393040872,), (1393040874,), (1393040876,), (1393040899,), (1393040901,), (1393040904,), (1393040920,), (1393040942,), (1393041004,), (1393041018,), (1393041081,), (1393041084,), (1393041088,), (1393041107,), (1393041109,), (1393041112,), (1393041115,), (1393041137,), (1393041145,), (1393041161,), (1393041163,), (1393041216,), (1393041210,), (1393041214,), (1393041245,), (1393041256,), (1393041262,), (1393041268,), (1393041272,), (1393041276,), (1393041329,), (1393041331,), (1393041333,), (1393041337,), (1393041341,), (1393041344,), (1393041350,), (1393041351,), (1393041365,), (1393041368,), (1393041372,), (1393041378,), (1393041402,), (1393041404,), (1393041406,), (1393041409,), (1393041423,), (1393041435,), (1393041454,), (1393041456,), (1393041457,), (1393041458,), (1393041507,), (1393041509,), (1393041511,), (1393041541,), (1393041543,), (1393041544,), (1393041545,), (1393041549,), (1393041607,), (1393041609,), (1393041611,), (1393041613,), (1393041618,), (1393041621,), (1393041640,), (1393041641,), (1393041643,), (1393041687,), (1393041694,), (1393041718,), (1393041796,), (1393041797,), (1393041798,), (1393041812,), (1393041814,), (1393041820,), (1393041825,), (1393041834,), (1393041841,), (1393041879,), (1393041880,), (1393041882,), (1393041883,), (1393041918,), (1393041921,), (1393041932,), (1393041939,), (1393041948,), (1393041910,), (1393041911,), (1393041912,), (1393041914,), (1393041953,), (1393042006,), (1393042034,), (1393042036,), (1393042080,), (1393042082,), (1393042084,), (1393042086,), (1393042116,), (1393042118,), (1393042120,), (1393042123,), (1393042127,), (1393042131,), (1393042146,), (1393042148,), (1393042149,), (1393042156,), (1393042162,), (1393042164,), (1393042215,), (1393042225,), (1393042229,), (1393042275,), (1393042277,), (1393042280,), (1393042283,), (1393042287,), (1393042314,), (1393042315,), (1393042316,), (1393042317,), (1393042321,), (1393042345,), (1393042347,), (1393042348,), (1393042349,), (1393042352,), (1393042383,), (1393042384,), (1393042385,), (1393042447,), (1393042449,), (1393042457,), (1393042482,), (1393042486,), (1393042489,), (1393042513,), (1393042515,), (1393042516,), (1393042526,), (1393042535,), (1393042553,), (1393042610,), (1393042605,), (1393042608,), (1393042609,), (1393042648,), (1393042653,), (1393042656,), (1393042661,), (1393042674,), (1393042737,), (1393042739,), (1393042743,), (1393042746,), (1393042749,), (1393042753,), (1393042769,), (1393042814,), (1393042819,), (1393043230,), (1393046323,), (1393046321,), (1393046410,), (1393046413,), (1393046423,), (1393046456,), (1393046496,), (1393046916,), (1393046949,), (1393046982,), (1393047015,), (1393047048,), (1393047093,), (1393047244,), (1393047281,), (1393047451,), (1393047495,), (1393047535,), (1393047712,), (1393047714,), (1393047750,), (1393048606,), (1393048608,), (1393048610,), (1393048612,), (1393048640,), (1393048642,), (1393048644,), (1393048646,), (1393049078,), (1393049107,), (1393049143,), (1393049175,), (1393049211,), (1393049544,), (1393049706,), (1393049741,), (1393049788,), (1393049822,), (1393050048,), (1393050052,), (1393050064,), (1393050069,), (1393050082,), (1393050099,), (1393050121,), (1393050124,), (1393050127,), (1393050147,), (1393050158,), (1393050163,), (1393050169,), (1393050202,), (1393050569,), (1393050471,), (1393050504,), (1393050537,), (1393050792,), (1393050801,), (1393050815,), (1393050816,), (1393050820,), (1393050838,), (1393050870,), (1393050872,), (1393050875,), (1393050879,), (1393050884,), (1393050900,), (1393050911,), (1393050949,), (1393050950,), (1393051016,), (1393051018,), (1393051020,), (1393051052,), (1393051057,), (1393051068,), (1393051145,), (1393051286,), (1393051289,), (1393051355,), (1393051424,), (1393051425,), (1393051485,), (1393051487,), (1393051488,), (1393051489,), (1393051491,), (1393051547,), (1393051550,), (1393051553,), (1393051555,), (1393051571,), (1393051575,), (1393051518,), (1393051545,), (1393051596,), (1393051598,), (1393051599,), (1393051602,), (1393051628,), (1393051630,), (1393051632,), (1393051666,), (1393051667,), (1393051668,), (1393051691,), (1393051693,), (1393051695,), (1393051702,), (1393051738,), (1393051740,), (1393051742,), (1393051774,), (1393051780,), (1393051783,), (1393051787,), (1393051794,), (1393051797,), (1393051826,), (1393051828,), (1393051832,), (1393051878,), (1393051880,), (1393051881,), (1393051882,), (1393051884,), (1393051906,), (1393051910,), (1393051911,), (1393051913,), (1393051915,), (1393051941,), (1393051943,), (1393051944,), (1393051945,), (1393051985,), (1393051988,), (1393051991,), (1393052058,), (1393052060,), (1393052061,), (1393052062,), (1393052064,), (1393052065,), (1393052084,), (1393052086,), (1393052088,), (1393052091,), (1393052150,), (1393052153,), (1393052157,), (1393052160,), (1393052165,), (1393052167,), (1393052205,), (1393052206,), (1393052211,), (1393052212,), (1393052213,), (1393052214,), (1393052215,), (1393052216,), (1393052316,), (1393052319,), (1393052400,), (1393052404,), (1393052429,), (1393052430,), (1393052193,), (1393052197,), (1393052201,), (1393052203,), (1393052239,), (1393052246,), (1393052254,), (1393052292,), (1393052296,), (1393052298,), (1393052305,), (1393052307,), (1393052309,), (1393052312,), (1393052339,), (1393052343,), (1393052348,), (1393052351,), (1393052354,), (1393052357,), (1393052371,), (1393052372,), (1393052373,), (1393052386,), (1393052413,), (1393052414,), (1393052417,), (1393052418,), (1393052421,), (1393052422,), (1393052424,), (1393052425,), (1393052427,), (1393052428,), (1393052432,), (1393052434,), (1393052436,), (1393052439,), (1393052443,), (1393052446,), (1393052462,), (1393052465,), (1393052468,), (1393052472,), (1393052499,), (1393052500,), (1393052524,), (1393052531,), (1393052535,), (1393052602,), (1393052605,), (1393052607,), (1393052609,), (1393052612,), (1393052626,), (1393052629,), (1393052632,), (1393052637,), (1393052639,), (1393052641,), (1393052649,), (1393052652,), (1393052655,), (1393052663,), (1393052664,), (1393052666,), (1393052669,), (1393052671,), (1393052688,), (1393052726,), (1393052728,), (1393052731,), (1393052734,), (1393052776,), (1393052808,), (1393052846,), (1393052880,), (1393052915,), (1393052962,), (1393053384,), (1393053388,), (1393053391,), (1393053395,), (1393053398,), (1393053409,), (1393053413,), (1393053416,), (1393053423,), (1393053848,), (1393053884,), (1393053923,), (1393053975,), (1393054017,), (1393053540,), (1393053580,), (1393053614,), (1393053670,), (1393053709,), (1393053743,), (1393054239,), (1393054273,), (1393054310,), (1393054347,), (1393054385,), (1393054422,), (1393054464,), (1393054465,), (1393054469,), (1393054470,), (1393054471,), (1393054472,), (1393054475,), (1393054478,), (1393054744,), (1393054776,), (1393054809,), (1393054838,), (1393054862,), (1393054864,), (1393054919,), (1393054956,), (1393054970,), (1393054973,), (1393054974,), (1393054975,), (1393054977,), (1393054980,), (1393054983,), (1393055010,), (1393055014,), (1393055016,), (1393055017,), (1393055020,), (1393055046,), (1393055048,), (1393055050,), (1393055059,), (1393055068,), (1393055075,), (1393055125,), (1393055129,), (1393055536,), (1393055575,), (1393055597,), (1393055605,), (1393055608,), (1393055721,), (1393055725,), (1393055728,), (1393055733,), (1393055738,), (1393055740,), (1393055755,), (1393055757,), (1393055758,), (1393055761,), (1393055795,), (1393055803,), (1393055810,), (1393055814,), (1393055818,), (1393055871,), (1393055874,), (1393055877,), (1393055881,), (1393055884,), (1393055886,), (1393055891,), (1393055906,), (1393055908,), (1393055914,), (1393055915,), (1393055917,), (1393055922,), (1393055944,), (1393055946,), (1393055948,), (1393055950,), (1393055951,), (1393056015,), (1393056016,), (1393056017,), (1393056020,), (1393056023,), (1393056026,), (1393056042,), (1393056054,), (1393056057,), (1393056059,), (1393056093,), (1393056096,), (1393056098,), (1393056101,), (1393056103,), (1393056157,), (1393056159,), (1393056161,), (1393056163,), (1393056166,), (1393056223,), (1393056225,), (1393056227,), (1393056229,), (1393056246,), (1393056248,), (1393056250,), (1393056253,), (1393056258,), (1393056262,), (1393056329,), (1393056331,), (1393056332,), (1393056334,), (1393056366,), (1393056383,), (1393056386,), (1393056392,), (1393056396,), (1393056352,), (1393056354,), (1393056358,), (1393056360,), (1393056362,), (1393056400,), (1393056412,), (1393056420,), (1393056430,), (1393056454,), (1393056456,), (1393056458,), (1393056461,), (1393056467,), (1393056490,), (1393056491,), (1393056492,), (1393056495,), (1393056499,), (1393056502,), (1393056519,), (1393056521,), (1393056524,), (1393056582,), (1393056586,), (1393056587,), (1393056599,), (1393056603,), (1393056617,), (1393056684,), (1393056686,), (1393056687,), (1393056694,), (1393056697,), (1393056870,), (1393056871,), (1393056939,), (1393056942,), (1393056945,), (1393056948,), (1393056952,), (1393056955,), (1393056983,), (1393056984,), (1393056985,), (1393056987,), (1393056990,), (1393057018,), (1393057019,), (1393057020,), (1393057023,), (1393057053,), (1393057054,), (1393057055,), (1393057057,), (1393057062,), (1393057067,), (1393057097,), (1393057116,), (1393057118,), (1393057121,), (1393057151,), (1393057154,), (1393057156,), (1393057158,), (1393057161,), (1393057169,), (1393057215,), (1393057217,), (1393057219,), (1393057221,), (1393057258,), (1393057251,), (1393057253,), (1393057255,), (1393057280,), (1393057282,), (1393057284,), (1393057456,), (1393057457,), (1393057458,), (1393057490,), (1393057493,), (1393057517,), (1393057521,), (1393057524,), (1393057530,), (1393057540,), (1393057614,), (1393057615,), (1393057617,), (1393057636,), (1393057642,), (1393057646,), (1393057652,), (1393057658,), (1393057685,), (1393057691,), (1393057693,), (1393057696,), (1393057700,), (1393057736,), (1393057738,), (1393057740,), (1393057743,), (1393057764,), (1393057767,), (1393057785,), (1393057792,), (1393057795,), (1393057797,), (1393057927,), (1393057932,), (1393057935,), (1393057940,), (1393057951,), (1393057954,), (1393057956,), (1393057960,), (1393057962,), (1393058094,), (1393058140,), (1393058181,), (1393058614,), (1393058647,), (1393058681,), (1393057986,), (1393058013,), (1393058058,), (1393058299,), (1393058332,), (1393058369,), (1393058401,), (1393058434,), (1393058482,), (1393058724,), (1393058726,), (1393058729,), (1393058733,), (1393058935,), (1393058942,), (1393058953,), (1393058967,), (1393058978,), (1393058983,), (1393059043,), (1393059053,), (1393059054,), (1393059056,), (1393059091,), (1393059092,), (1393059093,), (1393059096,), (1393059099,), (1393059118,), (1393059120,), (1393059122,), (1393059128,), (1393059139,), (1393059149,), (1393059164,), (1393059173,), (1393059190,), (1393059192,), (1393059195,), (1393059265,), (1393059268,), (1393059270,), (1393059273,), (1393059277,), (1393059280,), (1393059315,), (1393059318,), (1393059319,), (1393059322,), (1393059404,), (1393059407,), (1393059409,), (1393059412,), (1393059416,), (1393059418,), (1393059467,), (1393059468,), (1393059469,), (1393059472,), (1393059476,), (1393059495,), (1393059497,), (1393059513,), (1393059521,), (1393059543,), (1393059575,), (1393059688,), (1393059690,), (1393059692,), (1393059695,), (1393059696,), (1393059698,), (1393059717,), (1393059718,), (1393059719,), (1393059722,), (1393059763,), (1393059864,), (1393059748,), (1393059751,), (1393059754,), (1393059759,), (1393059796,), (1393059797,), (1393059798,), (1393059800,), (1393059802,), (1393059805,), (1393059834,), (1393059873,), (1393059874,), (1393059876,), (1393059879,), (1393059882,), (1393059912,), (1393059922,), (1393059930,), (1393059934,), (1393059937,), (1393059940,), (1393059962,), (1393059967,), (1393059979,), (1393060012,), (1393060022,), (1393060025,), (1393060029,), (1393060033,), (1393060037,), (1393060046,), (1393060049,), (1393060052,), (1393060055,), (1393060059,), (1393060094,), (1393060096,), (1393060097,), (1393060098,), (1393060101,), (1393060166,), (1393060167,), (1393060168,), (1393060170,), (1393060173,), (1393060176,), (1393060201,), (1393060203,), (1393060205,), (1393060210,), (1393060258,), (1393060260,), (1393060261,), (1393060262,), (1393060265,), (1393060267,), (1393060309,), (1393060310,), (1393060312,), (1393060332,), (1393060335,), (1393060337,), (1393060352,), (1393060353,), (1393060354,), (1393060355,), (1393060368,), (1393060371,), (1393060374,), (1393060378,), (1393060382,), (1393060383,), (1393060408,), (1393060411,), (1393060413,), (1393060415,), (1393060436,), (1393060437,), (1393060438,), (1393060441,), (1393060444,), (1393060447,), (1393060495,), (1393060497,), (1393060503,), (1393060505,), (1393060507,), (1393060514,), (1393060516,), (1393060481,), (1393060484,), (1393060487,), (1393060491,), (1393060519,), (1393060521,), (1393060524,), (1393060527,), (1393060531,), (1393060578,), (1393060579,), (1393060580,), (1393060582,), (1393060585,), (1393060610,), (1393060612,), (1393060614,), (1393060616,), (1393060640,), (1393060642,), (1393060643,), (1393060644,), (1393060646,), (1393060648,), (1393060689,), (1393060692,), (1393060694,), (1393060698,), (1393060728,), (1393060733,), (1393060735,), (1393060837,), (1393060859,), (1393060887,), (1393060890,), (1393061045,), (1393061047,), (1393061049,), (1393061097,), (1393061100,), (1393061102,), (1393061104,), (1393061136,), (1393061131,), (1393061134,), (1393061135,), (1393061154,), (1393061156,), (1393061158,), (1393061162,), (1393061196,), (1393061200,), (1393061205,), (1393061217,), (1393061227,), (1393061238,), (1393061264,), (1393061266,), (1393061267,), (1393061269,), (1393061330,), (1393061332,), (1393061334,), (1393061336,), (1393061341,), (1393061346,), (1393061390,), (1393061393,), (1393061397,), (1393061443,), (1393061445,), (1393061446,), (1393061447,), (1393061449,), (1393061452,), (1393061470,), (1393061472,), (1393061473,), (1393061511,), (1393061514,), (1393061528,), (1393061543,), (1393061552,), (1393061556,), (1393061584,), (1393061586,), (1393061587,), (1393061595,), (1393061603,), (1393061605,), (1393061642,), (1393061643,), (1393061644,), (1393061701,), (1393061705,), (1393061708,), (1393061711,), (1393061715,), (1393061758,), (1393061759,), (1393061761,), (1393061764,), (1393061768,), (1393061771,), (1393061781,), (1393061784,), (1393061786,), (1393061787,), (1393061788,), (1393061817,), (1393061819,), (1393061823,), (1393061825,), (1393061854,), (1393061858,), (1393061860,), (1393061871,), (1393061874,), (1393061880,), (1393061845,), (1393061848,), (1393061851,), (1393061893,), (1393061896,), (1393061899,), (1393061904,), (1393061909,), (1393061912,), (1393061986,), (1393061989,), (1393061990,), (1393061992,), (1393061995,), (1393062407,), (1393062488,), (1393062554,), (1393062616,), (1393062679,), (1393062747,), (1393063351,), (1393063389,), (1393063427,), (1393063466,), (1393063662,), (1393063696,), (1393063728,), (1393063764,), (1393063799,), (1393063807,), (1393064106,), (1393064140,), (1393064156,), (1393064165,), (1393064268,), (1393064270,), (1393064272,), (1393064277,), (1393064280,), (1393064283,), (1393064298,), (1393064309,), (1393064321,), (1393064331,), (1393064356,), (1393064358,), (1393064360,), (1393064363,), (1393064366,), (1393064396,), (1393064397,), (1393064398,), (1393064400,), (1393064402,), (1393064436,), (1393064441,), (1393064444,), (1393064447,), (1393064451,), (1393064455,), (1393064477,), (1393064480,), (1393064481,), (1393064485,), (1393064551,), (1393064552,), (1393064553,), (1393064557,), (1393064567,), (1393064569,), (1393064583,), (1393064585,), (1393064587,), (1393064591,), (1393064639,), (1393064645,), (1393064651,), (1393064657,), (1393064661,), (1393064665,), (1393064701,), (1393064676,), (1393064689,), (1393064692,), (1393064695,), (1393064698,), (1393064714,), (1393064716,), (1393064718,), (1393064722,), (1393064729,), (1393064735,), (1393064796,), (1393064798,), (1393064800,), (1393064804,), (1393064808,), (1393064810,), (1393064816,), (1393064820,), (1393064853,), (1393064886,), (1393065005,), (1393065039,), (1393065070,), (1393065104,), (1393065138,), (1393065162,), (1393065193,), (1393065194,), (1393065195,), (1393065198,), (1393065240,), (1393065242,), (1393065245,), (1393065249,), (1393065254,), (1393065287,), (1393065289,), (1393065290,), (1393065292,), (1393065295,), (1393065320,), (1393065321,), (1393065322,), (1393065325,), (1393065329,), (1393065332,), (1393065384,), (1393065387,), (1393065390,), (1393065393,), (1393065419,), (1393065427,), (1393065434,), (1393065443,), (1393065445,), (1393065448,), (1393065483,), (1393065484,), (1393065485,), (1393065487,), (1393065490,), (1393065535,), (1393065537,), (1393065540,), (1393065542,), (1393065545,), (1393065550,), (1393065589,), (1393065591,), (1393065593,), (1393065618,), (1393065621,), (1393065622,), (1393065625,), (1393065628,), (1393065631,), (1393065693,), (1393065696,), (1393065701,), (1393065704,), (1393065761,), (1393065772,), (1393065775,), (1393065778,), (1393065783,), (1393065726,), (1393065731,), (1393065743,), (1393065751,), (1393065760,), (1393065814,), (1393065817,), (1393065821,), (1393065832,), (1393065843,), (1393065846,), (1393065941,), (1393065975,), (1393065989,), (1393066045,), (1393066048,), (1393066051,), (1393066054,), (1393066060,), (1393066080,), (1393066082,), (1393066083,), (1393066085,), (1393066089,), (1393066093,), (1393066120,), (1393066121,), (1393066122,), (1393066145,), (1393066148,), (1393066149,), (1393066154,), (1393066165,), (1393066169,), (1393066196,), (1393066199,), (1393066202,), (1393066205,), (1393066210,), (1393066214,), (1393066266,), (1393066267,), (1393066268,), (1393066270,), (1393066273,), (1393066276,), (1393066298,), (1393066304,), (1393066306,), (1393066308,), (1393066311,), (1393066315,), (1393066322,), (1393066330,), (1393066359,), (1393066363,), (1393066367,), (1393066372,), (1393066378,), (1393066381,), (1393066434,), (1393066435,), (1393066436,), (1393066438,), (1393066463,), (1393066469,), (1393066473,), (1393066483,), (1393066487,), (1393066521,), (1393066523,), (1393066525,), (1393066528,), (1393066531,), (1393066551,), (1393066719,), (1393066753,), (1393066784,), (1393066883,), (1393066865,), (1393066867,), (1393066868,), (1393066880,), (1393066973,), (1393066981,), (1393066983,), (1393066985,), (1393066987,), (1393067049,), (1393067051,), (1393067052,), (1393067054,), (1393067099,), (1393067100,), (1393067111,), (1393067114,), (1393067117,), (1393067120,), (1393067126,), (1393067128,), (1393067129,), (1393067130,), (1393067140,), (1393067143,), (1393067157,), (1393067169,), (1393067205,), (1393067208,), (1393067211,), (1393067214,), (1393067219,), (1393067246,), (1393067249,), (1393067251,), (1393067254,), (1393067318,), (1393067319,), (1393067320,), (1393067323,), (1393067327,), (1393067342,), (1393067370,), (1393067372,), (1393067374,), (1393067396,), (1393067399,), (1393067401,), (1393067416,), (1393067419,), (1393067422,), (1393067451,), (1393067452,), (1393067453,), (1393067455,), (1393067470,), (1393067474,), (1393067480,), (1393067487,), (1393067493,), (1393067499,), (1393067522,), (1393067525,), (1393067527,), (1393067530,), (1393067550,), (1393067552,), (1393067961,), (1393067965,), (1393067969,), (1393067990,), (1393068017,), (1393068046,), (1393068117,), (1393068121,), (1393068144,), (1393068150,), (1393068156,), (1393068164,), (1393068198,), (1393068203,), (1393068208,), (1393068211,), (1393068222,), (1393068229,), (1393068264,), (1393068265,), (1393068267,), (1393068269,), (1393069884,), (1393069880,), (1393069881,), (1393069882,), (1393069957,), (1393069959,), (1393069961,), (1393069963,), (1393069967,), (1393069969,), (1393069996,), (1393069998,), (1393069999,), (1393070022,), (1393070024,), (1393070026,), (1393070030,), (1393070034,), (1393070037,), (1393070071,), (1393070075,), (1393070077,), (1393070080,), (1393070084,), (1393070104,), (1393070113,), (1393070119,), (1393070201,), (1393070209,), (1393070213,), (1393070216,), (1393070221,), (1393070224,), (1393070250,), (1393070252,), (1393070254,), (1393070256,), (1393070259,), (1393070262,), (1393070281,), (1393070282,), (1393070283,), (1393070286,), (1393070289,), (1393070293,), (1393070309,), (1393070311,), (1393070334,), (1393070341,), (1393070342,), (1393070346,), (1393070349,), (1393070352,), (1393070356,), (1393070361,), (1393070363,), (1393070376,), (1393070378,), (1393070380,), (1393070437,), (1393070438,), (1393070441,), (1393070449,), (1393070454,), (1393070457,), (1393070485,), (1393070486,), (1393070487,), (1393070490,), (1393070493,), (1393070503,), (1393070537,), (1393070541,), (1393070543,), (1393070545,), (1393070548,), (1393070588,), (1393070577,), (1393070580,), (1393070581,), (1393070583,), (1393070586,), (1393070617,), (1393070619,), (1393070623,), (1393070629,), (1393070651,), (1393070653,), (1393070655,), (1393070658,), (1393070662,), (1393070676,), (1393070678,), (1393070679,), (1393070685,), (1393070693,), (1393070716,), (1393070717,), (1393070718,), (1393070721,), (1393070725,), (1393070777,), (1393070779,), (1393070781,), (1393070784,), (1393070787,), (1393070816,), (1393070818,), (1393070820,), (1393070822,), (1393070825,), (1393070830,), (1393070874,), (1393070875,), (1393070876,), (1393070877,), (1393070910,), (1393070911,), (1393070913,), (1393070916,), (1393070919,), (1393070954,), (1393070957,), (1393070982,), (1393071014,), (1393071044,), (1393071046,), (1393071048,), (1393071051,), (1393071054,), (1393071063,), (1393071093,), (1393071094,), (1393071095,), (1393071097,), (1393071100,), (1393071151,), (1393071154,), (1393071155,), (1393071156,), (1393071174,), (1393071223,), (1393071229,), (1393071234,), (1393071238,), (1393071241,), (1393071245,), (1393071273,), (1393071276,), (1393071291,), (1393071293,), (1393071295,), (1393071296,), (1393071299,), (1393071263,), (1393071266,), (1393071268,), (1393071270,), (1393071317,), (1393071354,), (1393071393,), (1393071446,), (1393071801,), (1393071838,), (1393071871,), (1393071901,), (1393071936,), (1393071972,), (1393072314,), (1393072347,), (1393072381,), (1393072413,), (1393072446,), (1393072581,), (1393072582,), (1393072583,), (1393072586,), (1393072590,), (1393072686,), (1393072719,), (1393072751,), (1393072786,), (1393073118,), (1393073144,), (1393073163,), (1393073173,), (1393073186,), (1393073214,), (1393073311,), (1393073312,), (1393073313,), (1393073314,), (1393073335,), (1393073337,), (1393073339,), (1393073342,), (1393073345,), (1393073376,), (1393073379,), (1393073381,), (1393073383,), (1393073408,), (1393073409,), (1393073411,), (1393073423,), (1393073431,), (1393073443,), (1393073462,), (1393073466,), (1393073473,), (1393073478,), (1393073487,), (1393073489,), (1393073492,), (1393073494,), (1393073514,), (1393073518,), (1393073525,), (1393073527,), (1393073529,), (1393073578,), (1393073579,), (1393073580,), (1393073581,), (1393073583,), (1393073617,), (1393073623,), (1393073625,), (1393073628,), (1393073632,), (1393073655,), (1393073646,), (1393073649,), (1393073651,), (1393073652,), (1393073695,), (1393073699,), (1393073705,), (1393073711,), (1393073725,), (1393073825,), (1393073829,), (1393073833,), (1393073837,), (1393073841,), (1393073844,), (1393073858,), (1393073869,), (1393073875,), (1393073877,), (1393073916,), (1393073918,), (1393073934,), (1393073942,), (1393073946,), (1393073965,), (1393074024,), (1393074032,), (1393074036,), (1393074039,), (1393074042,), (1393074044,), (1393074057,), (1393074063,), (1393074065,), (1393074067,), (1393074086,), (1393074089,), (1393074093,), (1393074096,), (1393074099,), (1393074102,), (1393074117,), (1393074119,), (1393074123,), (1393074173,), (1393074181,), (1393074185,), (1393074190,), (1393074192,), (1393074194,), (1393074209,), (1393074212,), (1393074215,), (1393074217,), (1393074225,), (1393074264,), (1393074265,), (1393074266,), (1393074270,), (1393074273,), (1393074301,), (1393074308,), (1393074311,), (1393074313,), (1393074368,), (1393074371,), (1393074372,), (1393074374,), (1393074377,), (1393074435,), (1393074436,), (1393074437,), (1393074439,), (1393074499,), (1393074502,), (1393074506,), (1393074509,), (1393074513,), (1393074517,), (1393074544,), (1393074660,), (1393074541,), (1393074543,), (1393074563,), (1393074565,), (1393074568,), (1393074572,), (1393074576,), (1393074594,), (1393074648,), (1393074676,), (1393074680,), (1393074684,), (1393074689,), (1393074711,), (1393074714,), (1393074715,), (1393074716,), (1393074717,), (1393074720,), (1393074748,), (1393074957,), (1393074960,), (1393074962,), (1393075001,), (1393075011,), (1393075012,), (1393075013,), (1393075015,), (1393075035,), (1393075049,), (1393075074,), (1393075077,), (1393075079,), (1393075082,), (1393075084,), (1393075094,), (1393075115,), (1393075117,), (1393075123,), (1393075126,), (1393075128,), (1393075131,), (1393075136,), (1393075146,), (1393075178,), (1393075179,), (1393075182,), (1393075253,), (1393075256,), (1393075258,), (1393075262,), (1393075266,), (1393075269,), (1393075316,), (1393075284,), (1393075287,), (1393075292,), (1393075305,), (1393075313,), (1393075339,), (1393075341,), (1393075342,), (1393075446,), (1393075448,), (1393075450,), (1393075454,), (1393075457,), (1393075460,), (1393075481,), (1393075486,), (1393075488,), (1393075491,), (1393075506,), (1393075507,), (1393075508,), (1393075548,), (1393075549,), (1393075550,), (1393075552,), (1393075556,), (1393075559,), (1393075593,), (1393075596,), (1393075599,), (1393075601,), (1393075614,), (1393075623,), (1393075697,), (1393075699,), (1393075702,), (1393075705,), (1393075707,), (1393075715,), (1393075727,), (1393075731,), (1393075735,), (1393075739,), (1393075741,), (1393075745,), (1393075751,), (1393075752,), (1393075756,), (1393075760,), (1393075763,), (1393075767,), (1393075775,), (1393075794,), (1393075798,), (1393075801,), (1393075803,), (1393075827,), (1393075831,), (1393075834,), (1393075838,), (1393075908,), (1393075910,), (1393075911,), (1393075913,), (1393075917,), (1393075919,), (1393075936,), (1393075937,), (1393075938,), (1393075940,), (1393075944,), (1393076352,), (1393076357,), (1393076362,), (1393076365,), (1393076369,), (1393076490,), (1393076580,), (1393076898,), (1393076567,), (1393076574,), (1393076577,), (1393076606,), (1393076609,), (1393076646,), (1393076681,), (1393076717,), (1393076760,), (1393077078,), (1393077590,), (1393077622,), (1393077651,), (1393077866,), (1393077868,), (1393077870,), (1393077873,), (1393077876,), (1393077970,), (1393077972,), (1393078001,), (1393078038,), (1393078422,), (1393078445,), (1393078446,), (1393078456,), (1393078624,), (1393078626,), (1393078635,), (1393078647,), (1393078656,), (1393078659,), (1393078663,), (1393078665,), (1393078675,), (1393078677,), (1393078678,), (1393078679,), (1393078680,), (1393078681,), (1393078715,), (1393078718,), (1393078721,), (1393078725,), (1393078768,), (1393078770,), (1393078772,), (1393078809,), (1393078811,), (1393078814,), (1393078817,), (1393078820,), (1393078868,), (1393078871,), (1393078874,), (1393078875,), (1393078917,), (1393078919,), (1393078922,), (1393078924,), (1393078935,), (1393079008,), (1393079005,), (1393079033,), (1393079034,), (1393079035,), (1393079086,), (1393079090,), (1393079092,), (1393079094,), (1393079098,), (1393079118,), (1393079119,), (1393079122,), (1393079131,), (1393079134,), (1393079225,), (1393079227,), (1393079284,), (1393079359,), (1393079363,), (1393079481,), (1393079559,), (1393079562,), (1393079564,), (1393079632,), (1393079634,), (1393079637,), (1393079640,), (1393079709,), (1393079711,), (1393079713,), (1393079715,), (1393079783,), (1393080131,), (1393080114,), (1393080121,), (1393080185,), (1393080187,), (1393080228,), (1393080231,), (1393080232,), (1393080233,), (1393080257,), (1393080259,), (1393080261,), (1393080263,), (1393080266,), (1393080269,), (1393080306,), (1393080309,), (1393080311,), (1393080312,), (1393080476,), (1393080510,), (1393080540,), (1393080572,), (1393080907,), (1393080913,), (1393080918,), (1393080925,), (1393080927,), (1393080928,), (1393080937,), (1393080939,), (1393080941,), (1393080944,), (1393080946,), (1393080949,), (1393080952,), (1393081010,), (1393081017,), (1393081021,), (1393081025,), (1393081062,), (1393081052,), (1393081054,), (1393081056,), (1393081058,), (1393081083,), (1393081085,), (1393081160,), (1393081174,), (1393081371,), (1393081377,), (1393081378,), (1393081564,), (1393081567,), (1393081569,), (1393081617,), (1393081619,), (1393081621,), (1393081653,), (1393081661,), (1393081667,), (1393081964,), (1393082035,), (1393082251,), (1393082356,), (1393082359,), (1393082362,), (1393082364,), (1393082370,), (1393082378,), (1393082405,), (1393082407,), (1393082409,), (1393082411,), (1393082415,), (1393082426,), (1393082457,), (1393082459,), (1393082461,), (1393082515,), (1393082516,), (1393082517,), (1393082519,), (1393082522,), (1393082525,), (1393082962,), (1393083042,), (1393083108,), (1393083175,), (1393083461,), (1393083462,), (1393083530,), (1393083536,), (1393083599,), (1393083607,), (1393083661,), (1393083664,), (1393083868,), (1393083833,), (1393084253,), (1393084254,), (1393084310,), (1393084331,), (1393084348,), (1393084551,), (1393084583,), (1393084618,), (1393084657,), (1393085097,), (1393085168,), (1393085231,), (1393085296,), (1393085361,), (1393085849,), (1393085852,), (1393085853,), (1393085854,), (1393085856,), (1393085918,), (1393085922,), (1393085926,), (1393086352,), (1393086378,), (1393086556,), (1393086558,), (1393086560,), (1393086568,), (1393086577,), (1393086637,), (1393086638,), (1393086639,), (1393086642,), (1393086661,), (1393086694,), (1393086798,), (1393086799,), (1393086808,), (1393086896,), (1393086927,), (1393086960,), (1393097247,), (1393098348,), (1393098350,), (1393098351,), (1393098382,), (1393098487,), (1393098489,), (1393098490,), (1393098491,), (1393098501,), (1393098503,), (1393098505,), (1393098507,), (1393098510,), (1393098550,), (1393098553,), (1393098626,), (1393098627,), (1393098628,), (1393098629,), (1393098891,), (1393098925,), (1393098959,), (1393098993,), (1393099028,), (1393099223,), (1393099224,), (1393099225,), (1393099227,), (1393099229,), (1393099251,), (1393099252,), (1393099259,), (1393099269,), (1393099282,), (1393099290,), (1393099297,), (1393099299,), (1393099302,), (1393099303,), (1393099304,), (1393099305,), (1393099307,), (1393099309,), (1393099371,), (1393099390,), (1393099425,), (1393099455,), (1393099880,), (1393099886,), (1393099891,), (1393099896,), (1393099900,), (1393099902,), (1393099909,), (1393099910,), (1393099912,), (1393099914,), (1393099916,), (1393100023,), (1393100057,), (1393100092,), (1393100131,), (1393100517,), (1393100659,), (1393099958,), (1393099990,), (1393100303,), (1393100338,), (1393100373,), (1393100403,), (1393100460,), (1393100785,), (1393100820,), (1393100879,), (1393100939,), (1393100974,), (1393101009,), (1393101301,), (1393101333,), (1393101369,), (1393101399,), (1393101677,), (1393101708,), (1393101743,), (1393101766,), (1393101791,), (1393101914,), (1393101916,), (1393101920,), (1393101923,), (1393101926,), (1393101929,), (1393101947,), (1393101949,), (1393101951,), (1393101966,), (1393101970,), (1393102030,), (1393102034,), (1393102037,), (1393102040,), (1393102059,), (1393102061,), (1393102063,), (1393102107,), (1393102133,), (1393102138,), (1393102147,), (1393102158,), (1393102180,), (1393102189,), (1393102192,), (1393102196,), (1393102198,), (1393102201,), (1393102256,), (1393102258,), (1393102261,), (1393102266,), (1393102302,), (1393102303,), (1393102304,), (1393102353,), (1393102898,), (1393102809,), (1393102842,), (1393102877,), (1393102895,), (1393102912,), (1393102913,), (1393102914,), (1393102917,), (1393102921,), (1393103036,), (1393103038,), (1393103041,), (1393103043,), (1393103047,), (1393103079,), (1393103083,), (1393103089,), (1393103099,), (1393103103,), (1393103138,), (1393103139,), (1393103140,), (1393103143,), (1393103147,), (1393103150,), (1393103164,), (1393103168,), (1393103172,), (1393103175,), (1393103212,), (1393103214,), (1393103216,), (1393103219,), (1393103224,), (1393103228,), (1393103268,), (1393103270,), (1393103271,), (1393103273,), (1393103276,), (1393103353,), (1393103355,), (1393103396,), (1393103508,), (1393103512,), (1393103515,), (1393103590,), (1393103602,), (1393103608,), (1393104406,), (1393104413,), (1393104423,), (1393104485,), (1393104486,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07112025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28307002]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393104486, 1393104485] map_info['map_portfolio_photo'] : {28307002: [1393104486, 1393104485, 1393104423, 1393104413, 1393104406, 1393103608, 1393103602, 1393103590, 1393103515, 1393103512, 1393103508, 1393103396, 1393103355, 1393103353, 1393103276, 1393103273, 1393103271, 1393103270, 1393103268, 1393103228, 1393103224, 1393103219, 1393103216, 1393103214, 1393103212, 1393103175, 1393103172, 1393103168, 1393103164, 1393103150, 1393103147, 1393103143, 1393103140, 1393103139, 1393103138, 1393103103, 1393103099, 1393103089, 1393103083, 1393103079, 1393103047, 1393103043, 1393103041, 1393103038, 1393103036, 1393102921, 1393102917, 1393102914, 1393102913, 1393102912, 1393102895, 1393102877, 1393102842, 1393102809]} final : True mtd_id 4302 list_pids : [1393104486, 1393104485] Looping around the photos to save general results len do output : 1 /28307002Didn'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, '4016670') ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670') ('4302', None, None, None, None, None, None, None, '4016670') ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '28307002', 'None', None, None, None, None, '4016670'), ('4302', '28307002', '1393104486', None, None, None, None, None, '4016670'), ('4302', '28307002', '1393104485', None, None, None, None, None, '4016670')] time used for this insertion : 0.011911869049072266 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8806214332580566 time spend to save output : 0.012084245681762695 total time spend for step 5 : 2.8927056789398193 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 (4016670) 2.19user 2.53system 0:17.13elapsed 27%CPU (0avgtext+0avgdata 156668maxresident)k 296inputs+18152outputs (3major+74905minor)pagefaults 0swaps