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 : 3638474 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 (3244461) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3244461) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671783 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3244461'] with mtr_portfolio_ids : ['24671783'] and first list_photo_ids : [] new path : /proc/3638474/ Name: python3 Umask: 0002 State: R (running) Tgid: 3638474 Ngid: 0 Pid: 3638474 PPid: 3638473 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3638474 NSpid: 3638474 NSpgid: 3637544 NSsid: 3637544 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98744 kB VmRSS: 98744 kB RssAnon: 59804 kB RssFile: 38940 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3638474', 'Ngid': '0', 'Pid': '3638474', 'PPid': '3638473', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3638474', 'NSpid': '3638474', 'NSpgid': '3637544', 'NSsid': '3637544', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98744 kB', 'VmRSS': '98744 kB', 'RssAnon': '59804 kB', 'RssFile': '38940 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '3638474', '1106868', '0', '1106868', '865620', '98744', b'', 'marlene', '3244461') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24671783) 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 (3244461 ) ) 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 (24671783) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371004415, 'portfolio_id': 24671783}, {'photo_id': 1371004412, 'portfolio_id': 24671783}, {'photo_id': 1371004409, 'portfolio_id': 24671783}, {'photo_id': 1371004407, 'portfolio_id': 24671783}, {'photo_id': 1371004406, 'portfolio_id': 24671783}, {'photo_id': 1371004402, 'portfolio_id': 24671783}, {'photo_id': 1371004379, 'portfolio_id': 24671783}, {'photo_id': 1371004375, 'portfolio_id': 24671783}, {'photo_id': 1371004371, 'portfolio_id': 24671783}, {'photo_id': 1371004368, 'portfolio_id': 24671783}, {'photo_id': 1371004364, 'portfolio_id': 24671783}, {'photo_id': 1371004361, 'portfolio_id': 24671783}, {'photo_id': 1371004348, 'portfolio_id': 24671783}, {'photo_id': 1371004343, 'portfolio_id': 24671783}, {'photo_id': 1371004339, 'portfolio_id': 24671783}, {'photo_id': 1371004335, 'portfolio_id': 24671783}, {'photo_id': 1371004333, 'portfolio_id': 24671783}, {'photo_id': 1371004330, 'portfolio_id': 24671783}, {'photo_id': 1371004292, 'portfolio_id': 24671783}, {'photo_id': 1371004289, 'portfolio_id': 24671783}, {'photo_id': 1371004286, 'portfolio_id': 24671783}, {'photo_id': 1371004284, 'portfolio_id': 24671783}, {'photo_id': 1371004282, 'portfolio_id': 24671783}, {'photo_id': 1371004279, 'portfolio_id': 24671783}, {'photo_id': 1371004263, 'portfolio_id': 24671783}, {'photo_id': 1371004258, 'portfolio_id': 24671783}, {'photo_id': 1371004252, 'portfolio_id': 24671783}, {'photo_id': 1371004249, 'portfolio_id': 24671783}, {'photo_id': 1371004245, 'portfolio_id': 24671783}, {'photo_id': 1371004240, 'portfolio_id': 24671783}, {'photo_id': 1371004223, 'portfolio_id': 24671783}, {'photo_id': 1371004219, 'portfolio_id': 24671783}, {'photo_id': 1371004215, 'portfolio_id': 24671783}, {'photo_id': 1371004212, 'portfolio_id': 24671783}, {'photo_id': 1371004210, 'portfolio_id': 24671783}, {'photo_id': 1371004206, 'portfolio_id': 24671783}, {'photo_id': 1371004189, 'portfolio_id': 24671783}, {'photo_id': 1371004187, 'portfolio_id': 24671783}, {'photo_id': 1371004185, 'portfolio_id': 24671783}, {'photo_id': 1371004183, 'portfolio_id': 24671783}, {'photo_id': 1371004180, 'portfolio_id': 24671783}, {'photo_id': 1371004175, 'portfolio_id': 24671783}, {'photo_id': 1371004160, 'portfolio_id': 24671783}, {'photo_id': 1371004158, 'portfolio_id': 24671783}, {'photo_id': 1371004154, 'portfolio_id': 24671783}, {'photo_id': 1371004150, 'portfolio_id': 24671783}, {'photo_id': 1371004145, 'portfolio_id': 24671783}, {'photo_id': 1371004130, 'portfolio_id': 24671783}, {'photo_id': 1371004112, 'portfolio_id': 24671783}, {'photo_id': 1371004109, 'portfolio_id': 24671783}, {'photo_id': 1371004105, 'portfolio_id': 24671783}, {'photo_id': 1371004102, 'portfolio_id': 24671783}, {'photo_id': 1371004099, 'portfolio_id': 24671783}, {'photo_id': 1371004095, 'portfolio_id': 24671783}, {'photo_id': 1371004083, 'portfolio_id': 24671783}, {'photo_id': 1371004081, 'portfolio_id': 24671783}, {'photo_id': 1371004079, 'portfolio_id': 24671783}, {'photo_id': 1371004077, 'portfolio_id': 24671783}, {'photo_id': 1371004074, 'portfolio_id': 24671783}, {'photo_id': 1371004069, 'portfolio_id': 24671783}, {'photo_id': 1371004048, 'portfolio_id': 24671783}, {'photo_id': 1371004045, 'portfolio_id': 24671783}, {'photo_id': 1371004042, 'portfolio_id': 24671783}, {'photo_id': 1371004039, 'portfolio_id': 24671783}, {'photo_id': 1371004031, 'portfolio_id': 24671783}, {'photo_id': 1371004013, 'portfolio_id': 24671783}, {'photo_id': 1371003867, 'portfolio_id': 24671783}, {'photo_id': 1371003831, 'portfolio_id': 24671783}, {'photo_id': 1371003800, 'portfolio_id': 24671783}, {'photo_id': 1371003769, 'portfolio_id': 24671783}, {'photo_id': 1371003759, 'portfolio_id': 24671783}, {'photo_id': 1371003750, 'portfolio_id': 24671783}, {'photo_id': 1371003574, 'portfolio_id': 24671783}, {'photo_id': 1371003542, 'portfolio_id': 24671783}, {'photo_id': 1371003484, 'portfolio_id': 24671783}, {'photo_id': 1371003427, 'portfolio_id': 24671783}, {'photo_id': 1371003362, 'portfolio_id': 24671783}] map_portfolio_id_photo_id: {24671783: [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361, 1371004348, 1371004343, 1371004339, 1371004335, 1371004333, 1371004330, 1371004292, 1371004289, 1371004286, 1371004284, 1371004282, 1371004279, 1371004263, 1371004258, 1371004252, 1371004249, 1371004245, 1371004240, 1371004223, 1371004219, 1371004215, 1371004212, 1371004210, 1371004206, 1371004189, 1371004187, 1371004185, 1371004183, 1371004180, 1371004175, 1371004160, 1371004158, 1371004154, 1371004150, 1371004145, 1371004130, 1371004112, 1371004109, 1371004105, 1371004102, 1371004099, 1371004095, 1371004083, 1371004081, 1371004079, 1371004077, 1371004074, 1371004069, 1371004048, 1371004045, 1371004042, 1371004039, 1371004031, 1371004013, 1371003867, 1371003831, 1371003800, 1371003769, 1371003759, 1371003750, 1371003574, 1371003542, 1371003484, 1371003427, 1371003362]} ##### 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.01610875129699707 #### 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 Mon Jul 7 10:14: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 (24671783) 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 : 24671783 get user id for portfolio 24671783 get sub ptf for main ptf 24671783, type 3726 and hashtags ['mal_croppe', 'autre_refus', 'papier', 'plastique', 'environnement', 'cartonnette', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'Carton_brun', 'flou', 'Carton_gris'] 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`=24671783 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','papier','plastique','environnement','cartonnette','kraft','metal','Teint_Dans_La_Masse','Carton_brun','flou','Carton_gris')) 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`=24671783 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','papier','plastique','environnement','cartonnette','kraft','metal','Teint_Dans_La_Masse','Carton_brun','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24671783, 'sub_port_id': 24671789, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583498, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'papier': {'main_port_id': 24671783, 'sub_port_id': 24671791, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583499, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'plastique': {'main_port_id': 24671783, 'sub_port_id': 24671792, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583500, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'mal_croppe': {'main_port_id': 24671783, 'sub_port_id': 24671793, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583501, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'Carton_brun': {'main_port_id': 24671783, 'sub_port_id': 24671794, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583502, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'cartonnette': {'main_port_id': 24671783, 'sub_port_id': 24671796, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583503, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'kraft': {'main_port_id': 24671783, 'sub_port_id': 24671797, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583504, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 24671783, 'sub_port_id': 24671798, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583505, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'Carton_gris': {'main_port_id': 24671783, 'sub_port_id': 24671800, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583506, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'metal': {'main_port_id': 24671783, 'sub_port_id': 24671801, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583507, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'flou': {'main_port_id': 24671783, 'sub_port_id': 24671802, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583508, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}, 'environnement': {'main_port_id': 24671783, 'sub_port_id': 24671804, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583509, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671789 , 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=24671783 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 (24671789) result : ((1371004060,), (1371004061,), (1371004199,), (1371004200,), (1371004201,), (1371004300,), (1371004456,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671791 , 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=24671783 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 (24671791) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671792 , 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=24671783 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 (24671792) result : ((1371004067,), (1371004068,), (1371004141,), (1371004164,), (1371004232,), (1371004325,), (1371004356,), (1371004394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671793 , 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=24671783 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 (24671793) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671794 , 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=24671783 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 (24671794) result : ((1371004064,), (1371004065,), (1371004066,), (1371004137,), (1371004138,), (1371004139,), (1371004140,), (1371004204,), (1371004205,), (1371004207,), (1371004392,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671796 , 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=24671783 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 (24671796) result : ((1371004203,), (1371004314,), (1371004316,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671797 , 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=24671783 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 (24671797) result : ((1371004165,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671798 , 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=24671783 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 (24671798) result : ((1371004058,), (1371004124,), (1371004125,), (1371004126,), (1371004127,), (1371004163,), (1371004229,), (1371004230,), (1371004231,), (1371004298,), (1371004354,), (1371004383,), (1371004384,), (1371004385,), (1371004450,), (1371004451,), (1371004452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671800 , 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=24671783 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 (24671800) result : ((1371004063,), (1371004129,), (1371004131,), (1371004132,), (1371004133,), (1371004202,), (1371004304,), (1371004306,), (1371004355,), (1371004386,), (1371004387,), (1371004388,), (1371004389,), (1371004390,), (1371004457,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671801 , 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=24671783 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 (24671801) result : ((1371004143,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671802 , 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=24671783 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 (24671802) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24671804 , 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=24671783 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 (24671804) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24671783) result : ((1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) 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 (1371003800) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24671783 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','papier','plastique','environnement','cartonnette','kraft','metal','Teint_Dans_La_Masse','Carton_brun','flou','Carton_gris')) 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`=24671783 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','autre_refus','papier','plastique','environnement','cartonnette','kraft','metal','Teint_Dans_La_Masse','Carton_brun','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24671783, 'sub_port_id': 24671811, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583522, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'papier': {'main_port_id': 24671783, 'sub_port_id': 24671812, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583523, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'plastique': {'main_port_id': 24671783, 'sub_port_id': 24671813, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583524, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'mal_croppe': {'main_port_id': 24671783, 'sub_port_id': 24671814, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583525, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'Carton_brun': {'main_port_id': 24671783, 'sub_port_id': 24671815, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583526, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'cartonnette': {'main_port_id': 24671783, 'sub_port_id': 24671816, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583527, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'kraft': {'main_port_id': 24671783, 'sub_port_id': 24671817, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583528, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 24671783, 'sub_port_id': 24671818, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583529, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'Carton_gris': {'main_port_id': 24671783, 'sub_port_id': 24671819, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583530, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'metal': {'main_port_id': 24671783, 'sub_port_id': 24671820, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583531, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'flou': {'main_port_id': 24671783, 'sub_port_id': 24671821, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583532, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 3), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}, 'environnement': {'main_port_id': 24671783, 'sub_port_id': 24671822, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16583533, 'last_updated_at': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 10, 12, 56), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 10, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671811,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671812,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671791 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671813,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671792 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671814,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671793 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671815,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671794 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671796 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671797 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671798 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671800 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671801 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671802 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24671822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24671804 lien utilise dans velours : https://www.fotonower.com/velours/24671811,24671812,24671813,24671814,24671815,24671816,24671817,24671818,24671819,24671820,24671821,24671822?tags=autre_refus,papier,plastique,mal_croppe,Carton_brun,cartonnette,kraft,Teint_Dans_La_Masse,Carton_gris,metal,flou,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24671783]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] map_info['map_portfolio_photo'] : {24671783: [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361, 1371004348, 1371004343, 1371004339, 1371004335, 1371004333, 1371004330, 1371004292, 1371004289, 1371004286, 1371004284, 1371004282, 1371004279, 1371004263, 1371004258, 1371004252, 1371004249, 1371004245, 1371004240, 1371004223, 1371004219, 1371004215, 1371004212, 1371004210, 1371004206, 1371004189, 1371004187, 1371004185, 1371004183, 1371004180, 1371004175, 1371004160, 1371004158, 1371004154, 1371004150, 1371004145, 1371004130, 1371004112, 1371004109, 1371004105, 1371004102, 1371004099, 1371004095, 1371004083, 1371004081, 1371004079, 1371004077, 1371004074, 1371004069, 1371004048, 1371004045, 1371004042, 1371004039, 1371004031, 1371004013, 1371003867, 1371003831, 1371003800, 1371003769, 1371003759, 1371003750, 1371003574, 1371003542, 1371003484, 1371003427, 1371003362]} final : False mtd_id 4302 list_pids : [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] Looping around the photos to save general results len do output : 1 /24671783. 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, '3244461') ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24671783', "{'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804}", None, None, None, None, '3244461'), ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461')] time used for this insertion : 0.017783641815185547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5411896705627441 time spend to save output : 0.018069982528686523 total time spend for step 1 : 0.5592596530914307 step2:final Mon Jul 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (24671783) 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 24671783 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371003574,1371003542,1371003484,1371003427,1371003362,1371003867,1371003831,1371003800,1371003769,1371003759,1371003750,1371004048,1371004045,1371004042,1371004039,1371004031,1371004013,1371004083,1371004081,1371004079,1371004077,1371004074,1371004069,1371004112,1371004109,1371004105,1371004102,1371004099,1371004095,1371004160,1371004158,1371004154,1371004150,1371004145,1371004130,1371004189,1371004187,1371004185,1371004183,1371004180,1371004175,1371004223,1371004219,1371004215,1371004212,1371004210,1371004206,1371004263,1371004258,1371004252,1371004249,1371004245,1371004240,1371004292,1371004289,1371004286,1371004284,1371004282,1371004279,1371004348,1371004343,1371004339,1371004335,1371004333,1371004330,1371004379,1371004375,1371004371,1371004368,1371004364,1371004361,1371004415,1371004412,1371004409,1371004407,1371004406,1371004402); 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([24671783]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} new output for save of step final : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] map_info['map_portfolio_photo'] : {24671783: [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361, 1371004348, 1371004343, 1371004339, 1371004335, 1371004333, 1371004330, 1371004292, 1371004289, 1371004286, 1371004284, 1371004282, 1371004279, 1371004263, 1371004258, 1371004252, 1371004249, 1371004245, 1371004240, 1371004223, 1371004219, 1371004215, 1371004212, 1371004210, 1371004206, 1371004189, 1371004187, 1371004185, 1371004183, 1371004180, 1371004175, 1371004160, 1371004158, 1371004154, 1371004150, 1371004145, 1371004130, 1371004112, 1371004109, 1371004105, 1371004102, 1371004099, 1371004095, 1371004083, 1371004081, 1371004079, 1371004077, 1371004074, 1371004069, 1371004048, 1371004045, 1371004042, 1371004039, 1371004031, 1371004013, 1371003867, 1371003831, 1371003800, 1371003769, 1371003759, 1371003750, 1371003574, 1371003542, 1371003484, 1371003427, 1371003362]} final : False mtd_id 4302 list_pids : [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] Looping around the photos to save general results len do output : 12 /1371004415.Didn't retrieve data . /1371004412.Didn't retrieve data . /1371004409.Didn't retrieve data . /1371004407.Didn't retrieve data . /1371004406.Didn't retrieve data . /1371004402.Didn't retrieve data . /1371004379.Didn't retrieve data . /1371004375.Didn't retrieve data . /1371004371.Didn't retrieve data . /1371004368.Didn't retrieve data . /1371004364.Didn't retrieve data . /1371004361.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, '3244461') ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24671783', '1371004415', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004412', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004409', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004407', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004406', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004402', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004379', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004375', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004371', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004368', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004364', '0.03561229627029162', None, None, None, None, '3244461'), ('4302', '24671783', '1371004361', '0.03561229627029162', None, None, None, None, '3244461')] time used for this insertion : 0.015479326248168945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07498526573181152 time spend to save output : 0.01604747772216797 total time spend for step 2 : 0.09103274345397949 step3:velours_tree Mon Jul 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {24671783: [{'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804}]} input_args_next_step : {24671783: ()} output_args : {24671783: [{'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804}]} args : 24671783 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 : ({'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24671783) 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([24671783]) 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.2697913646697998 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.2698354721069336 step4:send_mail_cod Mon Jul 7 10:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} input_args_next_step : {1371004415: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004415 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004412 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004409 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004407 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004406 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004402 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004379 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004375 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004371 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004368 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004364 depend.output_id : 0 input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ()} output_args : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',)} args : 1371004361 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 : {24671783: [{'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804}]} input_args_next_step : {1371004415: ('0.03561229627029162',), 1371004412: ('0.03561229627029162',), 1371004409: ('0.03561229627029162',), 1371004407: ('0.03561229627029162',), 1371004406: ('0.03561229627029162',), 1371004402: ('0.03561229627029162',), 1371004379: ('0.03561229627029162',), 1371004375: ('0.03561229627029162',), 1371004371: ('0.03561229627029162',), 1371004368: ('0.03561229627029162',), 1371004364: ('0.03561229627029162',), 1371004361: ('0.03561229627029162',), 24671783: ()} output_args : {24671783: [{'autre_refus': 24671789, 'papier': 24671791, 'plastique': 24671792, 'mal_croppe': 24671793, 'Carton_brun': 24671794, 'cartonnette': 24671796, 'kraft': 24671797, 'Teint_Dans_La_Masse': 24671798, 'Carton_gris': 24671800, 'metal': 24671801, 'flou': 24671802, 'environnement': 24671804}]} args : 24671783 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.03561229627029162',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24671783) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1371004415,1371004412,1371004409,1371004407,1371004406,1371004402,1371004379,1371004375,1371004371,1371004368,1371004364,1371004361) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371004361 begin to download photo : 1371004371 begin to download photo : 1371004402 begin to download photo : 1371004409 download finish for photo 1371004371 begin to download photo : 1371004375 download finish for photo 1371004409 begin to download photo : 1371004412 download finish for photo 1371004402 begin to download photo : 1371004406 download finish for photo 1371004361 begin to download photo : 1371004364 download finish for photo 1371004412 begin to download photo : 1371004415 download finish for photo 1371004364 begin to download photo : 1371004368 download finish for photo 1371004375 begin to download photo : 1371004379 download finish for photo 1371004406 begin to download photo : 1371004407 download finish for photo 1371004415 download finish for photo 1371004379 download finish for photo 1371004368 download finish for photo 1371004407 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24671783_07-07-2025_10_14_58.pdf 24671789 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004060: '1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697201_0.png', 1371004061: '1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697208_0.png', 1371004199: '1751875646_1810871_1371004102_002e307321c75c336e444e20a246a56e_rle_crop_3874697835_0.png', 1371004200: '1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697853_0.png', 1371004201: '1751875646_1810871_1371004095_b0c347cd8fa5ef551aa3017910a429d6_rle_crop_3874697865_0.png', 1371004300: '1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698328_0.png', 1371004456: '1751876046_3895203_1371004343_38752e4895f6439d965d901c2886f29f_rle_crop_3874698932_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e6e720b251db0489303f3d029c3af74a_8217225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/b430752dd8e37449f9c760176019919b_30026812.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/665b2230e205c361e127936373c356ba_78894370.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/da6ba1ce6a9d77892e2e2ea7f64ff12a_8300419.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1b51706b535bc72272717a669d27cf9a_9328251.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/7409f762ee5707ed4d853d8fb3ac6fcf_29026469.png change filename to text .imagette246717891751876098/ imagette246717891751876098/1751876046_3895203_1371004343_38752e4895f6439d965d901c2886f29f_rle_crop_3874698932_0.png.png imagette246717891751876098/1751875646_1810871_1371004102_002e307321c75c336e444e20a246a56e_rle_crop_3874697835_0.png.png imagette246717891751876098/1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697208_0.png.png imagette246717891751876098/1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697201_0.png.png imagette246717891751876098/1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698328_0.png.png imagette246717891751876098/1751875646_1810871_1371004095_b0c347cd8fa5ef551aa3017910a429d6_rle_crop_3874697865_0.png.png imagette246717891751876098/1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697853_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/5b5bfb9af7e8d31874a77e2f3a5d6762_32246079.png imagette246717891751876098 24671792 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671792 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004067: '1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697198_0.png', 1371004068: '1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697200_0.png', 1371004141: '1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697531_0.png', 1371004164: '1751875565_3872378_1371003769_5e289871f640b6f61a622b1ad9097a01_rle_crop_3874697657_0.png', 1371004232: '1751875686_3878152_1371004081_49f9ae41e427f064fcfc22247859e587_rle_crop_3874697961_0.png', 1371004325: '1751875807_3884754_1371004180_ab5a5255653e003e580095a1199b24a2_rle_crop_3874698358_0.png', 1371004356: '1751875838_3630467_1371004158_706028fcbb1b141002cedab428993aef_rle_crop_3874698508_0.png', 1371004394: '1751875925_3888650_1371004240_b41d385f208c8b058dbf92d41becd619_rle_crop_3874698742_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1991d33d4bd18fd8a6f7084a76f07dd9_71749613.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/28e96ed8cc5c4110470a77bd1f8a4072_44569991.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/468c50795d5852b6f70d23c852b2215d_9733718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/7e825cc12466bd3aabbed3ee26618edc_42640509.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/c2f6fea60324b71ff15544b78286c9d2_27673630.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/5f3a72db1f506c1176c9d21605d99fef_38445304.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/337bee18d5fdb24dd5619b64f8dce265_47664182.png change filename to text .imagette246717921751876099/ imagette246717921751876099/1751875686_3878152_1371004081_49f9ae41e427f064fcfc22247859e587_rle_crop_3874697961_0.png.png imagette246717921751876099/1751875565_3872378_1371003769_5e289871f640b6f61a622b1ad9097a01_rle_crop_3874697657_0.png.png imagette246717921751876099/1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697531_0.png.png imagette246717921751876099/1751875807_3884754_1371004180_ab5a5255653e003e580095a1199b24a2_rle_crop_3874698358_0.png.png imagette246717921751876099/1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697198_0.png.png imagette246717921751876099/1751875838_3630467_1371004158_706028fcbb1b141002cedab428993aef_rle_crop_3874698508_0.png.png imagette246717921751876099/1751875925_3888650_1371004240_b41d385f208c8b058dbf92d41becd619_rle_crop_3874698742_0.png.png imagette246717921751876099/1751875407_1804412_1371003484_671b5ea3749af869e6cfcc69e5d7023f_rle_crop_3874697200_0.png.png imagette246717931751876099/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/77f171d22173e3655fd45b485054202b_28053918.png imagette246717921751876099 24671793 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671793 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246717931751876099 24671796 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671796 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004203: '1751875646_1810871_1371004109_cef8ffd475f89a08211b758664f272e8_rle_crop_3874697815_0.png', 1371004314: '1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698327_0.png', 1371004316: '1751875807_3884754_1371004183_071121eac7c918b2f16bc651e34c37a1_rle_crop_3874698344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/80e829c2e1cccc263cf4e45dcd8a262f_36223216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/8505e2aa4035c05e1509b7807126d91e_52763217.png change filename to text .imagette246717961751876099/ imagette246717961751876099/1751875807_3884754_1371004183_071121eac7c918b2f16bc651e34c37a1_rle_crop_3874698344_0.png.png imagette246717961751876099/1751875646_1810871_1371004109_cef8ffd475f89a08211b758664f272e8_rle_crop_3874697815_0.png.png imagette246717961751876099/1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698327_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/2736fdab7a9ea7d62e78417347873326_37368088.png imagette246717961751876099 24671797 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671797 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004165: '1751875565_3872378_1371003759_0884b17a761c6b2d03bd5181ebb9e0a8_rle_crop_3874697667_0.png'} change filename to text .imagette246717971751876100/ imagette246717971751876100/1751875565_3872378_1371003759_0884b17a761c6b2d03bd5181ebb9e0a8_rle_crop_3874697667_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/452db76fe18575eeb544200e1cce8b6f_4920530.png imagette246717971751876100 24671801 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671801 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004143: '1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697503_0.png'} change filename to text .imagette246718011751876100/ imagette246718011751876100/1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697503_0.png.png imagette246718021751876100/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/b37421dec6533af1c7ad6be1e827157b_90769543.png imagette246718011751876100 24671802 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671802 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246718021751876100 24671794 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671794 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004064: '1751875407_1804412_1371003542_1bc5088bab2b18786e276121a87ff610_rle_crop_3874697183_0.png', 1371004065: '1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697213_0.png', 1371004066: '1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697210_0.png', 1371004137: '1751875525_1807198_1371004048_93a381d8c8173bea37a76b44f14c81bd_rle_crop_3874697479_0.png', 1371004138: '1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697534_0.png', 1371004139: '1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697537_0.png', 1371004140: '1751875525_1807198_1371004013_91b86127e3849a60754ec1159f58595d_rle_crop_3874697551_0.png', 1371004204: '1751875646_1810871_1371004105_8babe10bcb6bbc098df5187018dfbcb8_rle_crop_3874697830_0.png', 1371004205: '1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697854_0.png', 1371004207: '1751875646_1810871_1371004095_b0c347cd8fa5ef551aa3017910a429d6_rle_crop_3874697869_0.png', 1371004392: '1751875925_3888650_1371004258_a7422f0924d785725b828fd3e2987e4d_rle_crop_3874698694_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/6329dc09c5aa7cef4ecabe79ba82f06d_75029913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/d9705c01052a35bd49affbcb2beff56c_29160836.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/084cfa04bbe2fad29059c6bd32adc75e_62907152.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/f2408ea1e6606441c2e51b246de6214b_12730948.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/b2198c280935ff47a1609e27b4a7d650_20091479.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/dffaac9d14cdc8b89a6a258748b44e48_73544924.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e2482636c5108dcb887f0ceea67ab25b_65900124.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/3c6f5c4964509a7c66cb6d6e0ffb855e_64987864.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/3a73bba02a4902486bc0a61a7b0a2945_75329375.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/b3f37875c24b2689b19f0d2696c56f5f_21404241.png change filename to text .imagette246717941751876100/ imagette246717941751876100/1751875525_1807198_1371004013_91b86127e3849a60754ec1159f58595d_rle_crop_3874697551_0.png.png imagette246717941751876100/1751875646_1810871_1371004105_8babe10bcb6bbc098df5187018dfbcb8_rle_crop_3874697830_0.png.png imagette246717941751876100/1751875407_1804412_1371003542_1bc5088bab2b18786e276121a87ff610_rle_crop_3874697183_0.png.png imagette246717941751876100/1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697537_0.png.png imagette246717941751876100/1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697534_0.png.png imagette246717941751876100/1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697213_0.png.png imagette246717941751876100/1751875925_3888650_1371004258_a7422f0924d785725b828fd3e2987e4d_rle_crop_3874698694_0.png.png imagette246717941751876100/1751875646_1810871_1371004095_b0c347cd8fa5ef551aa3017910a429d6_rle_crop_3874697869_0.png.png imagette246717941751876100/1751875525_1807198_1371004048_93a381d8c8173bea37a76b44f14c81bd_rle_crop_3874697479_0.png.png imagette246717941751876100/1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697854_0.png.png imagette246717941751876100/1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697210_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/572c566c69836f24f4cd7eb2696fb1f1_44478459.png imagette246717941751876100 24671798 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671798 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004231: '1751875686_3878152_1371004079_c753775ee42a804f4a96bc7e2405adb9_rle_crop_3874697978_0.png', 1371004452: '1751876046_3895203_1371004330_fe524f470aa3ea902c36c0a7b6407062_rle_crop_3874698983_0.png', 1371004451: '1751876046_3895203_1371004335_c5b2ad7b047f5af285ba0515a698a18f_rle_crop_3874698961_0.png', 1371004450: '1751876046_3895203_1371004343_38752e4895f6439d965d901c2886f29f_rle_crop_3874698935_0.png', 1371004385: '1751875925_3888650_1371004249_90889fb596da550a7edc1d4a02feb56a_rle_crop_3874698723_0.png', 1371004384: '1751875925_3888650_1371004252_13eb7a9f9c03790b444d83a54aed0b72_rle_crop_3874698708_0.png', 1371004383: '1751875925_3888650_1371004252_13eb7a9f9c03790b444d83a54aed0b72_rle_crop_3874698709_0.png', 1371004354: '1751875838_3630467_1371004160_c61e1160e585e3f3b77cb5b41fa2bbbb_rle_crop_3874698500_0.png', 1371004298: '1751875807_3884754_1371004175_d548c543c0a4d98fbbd5b3e3a6147662_rle_crop_3874698390_0.png', 1371004058: '1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697211_0.png', 1371004230: '1751875686_3878152_1371004081_49f9ae41e427f064fcfc22247859e587_rle_crop_3874697967_0.png', 1371004229: '1751875686_3878152_1371004083_b453e88742901104ac3ef5827f2c008f_rle_crop_3874697955_0.png', 1371004163: '1751875565_3872378_1371003759_0884b17a761c6b2d03bd5181ebb9e0a8_rle_crop_3874697662_0.png', 1371004127: '1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697535_0.png', 1371004126: '1751875525_1807198_1371004039_b01b4c3a0714008869c3936798f0ba41_rle_crop_3874697525_0.png', 1371004125: '1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697512_0.png', 1371004124: '1751875525_1807198_1371004045_5fdd50bea6cf88c7c6bfc909c363c367_rle_crop_3874697495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/83a61d5d770948c366ea3d5eba42684d_198080.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/6bb12f3e2780526c2a8bc0a6b4069071_47513092.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/2f37348f5a5f51115e52900630fbd6f8_44717295.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/8d0a625aac1522b445e139d382b1d36e_41721433.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/872990244f9c7f00edf4f301649eb4b9_60738460.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/0f045e04c0858503afdf3efce3d85b7c_10965386.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/dcb102964ab432b2720943cf436c00e1_42610618.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/0328014c7acbd5133a8e93bb39402aa6_83122901.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/c71bf7b62d59df9db9e35087ccfc7116_80078102.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/f4c52b524bcb907b2fd73477d2b78962_4945540.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/9d90d87e440e39d4c932149da7daf69f_44962828.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/a19ff424c4d7d1f1feb830083536dfa4_76330132.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/686bf11358dd66cfa7eaa47ed88ead7b_9730396.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/daa9cd7c9b1491fa7f46dd928a8b535c_33323422.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/cf10af4a3fe1d3ce43a0aa20279f2590_42994241.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/aefb352b225bd8b13289958edf7f13eb_7423840.png change filename to text .imagette246717981751876100/ imagette246717981751876100/1751875925_3888650_1371004252_13eb7a9f9c03790b444d83a54aed0b72_rle_crop_3874698708_0.png.png imagette246717981751876100/1751876046_3895203_1371004343_38752e4895f6439d965d901c2886f29f_rle_crop_3874698935_0.png.png imagette246717981751876100/1751875807_3884754_1371004175_d548c543c0a4d98fbbd5b3e3a6147662_rle_crop_3874698390_0.png.png imagette246717981751876100/1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697535_0.png.png imagette246717981751876100/1751875925_3888650_1371004249_90889fb596da550a7edc1d4a02feb56a_rle_crop_3874698723_0.png.png imagette246717981751876100/1751875838_3630467_1371004160_c61e1160e585e3f3b77cb5b41fa2bbbb_rle_crop_3874698500_0.png.png imagette246717981751876100/1751875686_3878152_1371004079_c753775ee42a804f4a96bc7e2405adb9_rle_crop_3874697978_0.png.png imagette246717981751876100/1751875525_1807198_1371004039_b01b4c3a0714008869c3936798f0ba41_rle_crop_3874697525_0.png.png imagette246717981751876100/1751875925_3888650_1371004252_13eb7a9f9c03790b444d83a54aed0b72_rle_crop_3874698709_0.png.png imagette246717981751876100/1751875525_1807198_1371004045_5fdd50bea6cf88c7c6bfc909c363c367_rle_crop_3874697495_0.png.png imagette246717981751876100/1751876046_3895203_1371004330_fe524f470aa3ea902c36c0a7b6407062_rle_crop_3874698983_0.png.png imagette246717981751876100/1751875407_1804412_1371003427_984ed86bc3d44a9f7869cfe11daf1fcd_rle_crop_3874697211_0.png.png imagette246717981751876100/1751875565_3872378_1371003759_0884b17a761c6b2d03bd5181ebb9e0a8_rle_crop_3874697662_0.png.png imagette246717981751876100/1751875686_3878152_1371004083_b453e88742901104ac3ef5827f2c008f_rle_crop_3874697955_0.png.png imagette246717981751876100/1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697512_0.png.png imagette246717981751876100/1751876046_3895203_1371004335_c5b2ad7b047f5af285ba0515a698a18f_rle_crop_3874698961_0.png.png imagette246717981751876100/1751875686_3878152_1371004081_49f9ae41e427f064fcfc22247859e587_rle_crop_3874697967_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/0530db4dc00fe0fe1072784197e3f16b_18672393.png imagette246717981751876100 24671800 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671800 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371004063: '1751875407_1804412_1371003542_1bc5088bab2b18786e276121a87ff610_rle_crop_3874697182_0.png', 1371004129: '1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697499_0.png', 1371004131: '1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697498_0.png', 1371004132: '1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697532_0.png', 1371004133: '1751875525_1807198_1371004013_91b86127e3849a60754ec1159f58595d_rle_crop_3874697553_0.png', 1371004202: '1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697851_0.png', 1371004304: '1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698335_0.png', 1371004306: '1751875807_3884754_1371004183_071121eac7c918b2f16bc651e34c37a1_rle_crop_3874698348_0.png', 1371004355: '1751875838_3630467_1371004154_7e9f769a31a5f4161e06f7428910e8ac_rle_crop_3874698519_0.png', 1371004386: '1751875925_3888650_1371004263_0b1b7abad054dbc92e6b811edfb16a3d_rle_crop_3874698684_0.png', 1371004387: '1751875925_3888650_1371004258_a7422f0924d785725b828fd3e2987e4d_rle_crop_3874698691_0.png', 1371004388: '1751875925_3888650_1371004249_90889fb596da550a7edc1d4a02feb56a_rle_crop_3874698719_0.png', 1371004389: '1751875925_3888650_1371004245_5e8cd1f6867e7933b1f8fc776f464b38_rle_crop_3874698731_0.png', 1371004390: '1751875925_3888650_1371004240_b41d385f208c8b058dbf92d41becd619_rle_crop_3874698750_0.png', 1371004457: '1751876046_3895203_1371004339_b39b4e5acfaf8c726f59fa846851bb9b_rle_crop_3874698942_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e13d04166a7b239c652e5c0e02c69a42_83715995.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/ef1262f9859d6bdcf5a30ec32d348652_34566856.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/9aed58c6ff0e01a7af84458755d4fc78_54715937.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/075d8adf5c3341e43cee292aea3ff95c_71263618.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/69f6649f364fc526eb8db96e3e1c5178_61894683.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/55f92c6e5d3c5d8cfecf6210116860ab_51782046.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/7b06d332ee5ffec4442d6ce805d25161_77280701.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/8a50967e67396081a41e9c6eec12d50f_52615343.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/a654102115f5c4acb7ba2ecd66af345e_24215639.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/a57b260a28acd2165bc93743ef03586b_17863706.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/79d0c6883fda4520835ea71b552f26d7_66180916.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/8ea1f0ce05a40ab7733907e78335a1d7_96855308.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1813729ad2d1090fbd5bc796feeb49f0_12314219.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/d1e6eedeb60ed35a2042526200c5ebbd_77952837.png change filename to text .imagette246718001751876101/ imagette246718001751876101/1751875525_1807198_1371004013_91b86127e3849a60754ec1159f58595d_rle_crop_3874697553_0.png.png imagette246718001751876101/1751875925_3888650_1371004240_b41d385f208c8b058dbf92d41becd619_rle_crop_3874698750_0.png.png imagette246718001751876101/1751875925_3888650_1371004245_5e8cd1f6867e7933b1f8fc776f464b38_rle_crop_3874698731_0.png.png imagette246718001751876101/1751875807_3884754_1371004185_9a60c18c7cc7d75815aabb68e565d4eb_rle_crop_3874698335_0.png.png imagette246718001751876101/1751875925_3888650_1371004263_0b1b7abad054dbc92e6b811edfb16a3d_rle_crop_3874698684_0.png.png imagette246718001751876101/1751875838_3630467_1371004154_7e9f769a31a5f4161e06f7428910e8ac_rle_crop_3874698519_0.png.png imagette246718001751876101/1751875925_3888650_1371004258_a7422f0924d785725b828fd3e2987e4d_rle_crop_3874698691_0.png.png imagette246718001751876101/1751876046_3895203_1371004339_b39b4e5acfaf8c726f59fa846851bb9b_rle_crop_3874698942_0.png.png imagette246718001751876101/1751875525_1807198_1371004031_b2bca07104240a15eddcbad61b91bb42_rle_crop_3874697532_0.png.png imagette246718001751876101/1751875925_3888650_1371004249_90889fb596da550a7edc1d4a02feb56a_rle_crop_3874698719_0.png.png imagette246718001751876101/1751875646_1810871_1371004099_2368b6b2aab899f5a8e04b33b31a9335_rle_crop_3874697851_0.png.png imagette246718001751876101/1751875407_1804412_1371003542_1bc5088bab2b18786e276121a87ff610_rle_crop_3874697182_0.png.png imagette246718001751876101/1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697498_0.png.png imagette246718001751876101/1751875525_1807198_1371004042_0d9b52b720cef1c60d4b3f5719cbba3b_rle_crop_3874697499_0.png.png imagette246718001751876101/1751875807_3884754_1371004183_071121eac7c918b2f16bc651e34c37a1_rle_crop_3874698348_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/7eb29cef2d4bf9ea01323126d6381d6e_8727445.png imagette246718001751876101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24671783 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24671811,24671812,24671813,24671814,24671815,24671816,24671817,24671818,24671819,24671820,24671821,24671822?tags=autre_refus,papier,plastique,mal_croppe,Carton_brun,cartonnette,kraft,Teint_Dans_La_Masse,Carton_gris,metal,flou,environnement your option no_mail is active, we will not send the real mail to your client args[1371004415] : ('0.03561229627029162',) no score found for photo 1371004415 We are sending mail with results at report@fotonower.com args[1371004412] : ('0.03561229627029162',) no score found for photo 1371004412 We are sending mail with results at report@fotonower.com args[1371004409] : ('0.03561229627029162',) no score found for photo 1371004409 We are sending mail with results at report@fotonower.com args[1371004407] : ('0.03561229627029162',) no score found for photo 1371004407 We are sending mail with results at report@fotonower.com args[1371004406] : ('0.03561229627029162',) no score found for photo 1371004406 We are sending mail with results at report@fotonower.com args[1371004402] : ('0.03561229627029162',) no score found for photo 1371004402 We are sending mail with results at report@fotonower.com args[1371004379] : ('0.03561229627029162',) no score found for photo 1371004379 We are sending mail with results at report@fotonower.com args[1371004375] : ('0.03561229627029162',) no score found for photo 1371004375 We are sending mail with results at report@fotonower.com args[1371004371] : ('0.03561229627029162',) no score found for photo 1371004371 We are sending mail with results at report@fotonower.com args[1371004368] : ('0.03561229627029162',) no score found for photo 1371004368 We are sending mail with results at report@fotonower.com args[1371004364] : ('0.03561229627029162',) no score found for photo 1371004364 We are sending mail with results at report@fotonower.com args[1371004361] : ('0.03561229627029162',) no score found for photo 1371004361 We are sending mail with results at report@fotonower.com refus_total : 0.03561229627029162 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671783 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_P24671783_07-07-2025_10_14_58.pdf results_Auto_P24671783_07-07-2025_10_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_14_58.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','24671783','results_Auto_P24671783_07-07-2025_10_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_14_58.pdf','pdf','','0.27','0.03561229627029162') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24671783]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] map_info['map_portfolio_photo'] : {24671783: [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361, 1371004348, 1371004343, 1371004339, 1371004335, 1371004333, 1371004330, 1371004292, 1371004289, 1371004286, 1371004284, 1371004282, 1371004279, 1371004263, 1371004258, 1371004252, 1371004249, 1371004245, 1371004240, 1371004223, 1371004219, 1371004215, 1371004212, 1371004210, 1371004206, 1371004189, 1371004187, 1371004185, 1371004183, 1371004180, 1371004175, 1371004160, 1371004158, 1371004154, 1371004150, 1371004145, 1371004130, 1371004112, 1371004109, 1371004105, 1371004102, 1371004099, 1371004095, 1371004083, 1371004081, 1371004079, 1371004077, 1371004074, 1371004069, 1371004048, 1371004045, 1371004042, 1371004039, 1371004031, 1371004013, 1371003867, 1371003831, 1371003800, 1371003769, 1371003759, 1371003750, 1371003574, 1371003542, 1371003484, 1371003427, 1371003362]} final : False mtd_id 4302 list_pids : [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] 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, '3244461') ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24671783', '1371004415', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461')] time used for this insertion : 0.10679411888122559 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.064068078994751 time spend to save output : 0.10705184936523438 total time spend for step 4 : 5.171119928359985 step5:split_time_score Mon Jul 7 10:15:03 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 : ['24671783'] 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 : [('24671783',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24671783) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371004409: {'path': 'temp/1751876098_3638474_1371004409_7d3b1990f032b973b6f23fb24fd413c3.jpg', 'extension': 'jpg'}, 1371004412: {'path': 'temp/1751876098_3638474_1371004412_5e14af01ef6bf7b7b0034e2b17c8ad75.jpg', 'extension': 'jpg'}, 1371004415: {'path': 'temp/1751876098_3638474_1371004415_2c4c1d596a56d57f11c2121b68b08e87.jpg', 'extension': 'jpg'}, 1371004371: {'path': 'temp/1751876098_3638474_1371004371_4e6e86459b9099486f4002812804d65f.jpg', 'extension': 'jpg'}, 1371004375: {'path': 'temp/1751876098_3638474_1371004375_ad688dbafaa7df6113e0a0c4c1519b31.jpg', 'extension': 'jpg'}, 1371004379: {'path': 'temp/1751876098_3638474_1371004379_6f050a925106de4333051e7565ed60dc.jpg', 'extension': 'jpg'}, 1371004361: {'path': 'temp/1751876098_3638474_1371004361_7d45ce42bb586d9a774d38f73b31d6bf.jpg', 'extension': 'jpg'}, 1371004364: {'path': 'temp/1751876098_3638474_1371004364_9b34ba5359d25dfe27f6e4514586d10b.jpg', 'extension': 'jpg'}, 1371004368: {'path': 'temp/1751876098_3638474_1371004368_6d8bddac9537793b001ab2d60c99b94d.jpg', 'extension': 'jpg'}, 1371004402: {'path': 'temp/1751876098_3638474_1371004402_fde9be0d5649d95c9cf9d44c4d190ef5.jpg', 'extension': 'jpg'}, 1371004406: {'path': 'temp/1751876098_3638474_1371004406_c90a27e58d910fb4e68bc2402991f3f4.jpg', 'extension': 'jpg'}, 1371004407: {'path': 'temp/1751876098_3638474_1371004407_fee37277b38d568279aeabb9eeac212e.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 = 24671783; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24671783 group by h (('10', 77),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24671783 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 (24671783) 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 (24671783) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07072025 24671783 Nombre de photos uploadées : 77 / 23040 (0%) 07072025 24671783 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 07072025 24671783 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1371003574, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/6820523d8bf70ea6d8412b073ec5a513.jpg', 'username': None, 'uploaded_at': 1751875262, 'text': 'image_07072025_10_00_14_010206m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371003542, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1bc5088bab2b18786e276121a87ff610.jpg', 'username': None, 'uploaded_at': 1751875262, 'text': 'image_07072025_10_00_24_010144m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371003484, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/671b5ea3749af869e6cfcc69e5d7023f.jpg', 'username': None, 'uploaded_at': 1751875262, 'text': 'image_07072025_10_00_34_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371003427, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/984ed86bc3d44a9f7869cfe11daf1fcd.jpg', 'username': None, 'uploaded_at': 1751875262, 'text': 'image_07072025_10_00_44_010137m0.jpg 4e-05 for time 1, id_amount 3 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.0067901611328125e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034110546112060547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24671783, '2025-07-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1957185,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02658367156982422 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= 1957185 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24661292, 'dashboard_result_id': 12210800, '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_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24661693, 'dashboard_result_id': 12210801, '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_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24662126, 'dashboard_result_id': 12210802, '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_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24662593, 'dashboard_result_id': 12210803, '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_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24662987, 'dashboard_result_id': 12210804, '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_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24663509, 'dashboard_result_id': 12210805, '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_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24663935, 'dashboard_result_id': 12210806, '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_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24664395, 'dashboard_result_id': 12210807, '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_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24664810, 'dashboard_result_id': 12210808, '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_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24665530, 'dashboard_result_id': 12210809, '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_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24666046, 'dashboard_result_id': 12210811, '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_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24666767, 'dashboard_result_id': 12210813, '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_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24667340, 'dashboard_result_id': 12210814, '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_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24668039, 'dashboard_result_id': 12210815, '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_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24668575, 'dashboard_result_id': 12210816, '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_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24669145, 'dashboard_result_id': 12210817, '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_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24669610, 'dashboard_result_id': 12210818, '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_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24670302, 'dashboard_result_id': 12210819, '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_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24670769, 'dashboard_result_id': 12210820, '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_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24671299, 'dashboard_result_id': 12210821, '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_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1965373, 'mtr_portfolio_id': 24671783, 'dashboard_result_id': 12210822, '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_P24671783_07-07-2025_10_11_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, '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 = 24661292 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': 3243217, 'mtr_portfolio_id': 24661292, 'created_at': datetime.datetime(2025, 7, 7, 5, 16, 31), 'result': '0.026469756909939753', 'result_long': None, 'result_double': None}] Qualite : 0.026469756909939753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24661292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661292_07-07-2025_05_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24661292 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_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, 'pht': 3726}}" where mtr_portfolio_id = 24661292 and dashboard_run_id = 1965373 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`=24661292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210800, 0.026469756909939753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, '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 = 24661693 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': 3243255, 'mtr_portfolio_id': 24661693, 'created_at': datetime.datetime(2025, 7, 7, 5, 32, 57), 'result': '0.04305026881693731', 'result_long': None, 'result_double': None}] Qualite : 0.04305026881693731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24661693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661693_07-07-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24661693 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_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, 'pht': 3726}}" where mtr_portfolio_id = 24661693 and dashboard_run_id = 1965373 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`=24661693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210801, 0.04305026881693731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, '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 = 24662126 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': 3243302, 'mtr_portfolio_id': 24662126, 'created_at': datetime.datetime(2025, 7, 7, 5, 46, 31), 'result': '0.04328643072415846', 'result_long': None, 'result_double': None}] Qualite : 0.04328643072415846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662126_07-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662126 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_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, 'pht': 3726}}" where mtr_portfolio_id = 24662126 and dashboard_run_id = 1965373 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`=24662126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210802, 0.04328643072415846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, '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 = 24662593 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': 3243347, 'mtr_portfolio_id': 24662593, 'created_at': datetime.datetime(2025, 7, 7, 6, 0, 57), 'result': '0.012108135590933933', 'result_long': None, 'result_double': None}] Qualite : 0.012108135590933933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662593_07-07-2025_06_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662593 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_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, 'pht': 3726}}" where mtr_portfolio_id = 24662593 and dashboard_run_id = 1965373 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`=24662593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210803, 0.012108135590933933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, '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 = 24662987 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': 3243401, 'mtr_portfolio_id': 24662987, 'created_at': datetime.datetime(2025, 7, 7, 6, 16, 58), 'result': '0.021263400395111164', 'result_long': None, 'result_double': None}] Qualite : 0.021263400395111164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662987_07-07-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662987 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_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, 'pht': 3726}}" where mtr_portfolio_id = 24662987 and dashboard_run_id = 1965373 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`=24662987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210804, 0.021263400395111164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, '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 = 24663509 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': 3243444, 'mtr_portfolio_id': 24663509, 'created_at': datetime.datetime(2025, 7, 7, 6, 33), 'result': '0.018414450777497388', 'result_long': None, 'result_double': None}] Qualite : 0.018414450777497388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24663509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663509_07-07-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24663509 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_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, 'pht': 3726}}" where mtr_portfolio_id = 24663509 and dashboard_run_id = 1965373 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`=24663509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210805, 0.018414450777497388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, '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 = 24663935 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': 3243483, 'mtr_portfolio_id': 24663935, 'created_at': datetime.datetime(2025, 7, 7, 6, 46, 58), 'result': '0.012495391714311186', 'result_long': None, 'result_double': None}] Qualite : 0.012495391714311186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24663935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663935_07-07-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24663935 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_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, 'pht': 3726}}" where mtr_portfolio_id = 24663935 and dashboard_run_id = 1965373 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`=24663935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210806, 0.012495391714311186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, '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 = 24664395 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': 3243529, 'mtr_portfolio_id': 24664395, 'created_at': datetime.datetime(2025, 7, 7, 7, 2, 56), 'result': '0.01052892123831939', 'result_long': None, 'result_double': None}] Qualite : 0.01052892123831939 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24664395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664395_07-07-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24664395 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_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, 'pht': 3726}}" where mtr_portfolio_id = 24664395 and dashboard_run_id = 1965373 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`=24664395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210807, 0.01052892123831939, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, '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 = 24664810 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': 3243587, 'mtr_portfolio_id': 24664810, 'created_at': datetime.datetime(2025, 7, 7, 7, 16, 58), 'result': '0.009595420853349136', 'result_long': None, 'result_double': None}] Qualite : 0.009595420853349136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24664810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664810_07-07-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24664810 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_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, 'pht': 3726}}" where mtr_portfolio_id = 24664810 and dashboard_run_id = 1965373 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`=24664810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210808, 0.009595420853349136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, '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 = 24665530 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': 3243671, 'mtr_portfolio_id': 24665530, 'created_at': datetime.datetime(2025, 7, 7, 7, 32, 58), 'result': '0.009723190209080246', 'result_long': None, 'result_double': None}] Qualite : 0.009723190209080246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24665530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24665530_07-07-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24665530 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_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, 'pht': 3726}}" where mtr_portfolio_id = 24665530 and dashboard_run_id = 1965373 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`=24665530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210809, 0.009723190209080246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, '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 = 24666046 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': 3243745, 'mtr_portfolio_id': 24666046, 'created_at': datetime.datetime(2025, 7, 7, 7, 46, 28), 'result': '0.010690955107287176', 'result_long': None, 'result_double': None}] Qualite : 0.010690955107287176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24666046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666046_07-07-2025_07_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24666046 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_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, 'pht': 3726}}" where mtr_portfolio_id = 24666046 and dashboard_run_id = 1965373 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`=24666046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210811, 0.010690955107287176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, '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 = 24666767 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': 3243828, 'mtr_portfolio_id': 24666767, 'created_at': datetime.datetime(2025, 7, 7, 8, 3, 28), 'result': '0.008678496998904297', 'result_long': None, 'result_double': None}] Qualite : 0.008678496998904297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24666767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666767_07-07-2025_08_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24666767 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_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, 'pht': 3726}}" where mtr_portfolio_id = 24666767 and dashboard_run_id = 1965373 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`=24666767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210813, 0.008678496998904297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, '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 = 24667340 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': 3243907, 'mtr_portfolio_id': 24667340, 'created_at': datetime.datetime(2025, 7, 7, 8, 17, 1), 'result': '0.04015608476947416', 'result_long': None, 'result_double': None}] Qualite : 0.04015608476947416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24667340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24667340_07-07-2025_08_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24667340 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_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, 'pht': 3726}}" where mtr_portfolio_id = 24667340 and dashboard_run_id = 1965373 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`=24667340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210814, 0.04015608476947416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, '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 = 24668039 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': 3243992, 'mtr_portfolio_id': 24668039, 'created_at': datetime.datetime(2025, 7, 7, 8, 33, 27), 'result': '0.03256848211853555', 'result_long': None, 'result_double': None}] Qualite : 0.03256848211853555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24668039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668039_07-07-2025_08_33_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24668039 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_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, 'pht': 3726}}" where mtr_portfolio_id = 24668039 and dashboard_run_id = 1965373 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`=24668039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210815, 0.03256848211853555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, '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 = 24668575 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': 3244060, 'mtr_portfolio_id': 24668575, 'created_at': datetime.datetime(2025, 7, 7, 8, 46, 59), 'result': '0.021158375268420196', 'result_long': None, 'result_double': None}] Qualite : 0.021158375268420196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24668575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668575_07-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24668575 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_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, 'pht': 3726}}" where mtr_portfolio_id = 24668575 and dashboard_run_id = 1965373 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`=24668575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210816, 0.021158375268420196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, '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 = 24669145 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': 3244135, 'mtr_portfolio_id': 24669145, 'created_at': datetime.datetime(2025, 7, 7, 9, 2, 59), 'result': '0.014148944608773537', 'result_long': None, 'result_double': None}] Qualite : 0.014148944608773537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24669145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669145_07-07-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24669145 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_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, 'pht': 3726}}" where mtr_portfolio_id = 24669145 and dashboard_run_id = 1965373 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`=24669145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210817, 0.014148944608773537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, '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 = 24669610 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': 3244200, 'mtr_portfolio_id': 24669610, 'created_at': datetime.datetime(2025, 7, 7, 9, 16, 58), 'result': '0.016755775287521434', 'result_long': None, 'result_double': None}] Qualite : 0.016755775287521434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24669610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669610_07-07-2025_09_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24669610 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_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, 'pht': 3726}}" where mtr_portfolio_id = 24669610 and dashboard_run_id = 1965373 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`=24669610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210818, 0.016755775287521434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, '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 = 24670302 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': 3244268, 'mtr_portfolio_id': 24670302, 'created_at': datetime.datetime(2025, 7, 7, 9, 33, 1), 'result': '0.0398289590972627', 'result_long': None, 'result_double': None}] Qualite : 0.0398289590972627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24670302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670302_07-07-2025_09_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24670302 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_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, 'pht': 3726}}" where mtr_portfolio_id = 24670302 and dashboard_run_id = 1965374 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`=24670302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210819, 0.0398289590972627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, '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 = 24670769 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': 3244327, 'mtr_portfolio_id': 24670769, 'created_at': datetime.datetime(2025, 7, 7, 9, 46, 57), 'result': '0.04914104241617187', 'result_long': None, 'result_double': None}] Qualite : 0.04914104241617187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24670769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670769_07-07-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24670769 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_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, 'pht': 3726}}" where mtr_portfolio_id = 24670769 and dashboard_run_id = 1965374 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`=24670769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210820, 0.04914104241617187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, '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 = 24671299 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': 3244390, 'mtr_portfolio_id': 24671299, 'created_at': datetime.datetime(2025, 7, 7, 10, 1), 'result': '0.023720552680818942', 'result_long': None, 'result_double': None}] Qualite : 0.023720552680818942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24671299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671299_07-07-2025_10_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24671299 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_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, 'pht': 3726}}" where mtr_portfolio_id = 24671299 and dashboard_run_id = 1965374 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`=24671299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210821, 0.023720552680818942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, '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 = 24671783 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': 3244461, 'mtr_portfolio_id': 24671783, 'created_at': datetime.datetime(2025, 7, 7, 10, 14, 58), 'result': '0.03561229627029162', 'result_long': None, 'result_double': None}] Qualite : 0.03561229627029162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24671783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24671783 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_P24671783_07-07-2025_10_14_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, 'pht': 3726}}" where mtr_portfolio_id = 24671783 and dashboard_run_id = 1965374 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`=24671783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12210822, 0.03561229627029162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_14_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, '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 (24661292,24661693,24662126,24662593,24662987,24663509,24663935,24664395,24664810,24665530,24666046,24666767,24667340,24668039,24668575,24669145,24669610,24670302,24670769,24671299,24671783) result : ((1370981374,), (1370981407,), (1370981443,), (1370981470,), (1370981483,), (1370981635,), (1370981650,), (1370981669,), (1370981674,), (1370981697,), (1370981699,), (1370981711,), (1370981714,), (1370981717,), (1370981720,), (1370981723,), (1370981727,), (1370981735,), (1370981740,), (1370981745,), (1370981748,), (1370981751,), (1370981754,), (1370981760,), (1370981762,), (1370981765,), (1370981767,), (1370981770,), (1370981773,), (1370981789,), (1370981791,), (1370981794,), (1370981795,), (1370981799,), (1370981802,), (1370981814,), (1370981818,), (1370981821,), (1370981823,), (1370981826,), (1370981828,), (1370981837,), (1370981846,), (1370981850,), (1370981853,), (1370981855,), (1370981857,), (1370981868,), (1370981874,), (1370981879,), (1370981882,), (1370981884,), (1370981886,), (1370981898,), (1370981902,), (1370981905,), (1370981910,), (1370981917,), (1370981921,), (1370981944,), (1370981947,), (1370981953,), (1370981956,), (1370981961,), (1370981963,), (1370981982,), (1370981992,), (1370981996,), (1370981998,), (1370982002,), (1370982004,), (1370982018,), (1370982023,), (1370982027,), (1370982029,), (1370982030,), (1370982031,), (1370982050,), (1370982053,), (1370982055,), (1370982056,), (1370982058,), (1370982061,), (1370982073,), (1370982078,), (1370982082,), (1370982085,), (1370982087,), (1370982090,), (1370982103,), (1370982114,), (1370982119,), (1370982124,), (1370982127,), (1370982134,), (1370982146,), (1370982151,), (1370982156,), (1370982159,), (1370982160,), (1370982162,), (1370982173,), (1370982175,), (1370982177,), (1370982179,), (1370982183,), (1370982188,), (1370982204,), (1370982207,), (1370982210,), (1370982214,), (1370982218,), (1370982222,), (1370982236,), (1370982241,), (1370982243,), (1370982250,), (1370982251,), (1370982253,), (1370982269,), (1370982271,), (1370982273,), (1370982274,), (1370982276,), (1370982280,), (1370982293,), (1370982297,), (1370982303,), (1370982305,), (1370982307,), (1370982310,), (1370982337,), (1370982346,), (1370982352,), (1370982355,), (1370982356,), (1370982358,), (1370982406,), (1370982413,), (1370982417,), (1370982421,), (1370982424,), (1370982428,), (1370982446,), (1370982449,), (1370982456,), (1370982459,), (1370982462,), (1370982464,), (1370982477,), (1370982482,), (1370982487,), (1370982494,), (1370982496,), (1370982497,), (1370982521,), (1370982524,), (1370982528,), (1370982533,), (1370982534,), (1370982556,), (1370982574,), (1370982578,), (1370982582,), (1370982593,), (1370982597,), (1370982599,), (1370982611,), (1370982613,), (1370982616,), (1370982617,), (1370982619,), (1370982621,), (1370982636,), (1370982640,), (1370982648,), (1370982651,), (1370982653,), (1370982655,), (1370982668,), (1370982676,), (1370982679,), (1370982685,), (1370982693,), (1370982698,), (1370982708,), (1370982713,), (1370982716,), (1370982718,), (1370982720,), (1370982722,), (1370982741,), (1370982743,), (1370982744,), (1370982745,), (1370982746,), (1370982749,), (1370982766,), (1370982774,), (1370982778,), (1370982780,), (1370982783,), (1370982785,), (1370982791,), (1370982795,), (1370982798,), (1370982804,), (1370982808,), (1370982811,), (1370982823,), (1370982826,), (1370982828,), (1370982830,), (1370982833,), (1370982837,), (1370982848,), (1370982851,), (1370982854,), (1370982857,), (1370982859,), (1370982860,), (1370982863,), (1370982874,), (1370982884,), (1370982888,), (1370982891,), (1370982894,), (1370982907,), (1370982910,), (1370982916,), (1370982920,), (1370982922,), (1370982924,), (1370982933,), (1370982935,), (1370982942,), (1370982950,), (1370982953,), (1370982955,), (1370982970,), (1370982972,), (1370982974,), (1370982977,), (1370982979,), (1370982981,), (1370982991,), (1370982995,), (1370983007,), (1370983010,), (1370983012,), (1370983015,), (1370983031,), (1370983034,), (1370983038,), (1370983039,), (1370983041,), (1370983042,), (1370983058,), (1370983065,), (1370983073,), (1370983076,), (1370983078,), (1370983080,), (1370983094,), (1370983098,), (1370983103,), (1370983107,), (1370983109,), (1370983113,), (1370983122,), (1370983126,), (1370983133,), (1370983142,), (1370983143,), (1370983144,), (1370983156,), (1370983158,), (1370983160,), (1370983161,), (1370983163,), (1370983165,), (1370983177,), (1370983179,), (1370983180,), (1370983181,), (1370983183,), (1370983187,), (1370983200,), (1370983202,), (1370983205,), (1370983207,), (1370983210,), (1370983213,), (1370983227,), (1370983230,), (1370983235,), (1370983236,), (1370983237,), (1370983238,), (1370983253,), (1370983256,), (1370983258,), (1370983260,), (1370983262,), (1370983264,), (1370983273,), (1370983278,), (1370983282,), (1370983284,), (1370983287,), (1370983289,), (1370983301,), (1370983306,), (1370983308,), (1370983311,), (1370983313,), (1370983315,), (1370983324,), (1370983328,), (1370983332,), (1370983335,), (1370983337,), (1370983340,), (1370983345,), (1370983349,), (1370983351,), (1370983354,), (1370983356,), (1370983358,), (1370983370,), (1370983372,), (1370983373,), (1370983374,), (1370983376,), (1370983380,), (1370983390,), (1370983393,), (1370983397,), (1370983399,), (1370983401,), (1370983404,), (1370983407,), (1370983412,), (1370983417,), (1370983422,), (1370983426,), (1370983429,), (1370984327,), (1370984387,), (1370984478,), (1370984541,), (1370984606,), (1370984667,), (1370984958,), (1370984983,), (1370985012,), (1370985021,), (1370985022,), (1370985041,), (1370985045,), (1370985047,), (1370985048,), (1370985052,), (1370985054,), (1370985063,), (1370985067,), (1370985070,), (1370985073,), (1370985076,), (1370985078,), (1370985092,), (1370985098,), (1370985100,), (1370985102,), (1370985104,), (1370985106,), (1370985117,), (1370985118,), (1370985119,), (1370985121,), (1370985125,), (1370985128,), (1370985144,), (1370985148,), (1370985150,), (1370985152,), (1370985157,), (1370985160,), (1370985174,), (1370985178,), (1370985179,), (1370985180,), (1370985182,), (1370985183,), (1370985196,), (1370985200,), (1370985203,), (1370985205,), (1370985208,), (1370985214,), (1370985239,), (1370985244,), (1370985248,), (1370985252,), (1370985257,), (1370985260,), (1370985278,), (1370985285,), (1370985287,), (1370985289,), (1370985293,), (1370985297,), (1370985319,), (1370985323,), (1370985325,), (1370985326,), (1370985328,), (1370985331,), (1370985350,), (1370985353,), (1370985360,), (1370985362,), (1370985365,), (1370985368,), (1370985385,), (1370985386,), (1370985387,), (1370985389,), (1370985392,), (1370985396,), (1370985414,), (1370985426,), (1370985429,), (1370985431,), (1370985433,), (1370985436,), (1370985451,), (1370985455,), (1370985458,), (1370985459,), (1370985462,), (1370985464,), (1370985481,), (1370985482,), (1370985483,), (1370985495,), (1370985502,), (1370985507,), (1370985517,), (1370985520,), (1370985522,), (1370985525,), (1370985528,), (1370985530,), (1370985539,), (1370985544,), (1370985546,), (1370985548,), (1370985551,), (1370985560,), (1370985576,), (1370985585,), (1370985587,), (1370985589,), (1370985592,), (1370985595,), (1370985612,), (1370985618,), (1370985625,), (1370985631,), (1370985641,), (1370985644,), (1370985667,), (1370985674,), (1370985678,), (1370985681,), (1370985682,), (1370985683,), (1370985704,), (1370985720,), (1370985726,), (1370985727,), (1370985728,), (1370985729,), (1370985762,), (1370985766,), (1370985769,), (1370985771,), (1370985774,), (1370985777,), (1370985790,), (1370985806,), (1370985816,), (1370985819,), (1370985822,), (1370985825,), (1370985851,), (1370985856,), (1370985859,), (1370985861,), (1370985863,), (1370985865,), (1370985882,), (1370985887,), (1370985902,), (1370985910,), (1370985913,), (1370985915,), (1370985946,), (1370985949,), (1370985952,), (1370985954,), (1370985958,), (1370985961,), (1370985968,), (1370985973,), (1370985982,), (1370985996,), (1370986006,), (1370986010,), (1370986020,), (1370986039,), (1370986051,), (1370986053,), (1370986055,), (1370986058,), (1370986076,), (1370986080,), (1370986083,), (1370986086,), (1370986090,), (1370986105,), (1370986139,), (1370986150,), (1370986155,), (1370986158,), (1370986161,), (1370986164,), (1370986176,), (1370986180,), (1370986184,), (1370986193,), (1370986206,), (1370986210,), (1370986233,), (1370986247,), (1370986251,), (1370986253,), (1370986255,), (1370986258,), (1370986279,), (1370986285,), (1370986298,), (1370986301,), (1370986304,), (1370986308,), (1370986336,), (1370986341,), (1370986344,), (1370986346,), (1370986349,), (1370986352,), (1370986367,), (1370986369,), (1370986381,), (1370986391,), (1370986394,), (1370986398,), (1370986414,), (1370986428,), (1370986433,), (1370986435,), (1370986438,), (1370986440,), (1370986451,), (1370986453,), (1370986475,), (1370986489,), (1370986493,), (1370986498,), (1370986532,), (1370986534,), (1370986536,), (1370986538,), (1370986542,), (1370986546,), (1370986565,), (1370986568,), (1370986569,), (1370986579,), (1370986590,), (1370986595,), (1370986622,), (1370986626,), (1370986627,), (1370986628,), (1370986631,), (1370986634,), (1370986654,), (1370986661,), (1370986673,), (1370986677,), (1370986681,), (1370986684,), (1370986713,), (1370986723,), (1370986725,), (1370986727,), (1370986729,), (1370986731,), (1370986748,), (1370986752,), (1370986766,), (1370986768,), (1370986769,), (1370986771,), (1370986796,), (1370986802,), (1370986805,), (1370986809,), (1370986814,), (1370986818,), (1370986835,), (1370986836,), (1370986841,), (1370986849,), (1370986852,), (1370986855,), (1370986895,), (1370986897,), (1370986900,), (1370986903,), (1370986908,), (1370986911,), (1370986921,), (1370986925,), (1370986929,), (1370986933,), (1370986938,), (1370986941,), (1370986967,), (1370986980,), (1370986988,), (1370986991,), (1370986993,), (1370986997,), (1370987013,), (1370987019,), (1370987030,), (1370987038,), (1370987040,), (1370987042,), (1370987071,), (1370987074,), (1370987078,), (1370987080,), (1370987084,), (1370987086,), (1370987100,), (1370987119,), (1370987124,), (1370987126,), (1370987127,), (1370987129,), (1370987161,), (1370987164,), (1370987168,), (1370987170,), (1370987174,), (1370987176,), (1370987191,), (1370987201,), (1370987213,), (1370987214,), (1370987216,), (1370987218,), (1370987250,), (1370987252,), (1370987254,), (1370987256,), (1370987259,), (1370987263,), (1370987279,), (1370987284,), (1370987294,), (1370987310,), (1370987320,), (1370987322,), (1370987337,), (1370987342,), (1370987345,), (1370987347,), (1370987350,), (1370987352,), (1370987367,), (1370987371,), (1370987373,), (1370987374,), (1370987395,), (1370987483,), (1370988450,), (1370988487,), (1370988505,), (1370988524,), (1370988527,), (1370988531,), (1370988601,), (1370988631,), (1370988662,), (1370988692,), (1370988724,), (1370988761,), (1370988781,), (1370988812,), (1370988847,), (1370988880,), (1370988913,), (1370989027,), (1370989064,), (1370989096,), (1370989126,), (1370989158,), (1370989197,), (1370989506,), (1370989546,), (1370989561,), (1370989610,), (1370989629,), (1370989663,), (1370989834,), (1370989857,), (1370989873,), (1370989875,), (1370989877,), (1370989879,), (1370989892,), (1370989895,), (1370989897,), (1370989900,), (1370989904,), (1370989908,), (1370989921,), (1370989926,), (1370989929,), (1370989933,), (1370989936,), (1370989938,), (1370989959,), (1370989964,), (1370989967,), (1370989971,), (1370989974,), (1370989978,), (1370989985,), (1370989988,), (1370989990,), (1370989993,), (1370989997,), (1370990000,), (1370990062,), (1370990074,), (1370990081,), (1370990102,), (1370990105,), (1370990108,), (1370990122,), (1370990125,), (1370990129,), (1370990131,), (1370990134,), (1370990137,), (1370990158,), (1370990161,), (1370990163,), (1370990166,), (1370990175,), (1370990179,), (1370990192,), (1370990196,), (1370990200,), (1370990202,), (1370990204,), (1370990207,), (1370990233,), (1370990236,), (1370990246,), (1370990248,), (1370990251,), (1370990253,), (1370990266,), (1370990271,), (1370990276,), (1370990278,), (1370990280,), (1370990282,), (1370990305,), (1370990312,), (1370990316,), (1370990318,), (1370990320,), (1370990321,), (1370990337,), (1370990344,), (1370990348,), (1370990353,), (1370990361,), (1370990366,), (1370990388,), (1370990391,), (1370990394,), (1370990397,), (1370990400,), (1370990404,), (1370990417,), (1370990420,), (1370990423,), (1370990427,), (1370990431,), (1370990434,), (1370990452,), (1370990457,), (1370990459,), (1370990461,), (1370990464,), (1370990467,), (1370990489,), (1370990492,), (1370990496,), (1370990502,), (1370990507,), (1370990511,), (1370990536,), (1370990540,), (1370990543,), (1370990548,), (1370990551,), (1370990555,), (1370990573,), (1370990580,), (1370990582,), (1370990584,), (1370990587,), (1370990589,), (1370990622,), (1370990626,), (1370990644,), (1370990656,), (1370990662,), (1370990670,), (1370990693,), (1370990695,), (1370990697,), (1370990702,), (1370990710,), (1370990712,), (1370990726,), (1370990738,), (1370990743,), (1370990746,), (1370990749,), (1370990752,), (1370990776,), (1370990780,), (1370990783,), (1370990793,), (1370990796,), (1370990800,), (1370990823,), (1370990828,), (1370990831,), (1370990834,), (1370990837,), (1370990845,), (1370990863,), (1370990865,), (1370990867,), (1370990870,), (1370990878,), (1370990884,), (1370990893,), (1370990897,), (1370990901,), (1370990910,), (1370990916,), (1370990920,), (1370990931,), (1370990936,), (1370990940,), (1370990944,), (1370990948,), (1370990954,), (1370990974,), (1370990978,), (1370990980,), (1370990988,), (1370990997,), (1370991000,), (1370991029,), (1370991038,), (1370991044,), (1370991047,), (1370991051,), (1370991056,), (1370991128,), (1370991132,), (1370991135,), (1370991155,), (1370991163,), (1370991166,), (1370991180,), (1370991182,), (1370991184,), (1370991187,), (1370991191,), (1370991196,), (1370991207,), (1370991210,), (1370991213,), (1370991215,), (1370991219,), (1370991223,), (1370991239,), (1370991242,), (1370991245,), (1370991247,), (1370991251,), (1370991254,), (1370991270,), (1370991273,), (1370991274,), (1370991275,), (1370991277,), (1370991279,), (1370991290,), (1370991294,), (1370991298,), (1370991301,), (1370991305,), (1370991309,), (1370991346,), (1370991349,), (1370991351,), (1370991354,), (1370991357,), (1370991360,), (1370991374,), (1370991378,), (1370991382,), (1370991384,), (1370991386,), (1370991389,), (1370991438,), (1370991442,), (1370991444,), (1370991451,), (1370991456,), (1370991457,), (1370991486,), (1370991490,), (1370991496,), (1370991508,), (1370991516,), (1370991518,), (1370991532,), (1370991536,), (1370991548,), (1370991557,), (1370991560,), (1370991571,), (1370991596,), (1370991600,), (1370991603,), (1370991606,), (1370991609,), (1370991612,), (1370991629,), (1370991630,), (1370991632,), (1370991634,), (1370991640,), (1370991672,), (1370991739,), (1370991764,), (1370991778,), (1370991785,), (1370991814,), (1370991821,), (1370991861,), (1370991863,), (1370991866,), (1370991868,), (1370991871,), (1370991874,), (1370991885,), (1370991888,), (1370991890,), (1370991892,), (1370991896,), (1370991900,), (1370991943,), (1370991946,), (1370991949,), (1370991953,), (1370991955,), (1370991958,), (1370991979,), (1370991983,), (1370991986,), (1370991987,), (1370991988,), (1370991989,), (1370992019,), (1370992023,), (1370992026,), (1370992028,), (1370992039,), (1370992047,), (1370992074,), (1370992096,), (1370992103,), (1370992105,), (1370992107,), (1370992109,), (1370992133,), (1370992140,), (1370992144,), (1370992146,), (1370992147,), (1370992148,), (1370992166,), (1370992172,), (1370992177,), (1370992180,), (1370992183,), (1370992194,), (1370992206,), (1370992209,), (1370992220,), (1370992222,), (1370992225,), (1370992229,), (1370992247,), (1370992250,), (1370992252,), (1370992254,), (1370992257,), (1370992261,), (1370992286,), (1370992295,), (1370992298,), (1370992299,), (1370992301,), (1370992303,), (1370992319,), (1370992321,), (1370992323,), (1370992325,), (1370992326,), (1370992329,), (1370992415,), (1370992421,), (1370992425,), (1370992428,), (1370992433,), (1370992438,), (1370992462,), (1370992468,), (1370992497,), (1370992549,), (1370992615,), (1370993290,), (1370993391,), (1370993517,), (1370993614,), (1370993711,), (1370993773,), (1370994186,), (1370994239,), (1370994293,), (1370994360,), (1370994406,), (1370994426,), (1370994514,), (1370994551,), (1370994587,), (1370994618,), (1370994651,), (1370994688,), (1370994795,), (1370994831,), (1370994840,), (1370994844,), (1370994846,), (1370994849,), (1370994864,), (1370994869,), (1370994872,), (1370994873,), (1370994877,), (1370994878,), (1370994896,), (1370994899,), (1370994901,), (1370994903,), (1370994906,), (1370994909,), (1370994920,), (1370994923,), (1370994932,), (1370994940,), (1370994956,), (1370994964,), (1370995031,), (1370995035,), (1370995037,), (1370995040,), (1370995041,), (1370995044,), (1370995065,), (1370995068,), (1370995069,), (1370995071,), (1370995075,), (1370995080,), (1370995113,), (1370995115,), (1370995118,), (1370995120,), (1370995125,), (1370995128,), (1370995147,), (1370995162,), (1370995179,), (1370995182,), (1370995190,), (1370995192,), (1370995217,), (1370995218,), (1370995219,), (1370995221,), (1370995223,), (1370995226,), (1370995245,), (1370995250,), (1370995254,), (1370995256,), (1370995259,), (1370995262,), (1370995285,), (1370995287,), (1370995290,), (1370995291,), (1370995294,), (1370995298,), (1370995314,), (1370995316,), (1370995317,), (1370995319,), (1370995323,), (1370995327,), (1370995380,), (1370995381,), (1370995382,), (1370995384,), (1370995387,), (1370995391,), (1370995403,), (1370995415,), (1370995418,), (1370995420,), (1370995423,), (1370995425,), (1370995457,), (1370995459,), (1370995461,), (1370995464,), (1370995466,), (1370995468,), (1370995486,), (1370995496,), (1370995501,), (1370995503,), (1370995505,), (1370995507,), (1370995533,), (1370995538,), (1370995541,), (1370995542,), (1370995543,), (1370995544,), (1370995563,), (1370995568,), (1370995571,), (1370995574,), (1370995577,), (1370995581,), (1370995600,), (1370995606,), (1370995610,), (1370995615,), (1370995619,), (1370995621,), (1370995631,), (1370995639,), (1370995641,), (1370995643,), (1370995646,), (1370995648,), (1370995663,), (1370995664,), (1370995665,), (1370995667,), (1370995671,), (1370995675,), (1370995693,), (1370995695,), (1370995697,), (1370995700,), (1370995709,), (1370995729,), (1370995778,), (1370995802,), (1370995810,), (1370995824,), (1370995826,), (1370995847,), (1370995860,), (1370995864,), (1370995866,), (1370995869,), (1370995872,), (1370995875,), (1370995891,), (1370995895,), (1370995896,), (1370995897,), (1370995900,), (1370995902,), (1370995919,), (1370995921,), (1370995932,), (1370995933,), (1370995938,), (1370995943,), (1370995978,), (1370995982,), (1370995985,), (1370995990,), (1370995994,), (1370996002,), (1370996022,), (1370996025,), (1370996026,), (1370996027,), (1370996029,), (1370996032,), (1370996060,), (1370996062,), (1370996063,), (1370996065,), (1370996068,), (1370996071,), (1370996081,), (1370996085,), (1370996088,), (1370996091,), (1370996094,), (1370996098,), (1370996132,), (1370996147,), (1370996154,), (1370996169,), (1370996172,), (1370996188,), (1370996205,), (1370996215,), (1370996219,), (1370996221,), (1370996224,), (1370996228,), (1370996251,), (1370996256,), (1370996259,), (1370996261,), (1370996264,), (1370996266,), (1370996281,), (1370996285,), (1370996287,), (1370996288,), (1370996290,), (1370996311,), (1370996334,), (1370996338,), (1370996342,), (1370996344,), (1370996346,), (1370996349,), (1370996362,), (1370996367,), (1370996380,), (1370996383,), (1370996385,), (1370996389,), (1370996413,), (1370996418,), (1370996420,), (1370996421,), (1370996422,), (1370996424,), (1370996443,), (1370996446,), (1370996448,), (1370996460,), (1370996463,), (1370996466,), (1370996491,), (1370996496,), (1370996499,), (1370996502,), (1370996506,), (1370996509,), (1370996524,), (1370996527,), (1370996529,), (1370996530,), (1370996532,), (1370996534,), (1370996561,), (1370996564,), (1370996574,), (1370996580,), (1370996584,), (1370996588,), (1370996604,), (1370996615,), (1370996618,), (1370996621,), (1370996623,), (1370996636,), (1370996667,), (1370996672,), (1370996675,), (1370996676,), (1370996677,), (1370996678,), (1370996690,), (1370996696,), (1370996701,), (1370996704,), (1370996708,), (1370996713,), (1370996732,), (1370996735,), (1370996739,), (1370996742,), (1370996746,), (1370996749,), (1370996761,), (1370996766,), (1370996768,), (1370996779,), (1370996782,), (1370996785,), (1370996809,), (1370996821,), (1370996823,), (1370996826,), (1370996830,), (1370996834,), (1370996842,), (1370996846,), (1370996850,), (1370996853,), (1370996864,), (1370996867,), (1370996885,), (1370996896,), (1370996900,), (1370996904,), (1370996908,), (1370996913,), (1370996924,), (1370996925,), (1370996927,), (1370996930,), (1370996934,), (1370996939,), (1370996956,), (1370996961,), (1370996964,), (1370996975,), (1370996979,), (1370996983,), (1370996995,), (1370997006,), (1370997013,), (1370997014,), (1370997017,), (1370997020,), (1370997037,), (1370997039,), (1370997040,), (1370997042,), (1370997044,), (1370997047,), (1370997057,), (1370997068,), (1370997071,), (1370997075,), (1370997079,), (1370997082,), (1370997399,), (1370997432,), (1370997471,), (1370997505,), (1370997540,), (1370997585,), (1370997823,), (1370997856,), (1370997890,), (1370997924,), (1370997964,), (1370998188,), (1370998223,), (1370998275,), (1370998321,), (1370998325,), (1370998351,), (1370998444,), (1370998503,), (1370998547,), (1370998591,), (1370998639,), (1370998688,), (1370998855,), (1370998889,), (1370998924,), (1370998958,), (1370998992,), (1370999023,), (1370999241,), (1370999277,), (1370999296,), (1370999298,), (1370999300,), (1370999302,), (1370999312,), (1370999316,), (1370999347,), (1370999380,), (1370999414,), (1370999457,), (1370999648,), (1370999663,), (1370999682,), (1370999700,), (1370999726,), (1370999731,), (1370999753,), (1370999766,), (1370999776,), (1370999779,), (1370999792,), (1370999802,), (1370999874,), (1370999888,), (1370999893,), (1370999896,), (1370999899,), (1370999902,), (1370999930,), (1370999933,), (1370999939,), (1370999944,), (1370999948,), (1370999951,), (1370999958,), (1370999963,), (1370999967,), (1370999970,), (1370999974,), (1370999987,), (1371000005,), (1371000009,), (1371000011,), (1371000020,), (1371000021,), (1371000023,), (1371000050,), (1371000061,), (1371000064,), (1371000066,), (1371000069,), (1371000073,), (1371000088,), (1371000091,), (1371000093,), (1371000096,), (1371000099,), (1371000101,), (1371000127,), (1371000132,), (1371000135,), (1371000136,), (1371000137,), (1371000138,), (1371000160,), (1371000164,), (1371000168,), (1371000170,), (1371000173,), (1371000178,), (1371000191,), (1371000202,), (1371000208,), (1371000215,), (1371000226,), (1371000230,), (1371000259,), (1371000264,), (1371000266,), (1371000268,), (1371000270,), (1371000272,), (1371000283,), (1371000288,), (1371000293,), (1371000298,), (1371000303,), (1371000309,), (1371000316,), (1371000328,), (1371000333,), (1371000337,), (1371000341,), (1371000343,), (1371000351,), (1371000355,), (1371000365,), (1371000376,), (1371000383,), (1371000385,), (1371000401,), (1371000404,), (1371000405,), (1371000408,), (1371000412,), (1371000417,), (1371000426,), (1371000431,), (1371000434,), (1371000437,), (1371000441,), (1371000445,), (1371000465,), (1371000471,), (1371000483,), (1371000485,), (1371000487,), (1371000490,), (1371000507,), (1371000515,), (1371000525,), (1371000528,), (1371000531,), (1371000534,), (1371000553,), (1371000557,), (1371000561,), (1371000564,), (1371000567,), (1371000571,), (1371000592,), (1371000599,), (1371000602,), (1371000604,), (1371000607,), (1371000610,), (1371000628,), (1371000632,), (1371000636,), (1371000640,), (1371000644,), (1371000649,), (1371000659,), (1371000666,), (1371000668,), (1371000673,), (1371000678,), (1371000684,), (1371000713,), (1371000715,), (1371000718,), (1371000721,), (1371000724,), (1371000727,), (1371000739,), (1371000741,), (1371000749,), (1371000756,), (1371000760,), (1371000765,), (1371000791,), (1371000795,), (1371000800,), (1371000810,), (1371000820,), (1371000823,), (1371000839,), (1371000844,), (1371000846,), (1371000847,), (1371000848,), (1371000850,), (1371000875,), (1371000879,), (1371000881,), (1371000882,), (1371000884,), (1371000886,), (1371000908,), (1371000911,), (1371000914,), (1371000917,), (1371000919,), (1371000922,), (1371000936,), (1371000938,), (1371000941,), (1371000945,), (1371000950,), (1371000955,), (1371000970,), (1371000974,), (1371000978,), (1371000981,), (1371000985,), (1371000988,), (1371001015,), (1371001018,), (1371001021,), (1371001024,), (1371001026,), (1371001029,), (1371001047,), (1371001052,), (1371001053,), (1371001055,), (1371001060,), (1371001064,), (1371001081,), (1371001083,), (1371001086,), (1371001091,), (1371001095,), (1371001100,), (1371001113,), (1371001121,), (1371001124,), (1371001126,), (1371001130,), (1371001133,), (1371001154,), (1371001157,), (1371001158,), (1371001159,), (1371001161,), (1371001163,), (1371001184,), (1371001198,), (1371001200,), (1371001202,), (1371001205,), (1371001209,), (1371001229,), (1371001233,), (1371001236,), (1371001239,), (1371001242,), (1371001245,), (1371001267,), (1371001275,), (1371001278,), (1371001280,), (1371001284,), (1371001286,), (1371001311,), (1371001314,), (1371001316,), (1371001320,), (1371001323,), (1371001326,), (1371001340,), (1371001347,), (1371001351,), (1371001355,), (1371001358,), (1371001365,), (1371001377,), (1371001381,), (1371001385,), (1371001388,), (1371001390,), (1371001393,), (1371001405,), (1371001407,), (1371001409,), (1371001410,), (1371001413,), (1371001415,), (1371001434,), (1371001436,), (1371001437,), (1371001439,), (1371001443,), (1371001448,), (1371001461,), (1371001469,), (1371001471,), (1371001473,), (1371001477,), (1371001481,), (1371001515,), (1371001518,), (1371001519,), (1371001520,), (1371001523,), (1371001526,), (1371001544,), (1371001547,), (1371001549,), (1371001551,), (1371001554,), (1371001557,), (1371001578,), (1371001583,), (1371001587,), (1371001590,), (1371001595,), (1371001598,), (1371001609,), (1371001612,), (1371001614,), (1371001616,), (1371001619,), (1371001622,), (1371001645,), (1371001649,), (1371001654,), (1371001659,), (1371001665,), (1371001670,), (1371001676,), (1371001680,), (1371001683,), (1371001686,), (1371001692,), (1371001696,), (1371001720,), (1371001724,), (1371001725,), (1371001726,), (1371001728,), (1371001730,), (1371001801,), (1371001830,), (1371001866,), (1371001922,), (1371001974,), (1371002035,), (1371002765,), (1371002814,), (1371002882,), (1371002945,), (1371003012,), (1371003074,), (1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07072025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24671783]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] map_info['map_portfolio_photo'] : {24671783: [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361, 1371004348, 1371004343, 1371004339, 1371004335, 1371004333, 1371004330, 1371004292, 1371004289, 1371004286, 1371004284, 1371004282, 1371004279, 1371004263, 1371004258, 1371004252, 1371004249, 1371004245, 1371004240, 1371004223, 1371004219, 1371004215, 1371004212, 1371004210, 1371004206, 1371004189, 1371004187, 1371004185, 1371004183, 1371004180, 1371004175, 1371004160, 1371004158, 1371004154, 1371004150, 1371004145, 1371004130, 1371004112, 1371004109, 1371004105, 1371004102, 1371004099, 1371004095, 1371004083, 1371004081, 1371004079, 1371004077, 1371004074, 1371004069, 1371004048, 1371004045, 1371004042, 1371004039, 1371004031, 1371004013, 1371003867, 1371003831, 1371003800, 1371003769, 1371003759, 1371003750, 1371003574, 1371003542, 1371003484, 1371003427, 1371003362]} final : True mtd_id 4302 list_pids : [1371004415, 1371004412, 1371004409, 1371004407, 1371004406, 1371004402, 1371004379, 1371004375, 1371004371, 1371004368, 1371004364, 1371004361] Looping around the photos to save general results len do output : 1 /24671783Didn'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, '3244461') ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461') ('4302', None, None, None, None, None, None, None, '3244461') ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24671783', 'None', None, None, None, None, '3244461'), ('4302', '24671783', '1371004415', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004412', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004409', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004407', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004406', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004402', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004379', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004375', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004371', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004368', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004364', None, None, None, None, None, '3244461'), ('4302', '24671783', '1371004361', None, None, None, None, None, '3244461')] time used for this insertion : 0.01595473289489746 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4578278064727783 time spend to save output : 0.016187429428100586 total time spend for step 5 : 1.474015235900879 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 (3244461) 2.07user 2.51system 0:09.84elapsed 46%CPU (0avgtext+0avgdata 160912maxresident)k 56inputs+15240outputs (1major+64473minor)pagefaults 0swaps