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 : 1826814 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 (3589114) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3589114) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202807 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3589114'] with mtr_portfolio_ids : ['26202807'] and first list_photo_ids : [] new path : /proc/1826814/ Name: python3 Umask: 0002 State: R (running) Tgid: 1826814 Ngid: 0 Pid: 1826814 PPid: 1826813 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1826814 NSpid: 1826814 NSpgid: 1824599 NSsid: 1824599 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100036 kB VmRSS: 100036 kB RssAnon: 60160 kB RssFile: 39876 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1826814', 'Ngid': '0', 'Pid': '1826814', 'PPid': '1826813', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1826814', 'NSpid': '1826814', 'NSpgid': '1824599', 'NSsid': '1824599', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100036 kB', 'VmRSS': '100036 kB', 'RssAnon': '60160 kB', 'RssFile': '39876 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1826814', '1107248', '0', '1107248', '866000', '100036', b'', 'marlene', '3589114') 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 (26202807) 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 (3589114 ) ) 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 (26202807) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1379224596, 'portfolio_id': 26202807}, {'photo_id': 1379224594, 'portfolio_id': 26202807}, {'photo_id': 1379224592, 'portfolio_id': 26202807}, {'photo_id': 1379224590, 'portfolio_id': 26202807}, {'photo_id': 1379223935, 'portfolio_id': 26202807}, {'photo_id': 1379223933, 'portfolio_id': 26202807}, {'photo_id': 1379223931, 'portfolio_id': 26202807}, {'photo_id': 1379223480, 'portfolio_id': 26202807}, {'photo_id': 1379223477, 'portfolio_id': 26202807}, {'photo_id': 1379222957, 'portfolio_id': 26202807}, {'photo_id': 1379222955, 'portfolio_id': 26202807}, {'photo_id': 1379222777, 'portfolio_id': 26202807}, {'photo_id': 1379222775, 'portfolio_id': 26202807}, {'photo_id': 1379222773, 'portfolio_id': 26202807}, {'photo_id': 1379222677, 'portfolio_id': 26202807}, {'photo_id': 1379222676, 'portfolio_id': 26202807}, {'photo_id': 1379222675, 'portfolio_id': 26202807}, {'photo_id': 1379222674, 'portfolio_id': 26202807}, {'photo_id': 1379222673, 'portfolio_id': 26202807}, {'photo_id': 1379222672, 'portfolio_id': 26202807}, {'photo_id': 1379222624, 'portfolio_id': 26202807}, {'photo_id': 1379222623, 'portfolio_id': 26202807}, {'photo_id': 1379222622, 'portfolio_id': 26202807}, {'photo_id': 1379222479, 'portfolio_id': 26202807}, {'photo_id': 1379222478, 'portfolio_id': 26202807}, {'photo_id': 1379222477, 'portfolio_id': 26202807}, {'photo_id': 1379222201, 'portfolio_id': 26202807}, {'photo_id': 1379222200, 'portfolio_id': 26202807}, {'photo_id': 1379221888, 'portfolio_id': 26202807}, {'photo_id': 1379221887, 'portfolio_id': 26202807}, {'photo_id': 1379221662, 'portfolio_id': 26202807}, {'photo_id': 1379221660, 'portfolio_id': 26202807}, {'photo_id': 1379221658, 'portfolio_id': 26202807}, {'photo_id': 1379221656, 'portfolio_id': 26202807}, {'photo_id': 1379221055, 'portfolio_id': 26202807}, {'photo_id': 1379221050, 'portfolio_id': 26202807}, {'photo_id': 1379221047, 'portfolio_id': 26202807}, {'photo_id': 1379220643, 'portfolio_id': 26202807}] map_portfolio_id_photo_id: {26202807: [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931, 1379223480, 1379223477, 1379222957, 1379222955, 1379222777, 1379222775, 1379222773, 1379222677, 1379222676, 1379222675, 1379222674, 1379222673, 1379222672, 1379222624, 1379222623, 1379222622, 1379222479, 1379222478, 1379222477, 1379222201, 1379222200, 1379221888, 1379221887, 1379221662, 1379221660, 1379221658, 1379221656, 1379221055, 1379221050, 1379221047, 1379220643]} ##### 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.014280557632446289 #### 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 Aug 25 14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26202807) 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 : 26202807 get user id for portfolio 26202807 get sub ptf for main ptf 26202807, type 3726 and hashtags ['metal', 'autre_refus', 'flou', 'plastique', 'kraft', 'papier', 'Carton_brun', 'mal_croppe', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', '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`=26202807 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','plastique','kraft','papier','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','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`=26202807 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','plastique','kraft','papier','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26202807, 'sub_port_id': 26202921, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645023, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'Carton_brun': {'main_port_id': 26202807, 'sub_port_id': 26202923, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645024, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'Carton_gris': {'main_port_id': 26202807, 'sub_port_id': 26202924, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645025, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'plastique': {'main_port_id': 26202807, 'sub_port_id': 26202925, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645026, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'mal_croppe': {'main_port_id': 26202807, 'sub_port_id': 26202926, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645027, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'cartonnette': {'main_port_id': 26202807, 'sub_port_id': 26202927, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645028, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'autre_refus': {'main_port_id': 26202807, 'sub_port_id': 26202928, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645029, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'papier': {'main_port_id': 26202807, 'sub_port_id': 26202929, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645030, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26202807, 'sub_port_id': 26202930, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645031, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'kraft': {'main_port_id': 26202807, 'sub_port_id': 26202931, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645032, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'flou': {'main_port_id': 26202807, 'sub_port_id': 26202932, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645033, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}, 'metal': {'main_port_id': 26202807, 'sub_port_id': 26202933, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645034, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26202921 , 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=26202807 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 (26202921) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202923 , 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=26202807 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 (26202923) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202924 , 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=26202807 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 (26202924) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202925 , 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=26202807 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 (26202925) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202926 , 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=26202807 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 (26202926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202927 , 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=26202807 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 (26202927) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202928 , 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=26202807 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 (26202928) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202929 , 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=26202807 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 (26202929) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202930 , 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=26202807 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 (26202930) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202931 , 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=26202807 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 (26202931) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202932 , 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=26202807 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 (26202932) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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 26202933 , 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=26202807 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 (26202933) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26202807) result : ((1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) 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 (1379222200) 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`=26202807 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','plastique','kraft','papier','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','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`=26202807 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','flou','plastique','kraft','papier','Carton_brun','mal_croppe','cartonnette','Teint_Dans_La_Masse','environnement','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 26202807, 'sub_port_id': 26202934, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645035, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'Carton_brun': {'main_port_id': 26202807, 'sub_port_id': 26202935, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645036, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'Carton_gris': {'main_port_id': 26202807, 'sub_port_id': 26202936, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645037, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'plastique': {'main_port_id': 26202807, 'sub_port_id': 26202937, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645038, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'mal_croppe': {'main_port_id': 26202807, 'sub_port_id': 26202938, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645039, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'cartonnette': {'main_port_id': 26202807, 'sub_port_id': 26202939, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645040, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'autre_refus': {'main_port_id': 26202807, 'sub_port_id': 26202940, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645041, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'papier': {'main_port_id': 26202807, 'sub_port_id': 26202941, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645042, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26202807, 'sub_port_id': 26202942, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645043, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'kraft': {'main_port_id': 26202807, 'sub_port_id': 26202943, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645044, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'flou': {'main_port_id': 26202807, 'sub_port_id': 26202944, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645045, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}, 'metal': {'main_port_id': 26202807, 'sub_port_id': 26202945, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17645046, 'last_updated_at': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 8, 25, 14, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 8, 25, 14, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202921 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202923 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202924 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202928 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26202945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26202933 lien utilise dans velours : https://www.fotonower.com/velours/26202934,26202935,26202936,26202937,26202938,26202939,26202940,26202941,26202942,26202943,26202944,26202945?tags=environnement,Carton_brun,Carton_gris,plastique,mal_croppe,cartonnette,autre_refus,papier,Teint_Dans_La_Masse,kraft,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26202807]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] map_info['map_portfolio_photo'] : {26202807: [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931, 1379223480, 1379223477, 1379222957, 1379222955, 1379222777, 1379222775, 1379222773, 1379222677, 1379222676, 1379222675, 1379222674, 1379222673, 1379222672, 1379222624, 1379222623, 1379222622, 1379222479, 1379222478, 1379222477, 1379222201, 1379222200, 1379221888, 1379221887, 1379221662, 1379221660, 1379221658, 1379221656, 1379221055, 1379221050, 1379221047, 1379220643]} final : False mtd_id 4302 list_pids : [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] Looping around the photos to save general results len do output : 1 /26202807. 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, '3589114') ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '26202807', "{'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933}", None, None, None, None, '3589114'), ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114')] time used for this insertion : 0.01381373405456543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41335248947143555 time spend to save output : 0.014034509658813477 total time spend for step 1 : 0.427386999130249 step2:final Mon Aug 25 14:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26202807) 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 26202807 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1379220643,1379221055,1379221050,1379221047,1379221662,1379221660,1379221658,1379221656,1379221888,1379221887,1379222201,1379222200,1379222479,1379222478,1379222477,1379222624,1379222623,1379222622,1379222677,1379222676,1379222675,1379222674,1379222673,1379222672,1379222777,1379222775,1379222773,1379222957,1379222955,1379223480,1379223477,1379223935,1379223933,1379223931,1379224596,1379224594,1379224592,1379224590); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26202807]) Inside saveOutput : final : False verbose : True original output for save of step final : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} new output for save of step final : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] map_info['map_portfolio_photo'] : {26202807: [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931, 1379223480, 1379223477, 1379222957, 1379222955, 1379222777, 1379222775, 1379222773, 1379222677, 1379222676, 1379222675, 1379222674, 1379222673, 1379222672, 1379222624, 1379222623, 1379222622, 1379222479, 1379222478, 1379222477, 1379222201, 1379222200, 1379221888, 1379221887, 1379221662, 1379221660, 1379221658, 1379221656, 1379221055, 1379221050, 1379221047, 1379220643]} final : False mtd_id 4302 list_pids : [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] Looping around the photos to save general results len do output : 7 /1379224596.Didn't retrieve data . /1379224594.Didn't retrieve data . /1379224592.Didn't retrieve data . /1379224590.Didn't retrieve data . /1379223935.Didn't retrieve data . /1379223933.Didn't retrieve data . /1379223931.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, '3589114') ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '26202807', '1379224596', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379224594', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379224592', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379224590', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379223935', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379223933', '0.0', None, None, None, None, '3589114'), ('4302', '26202807', '1379223931', '0.0', None, None, None, None, '3589114')] time used for this insertion : 0.015369415283203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.051351308822631836 time spend to save output : 0.015797853469848633 total time spend for step 2 : 0.06714916229248047 step3:velours_tree Mon Aug 25 14:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26202807: [{'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933}]} input_args_next_step : {26202807: ()} output_args : {26202807: [{'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933}]} args : 26202807 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 : ({'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26202807) 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([26202807]) 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.32828593254089355 time spend to save output : 6.103515625e-05 total time spend for step 3 : 0.32834696769714355 step4:send_mail_cod Mon Aug 25 14:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} input_args_next_step : {1379224596: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379224596 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379224594 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379224592 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379224590 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379223935 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379223933 depend.output_id : 0 input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ()} output_args : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',)} args : 1379223931 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 : {26202807: [{'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933}]} input_args_next_step : {1379224596: ('0.0',), 1379224594: ('0.0',), 1379224592: ('0.0',), 1379224590: ('0.0',), 1379223935: ('0.0',), 1379223933: ('0.0',), 1379223931: ('0.0',), 26202807: ()} output_args : {26202807: [{'environnement': 26202921, 'Carton_brun': 26202923, 'Carton_gris': 26202924, 'plastique': 26202925, 'mal_croppe': 26202926, 'cartonnette': 26202927, 'autre_refus': 26202928, 'papier': 26202929, 'Teint_Dans_La_Masse': 26202930, 'kraft': 26202931, 'flou': 26202932, 'metal': 26202933}]} args : 26202807 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 :8, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26202807) 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 (1379224596,1379224594,1379224592,1379224590,1379223935,1379223933,1379223931) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1379223931 begin to download photo : 1379223935 begin to download photo : 1379224592 begin to download photo : 1379224596 download finish for photo 1379223935 begin to download photo : 1379224590 download finish for photo 1379224596 download finish for photo 1379224592 begin to download photo : 1379224594 download finish for photo 1379223931 begin to download photo : 1379223933 download finish for photo 1379224590 download finish for photo 1379223933 download finish for photo 1379224594 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette262029251756124100/ imagette262029261756124100/ imagette262029271756124100/ imagette262029281756124100/ imagette262029311756124100/ imagette262029321756124100/ imagette262029331756124100/ imagette262029231756124100/ imagette262029241756124100/ imagette262029301756124100/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P26202807_25-08-2025_14_15_00.pdf 26202925 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=26202925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029251756124100 26202926 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=26202926 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029261756124100 26202927 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=26202927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029271756124100 26202928 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=26202928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029281756124100 26202931 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=26202931 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029311756124100 26202932 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=26202932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029321756124100 26202933 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=26202933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029331756124100 26202923 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=26202923 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029231756124100 26202924 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=26202924 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029241756124100 26202930 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=26202930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette262029301756124100 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26202807 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26202934,26202935,26202936,26202937,26202938,26202939,26202940,26202941,26202942,26202943,26202944,26202945?tags=environnement,Carton_brun,Carton_gris,plastique,mal_croppe,cartonnette,autre_refus,papier,Teint_Dans_La_Masse,kraft,flou,metal your option no_mail is active, we will not send the real mail to your client args[1379224596] : ('0.0',) no score found for photo 1379224596 We are sending mail with results at report@fotonower.com args[1379224594] : ('0.0',) no score found for photo 1379224594 We are sending mail with results at report@fotonower.com args[1379224592] : ('0.0',) no score found for photo 1379224592 We are sending mail with results at report@fotonower.com args[1379224590] : ('0.0',) no score found for photo 1379224590 We are sending mail with results at report@fotonower.com args[1379223935] : ('0.0',) no score found for photo 1379223935 We are sending mail with results at report@fotonower.com args[1379223933] : ('0.0',) no score found for photo 1379223933 We are sending mail with results at report@fotonower.com args[1379223931] : ('0.0',) no score found for photo 1379223931 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=26202807 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_P26202807_25-08-2025_14_15_00.pdf results_Auto_P26202807_25-08-2025_14_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26202807_25-08-2025_14_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','26202807','results_Auto_P26202807_25-08-2025_14_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26202807_25-08-2025_14_15_00.pdf','pdf','','0.08','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26202807]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] map_info['map_portfolio_photo'] : {26202807: [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931, 1379223480, 1379223477, 1379222957, 1379222955, 1379222777, 1379222775, 1379222773, 1379222677, 1379222676, 1379222675, 1379222674, 1379222673, 1379222672, 1379222624, 1379222623, 1379222622, 1379222479, 1379222478, 1379222477, 1379222201, 1379222200, 1379221888, 1379221887, 1379221662, 1379221660, 1379221658, 1379221656, 1379221055, 1379221050, 1379221047, 1379220643]} final : False mtd_id 4302 list_pids : [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] 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, '3589114') ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '26202807', '1379224596', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114')] time used for this insertion : 0.015082359313964844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5064342021942139 time spend to save output : 0.015276908874511719 total time spend for step 4 : 1.5217111110687256 step5:split_time_score Mon Aug 25 14:15:01 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 : ['26202807'] 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 : [('26202807',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26202807) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1379224596: {'path': 'temp/1756124099_1826814_1379224596_80d8c553e89ebaa35048a4d3aa6134cb_75740656.jpg', 'extension': 'jpg'}, 1379223935: {'path': 'temp/1756124099_1826814_1379223935_b3df17b14304181aac1b2197d953e52e_6665439.jpg', 'extension': 'jpg'}, 1379224590: {'path': 'temp/1756124099_1826814_1379224590_cc4403dffcd132ab0c1f48c487c80963_5386140.jpg', 'extension': 'jpg'}, 1379223931: {'path': 'temp/1756124099_1826814_1379223931_8d542f3023301ef1dcb52fd4183ba712_49754973.jpg', 'extension': 'jpg'}, 1379223933: {'path': 'temp/1756124099_1826814_1379223933_8de10504a132b812087e338c60510991_85755334.jpg', 'extension': 'jpg'}, 1379224592: {'path': 'temp/1756124099_1826814_1379224592_90b1aaa615a902a3943e0b78bc07012d_69858819.jpg', 'extension': 'jpg'}, 1379224594: {'path': 'temp/1756124099_1826814_1379224594_94f55dea2d06afc4d73438f7a3ea3b93_38392654.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 = 26202807; (('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 = 26202807 group by h (('14', 38),) 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=26202807 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 (26202807) 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 (26202807) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25082025 26202807 Nombre de photos uploadées : 38 / 23040 (0%) 25082025 26202807 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 25082025 26202807 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1379220643, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/4b236c81034aa2552b70750b38523798_78948131.jpg', 'username': None, 'uploaded_at': 1756123272, 'text': 'image_25082025_14_00_14_10182.jpg'}, {'photo_id': 1379221055, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/060ae4d65d7bd577a28901a3dc32eb4a_64116938.jpg', 'username': None, 'uploaded_at': 1756123332, 'text': 'image_25082025_14_00_35_10138.jpg'}, {'photo_id': 1379221050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/318771511ca0fa302a7830d683380220_8156695.jpg', 'username': None, 'uploaded_at': 1756123332, 'text': 'image_25082025_14_01_14_9124.jpg'}, {'photo_id': 1379221047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/25/c78062b7cd57142a7f0813d0d5267eac_3362717.jpg', 'username': None, 'uploaded_at': 1756123332, 'text': 'image_25082025_14_01_34_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017850399017333984 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26202807, '2025-08-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-25' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2167673,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22112154960632324 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= 2167673 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26190693, 'dashboard_result_id': 14257525, '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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26190838, 'dashboard_result_id': 14257526, '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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26191029, 'dashboard_result_id': 14257527, '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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26191180, 'dashboard_result_id': 14257528, '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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26191444, 'dashboard_result_id': 14257529, '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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26191624, 'dashboard_result_id': 14257530, '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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26191825, 'dashboard_result_id': 14257531, '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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26192047, 'dashboard_result_id': 14257532, '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_P26192047_25-08-2025_07_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26192571, 'dashboard_result_id': 14257533, '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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26192848, 'dashboard_result_id': 14257534, '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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26193178, 'dashboard_result_id': 14257535, '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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26193504, 'dashboard_result_id': 14257536, '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_P26193504_25-08-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26194072, 'dashboard_result_id': 14257537, '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_P26194072_25-08-2025_08_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26194117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26194118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26194119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26194120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26194121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26194122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26194123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26194124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26194125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26194126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26194127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26194128, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26194424, 'dashboard_result_id': 14257538, '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_P26194424_25-08-2025_08_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26194483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26194484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26194485, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26194486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26194487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26194488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26194489, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26194490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26194491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26194492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26194493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26194494, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26195010, 'dashboard_result_id': 14257539, '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_P26195010_25-08-2025_09_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26195042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26195043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26195044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26195045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26195046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26195047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26195048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26195049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26195050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26195051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26195052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26195053, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26196382, 'dashboard_result_id': 14257540, '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_P26196382_25-08-2025_09_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196399, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26196724, 'dashboard_result_id': 14257541, '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_P26196724_25-08-2025_10_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26196732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196744, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26202393, 'dashboard_result_id': 14257542, '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_P26202393_25-08-2025_13_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202410, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26202540, 'dashboard_result_id': 14257543, '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_P26202540_25-08-2025_14_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202557, 'pht': 3726}}"}, {'dashboat_entry_day': 2167673, 'dashboard_run_id': 2177735, 'mtr_portfolio_id': 26202807, 'dashboard_result_id': 14257544, '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_P26202807_25-08-2025_14_10_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202933, '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 = 26190693 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': 3584565, 'mtr_portfolio_id': 26190693, 'created_at': datetime.datetime(2025, 8, 25, 5, 23, 30), 'result': '0.05132301580300638', 'result_long': None, 'result_double': None}] Qualite : 0.05132301580300638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190693 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_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, 'pht': 3726}}" where mtr_portfolio_id = 26190693 and dashboard_run_id = 2177735 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`=26190693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14257525, 0.05132301580300638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190693_25-08-2025_05_23_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190697, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190700, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190704, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190705, '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 = 26190838 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': 3584602, 'mtr_portfolio_id': 26190838, 'created_at': datetime.datetime(2025, 8, 25, 5, 34, 57), 'result': '0.003340568246483041', 'result_long': None, 'result_double': None}] Qualite : 0.003340568246483041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26190838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26190838 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_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, 'pht': 3726}}" where mtr_portfolio_id = 26190838 and dashboard_run_id = 2177735 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`=26190838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14257526, 0.003340568246483041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26190838_25-08-2025_05_34_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26190840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26190841, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26190842, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26190843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26190844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26190845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26190846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26190847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26190848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26190849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26190850, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26190851, '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 = 26191029 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26191029 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191029 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26191029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191029_25-08-2025_06_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191029 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_P26191029_25-08-2025_06_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191048, 'pht': 3726}}" where mtr_portfolio_id = 26191029 and dashboard_run_id = 2177735 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 = 26191180 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26191180 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191180 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26191180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191180_25-08-2025_06_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191180 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_P26191180_25-08-2025_06_18_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191192, 'pht': 3726}}" where mtr_portfolio_id = 26191180 and dashboard_run_id = 2177735 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 = 26191444 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191444 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26191444 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191444 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191444 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26191444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191444_25-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191444 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_P26191444_25-08-2025_06_33_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191457, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191460, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191461, 'pht': 3726}}" where mtr_portfolio_id = 26191444 and dashboard_run_id = 2177735 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 = 26191624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26191624 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191624 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26191624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191624_25-08-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191624 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_P26191624_25-08-2025_06_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26191637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191639, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191643, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191644, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191646, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191647, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191648, 'pht': 3726}}" where mtr_portfolio_id = 26191624 and dashboard_run_id = 2177735 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 = 26191825 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26191825 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26191825 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26191825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26191825_25-08-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26191825 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_P26191825_25-08-2025_07_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26191827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26191828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26191829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26191830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26191831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26191832, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26191833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26191834, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26191835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26191836, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26191837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26191838, 'pht': 3726}}" where mtr_portfolio_id = 26191825 and dashboard_run_id = 2177735 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 = 26192047 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192047 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26192047 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192047 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192047 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26192047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192047_25-08-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192047 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_P26192047_25-08-2025_07_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192068, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192071, 'pht': 3726}}" where mtr_portfolio_id = 26192047 and dashboard_run_id = 2177735 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 = 26192571 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192571 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26192571 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192571 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192571 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26192571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192571_25-08-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192571 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_P26192571_25-08-2025_07_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192585, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192594, 'pht': 3726}}" where mtr_portfolio_id = 26192571 and dashboard_run_id = 2177735 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 = 26192848 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192848 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26192848 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192848 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26192848 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26192848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26192848_25-08-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26192848 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_P26192848_25-08-2025_07_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26192873, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26192874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26192875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26192876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26192877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26192878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26192879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26192880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26192881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26192882, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26192883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26192884, 'pht': 3726}}" where mtr_portfolio_id = 26192848 and dashboard_run_id = 2177735 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 = 26193178 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26193178 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193178 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26193178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193178_25-08-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193178 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_P26193178_25-08-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26193184, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193189, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193192, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193193, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193195, 'pht': 3726}}" where mtr_portfolio_id = 26193178 and dashboard_run_id = 2177735 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 = 26193504 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193504 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26193504 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193504 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26193504 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26193504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26193504_25-08-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26193504 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_P26193504_25-08-2025_08_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26193527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26193528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26193529, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26193530, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26193531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26193532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26193533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26193534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26193535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26193536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26193537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26193538, 'pht': 3726}}" where mtr_portfolio_id = 26193504 and dashboard_run_id = 2177735 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 = 26194072 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26194072 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26194072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26194072_25-08-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26194072 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_P26194072_25-08-2025_08_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26194117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26194118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26194119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26194120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26194121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26194122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26194123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26194124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26194125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26194126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26194127, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26194128, 'pht': 3726}}" where mtr_portfolio_id = 26194072 and dashboard_run_id = 2177735 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 = 26194424 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194424 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26194424 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194424 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26194424 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26194424 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26194424_25-08-2025_08_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26194424 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_P26194424_25-08-2025_08_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26194483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26194484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26194485, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26194486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26194487, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26194488, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26194489, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26194490, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26194491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26194492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26194493, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26194494, 'pht': 3726}}" where mtr_portfolio_id = 26194424 and dashboard_run_id = 2177735 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 = 26195010 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26195010 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26195010 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26195010 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26195010 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26195010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26195010_25-08-2025_09_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26195010 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_P26195010_25-08-2025_09_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26195042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26195043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26195044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26195045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26195046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26195047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26195048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26195049, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26195050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26195051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26195052, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26195053, 'pht': 3726}}" where mtr_portfolio_id = 26195010 and dashboard_run_id = 2177735 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 = 26196382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196382 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26196382 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196382 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196382 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26196382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196382_25-08-2025_09_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26196382 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_P26196382_25-08-2025_09_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26196389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196391, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196397, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196399, 'pht': 3726}}" where mtr_portfolio_id = 26196382 and dashboard_run_id = 2177735 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 = 26196724 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196724 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26196724 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196724 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26196724 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26196724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26196724_25-08-2025_10_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26196724 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_P26196724_25-08-2025_10_02_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26196732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26196733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26196734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26196735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26196736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26196738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26196739, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26196740, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26196741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26196742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26196743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26196744, 'pht': 3726}}" where mtr_portfolio_id = 26196724 and dashboard_run_id = 2177735 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 = 26202393 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202393 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26202393 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202393 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202393 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26202393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26202393_25-08-2025_13_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26202393 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_P26202393_25-08-2025_13_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202399, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202405, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202410, 'pht': 3726}}" where mtr_portfolio_id = 26202393 and dashboard_run_id = 2177735 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 = 26202540 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202540 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26202540 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202540 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202540 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26202540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26202540_25-08-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26202540 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_P26202540_25-08-2025_14_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202550, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202557, 'pht': 3726}}" where mtr_portfolio_id = 26202540 and dashboard_run_id = 2177735 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 = 26202807 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202807 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26202807 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202807 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26202807 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26202807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26202807_25-08-2025_14_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26202807 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_P26202807_25-08-2025_14_15_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26202921, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26202923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26202924, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26202925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26202926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26202927, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26202928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26202929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26202930, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26202931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26202932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26202933, 'pht': 3726}}" where mtr_portfolio_id = 26202807 and dashboard_run_id = 2177735 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26190693,26190838,26191029,26191180,26191444,26191624,26191825,26192047,26192571,26192848,26193178,26193504,26194072,26194424,26195010,26196382,26196724,26202393,26202540,26202807) result : ((1379139978,), (1379140082,), (1379140083,), (1379140095,), (1379140096,), (1379140097,), (1379140101,), (1379140110,), (1379140121,), (1379140129,), (1379140135,), (1379140176,), (1379140233,), (1379140184,), (1379140231,), (1379140232,), (1379140250,), (1379140251,), (1379140305,), (1379140307,), (1379140328,), (1379140329,), (1379140330,), (1379140331,), (1379140332,), (1379140363,), (1379140364,), (1379140365,), (1379140366,), (1379140372,), (1379140373,), (1379140374,), (1379140386,), (1379140387,), (1379140388,), (1379140398,), (1379140399,), (1379140400,), (1379140401,), (1379140402,), (1379140438,), (1379140562,), (1379140563,), (1379140566,), (1379140576,), (1379140577,), (1379140578,), (1379140579,), (1379140587,), (1379140588,), (1379140589,), (1379140590,), (1379140604,), (1379140605,), (1379140606,), (1379140608,), (1379140609,), (1379140610,), (1379140620,), (1379140621,), (1379140622,), (1379140623,), (1379140631,), (1379140632,), (1379140633,), (1379140634,), (1379140643,), (1379140644,), (1379140645,), (1379140646,), (1379140654,), (1379140655,), (1379140656,), (1379140657,), (1379140658,), (1379140670,), (1379140671,), (1379140672,), (1379140673,), (1379140674,), (1379140675,), (1379140685,), (1379140686,), (1379140687,), (1379140688,), (1379140689,), (1379140692,), (1379140693,), (1379140694,), (1379140698,), (1379141304,), (1379141307,), (1379141310,), (1379141397,), (1379141391,), (1379141393,), (1379141395,), (1379141784,), (1379141786,), (1379141788,), (1379142124,), (1379142126,), (1379142369,), (1379142370,), (1379142371,), (1379142372,), (1379142373,), (1379143158,), (1379143159,), (1379143160,), (1379143161,), (1379143162,), (1379143376,), (1379143377,), (1379143378,), (1379143379,), (1379143394,), (1379143395,), (1379143396,), (1379143413,), (1379143414,), (1379143415,), (1379143416,), (1379143417,), (1379143431,), (1379143432,), (1379143433,), (1379143434,), (1379143435,), (1379143443,), (1379143444,), (1379143538,), (1379143561,), (1379143562,), (1379143575,), (1379143576,), (1379143577,), (1379143585,), (1379143586,), (1379143620,), (1379143632,), (1379143633,), (1379143638,), (1379143639,), (1379143640,), (1379143641,), (1379143652,), (1379143653,), (1379143654,), (1379143669,), (1379143670,), (1379143671,), (1379143672,), (1379143686,), (1379143687,), (1379143688,), (1379143689,), (1379143702,), (1379143703,), (1379143704,), (1379143718,), (1379143719,), (1379143720,), (1379143726,), (1379143727,), (1379143728,), (1379143743,), (1379143744,), (1379143762,), (1379143760,), (1379143761,), (1379143786,), (1379143787,), (1379143788,), (1379143809,), (1379143810,), (1379143811,), (1379143813,), (1379143835,), (1379143836,), (1379143837,), (1379143856,), (1379143857,), (1379143858,), (1379143859,), (1379143879,), (1379143880,), (1379143881,), (1379143896,), (1379143897,), (1379143913,), (1379143914,), (1379143915,), (1379143932,), (1379143933,), (1379143934,), (1379143935,), (1379143936,), (1379143958,), (1379143959,), (1379143960,), (1379144007,), (1379144008,), (1379144009,), (1379144010,), (1379144030,), (1379144031,), (1379144032,), (1379144049,), (1379144051,), (1379144052,), (1379144068,), (1379144069,), (1379144070,), (1379144086,), (1379144087,), (1379144088,), (1379144109,), (1379144104,), (1379144105,), (1379144106,), (1379144107,), (1379144108,), (1379144133,), (1379144134,), (1379144135,), (1379144156,), (1379144157,), (1379144158,), (1379144159,), (1379144178,), (1379144179,), (1379144180,), (1379144181,), (1379144182,), (1379144183,), (1379144197,), (1379144198,), (1379144199,), (1379144220,), (1379144221,), (1379144222,), (1379144223,), (1379144224,), (1379144255,), (1379144256,), (1379144257,), (1379144258,), (1379144281,), (1379144282,), (1379144283,), (1379144284,), (1379144285,), (1379144305,), (1379144306,), (1379144307,), (1379144308,), (1379144309,), (1379144329,), (1379144330,), (1379144331,), (1379144332,), (1379144351,), (1379144352,), (1379144353,), (1379144378,), (1379144379,), (1379144380,), (1379144381,), (1379144382,), (1379144413,), (1379144438,), (1379144440,), (1379144443,), (1379145063,), (1379145065,), (1379145066,), (1379145067,), (1379145077,), (1379145079,), (1379145080,), (1379145081,), (1379145260,), (1379145257,), (1379145258,), (1379145259,), (1379145558,), (1379145561,), (1379145563,), (1379145565,), (1379145909,), (1379145911,), (1379145913,), (1379146003,), (1379146004,), (1379146005,), (1379146270,), (1379146271,), (1379146272,), (1379146273,), (1379147042,), (1379147046,), (1379147050,), (1379147054,), (1379147058,), (1379147339,), (1379147340,), (1379147341,), (1379147342,), (1379147368,), (1379147369,), (1379147370,), (1379147371,), (1379147372,), (1379147415,), (1379147416,), (1379147437,), (1379147438,), (1379147439,), (1379147440,), (1379147488,), (1379147489,), (1379147490,), (1379147491,), (1379147492,), (1379147612,), (1379147613,), (1379147614,), (1379147684,), (1379147685,), (1379147686,), (1379147687,), (1379147735,), (1379147736,), (1379147737,), (1379147786,), (1379147787,), (1379148051,), (1379147834,), (1379148050,), (1379148310,), (1379148311,), (1379148312,), (1379148313,), (1379148347,), (1379148348,), (1379148349,), (1379148350,), (1379148351,), (1379148352,), (1379148387,), (1379148388,), (1379148389,), (1379148433,), (1379148434,), (1379148435,), (1379148436,), (1379148468,), (1379148469,), (1379148470,), (1379148471,), (1379148507,), (1379148508,), (1379148509,), (1379148510,), (1379148701,), (1379148704,), (1379149045,), (1379149183,), (1379149218,), (1379149219,), (1379149256,), (1379149257,), (1379149311,), (1379149313,), (1379149315,), (1379149317,), (1379149463,), (1379149461,), (1379149462,), (1379149497,), (1379149498,), (1379149534,), (1379149535,), (1379149572,), (1379149573,), (1379149610,), (1379149611,), (1379149612,), (1379149785,), (1379149787,), (1379149916,), (1379149918,), (1379150055,), (1379150286,), (1379150287,), (1379150369,), (1379150370,), (1379150491,), (1379150493,), (1379150496,), (1379150498,), (1379150611,), (1379150612,), (1379150613,), (1379150641,), (1379150642,), (1379150711,), (1379150712,), (1379150771,), (1379150769,), (1379150770,), (1379150882,), (1379150908,), (1379150909,), (1379150910,), (1379150911,), (1379150945,), (1379150946,), (1379150980,), (1379150981,), (1379150982,), (1379151024,), (1379151025,), (1379151026,), (1379151027,), (1379151028,), (1379151117,), (1379151118,), (1379151119,), (1379151120,), (1379151154,), (1379151155,), (1379151156,), (1379151157,), (1379151189,), (1379151190,), (1379151191,), (1379151192,), (1379151233,), (1379151234,), (1379151235,), (1379151236,), (1379151237,), (1379151238,), (1379151293,), (1379151294,), (1379151295,), (1379151296,), (1379151297,), (1379151329,), (1379151330,), (1379151359,), (1379151360,), (1379151361,), (1379151362,), (1379152188,), (1379152190,), (1379152193,), (1379152195,), (1379152414,), (1379152408,), (1379152411,), (1379153153,), (1379153156,), (1379153159,), (1379153162,), (1379153582,), (1379153583,), (1379153584,), (1379153585,), (1379153855,), (1379153856,), (1379153857,), (1379153858,), (1379153859,), (1379153895,), (1379153896,), (1379153962,), (1379154351,), (1379154353,), (1379154355,), (1379154744,), (1379154963,), (1379154964,), (1379154965,), (1379155271,), (1379155272,), (1379155358,), (1379155359,), (1379155547,), (1379155552,), (1379155557,), (1379155826,), (1379156152,), (1379156154,), (1379156156,), (1379156158,), (1379156353,), (1379156355,), (1379156631,), (1379156705,), (1379156707,), (1379156709,), (1379156862,), (1379156863,), (1379156963,), (1379156967,), (1379156968,), (1379156969,), (1379157003,), (1379157004,), (1379157005,), (1379157048,), (1379157049,), (1379157050,), (1379157241,), (1379157243,), (1379157245,), (1379157247,), (1379157249,), (1379157251,), (1379157443,), (1379157444,), (1379157445,), (1379157556,), (1379157557,), (1379157558,), (1379157559,), (1379157560,), (1379157584,), (1379157585,), (1379157586,), (1379157587,), (1379157603,), (1379157604,), (1379157605,), (1379157606,), (1379157732,), (1379157733,), (1379157749,), (1379157752,), (1379157776,), (1379157775,), (1379157877,), (1379157879,), (1379158027,), (1379158028,), (1379158202,), (1379158204,), (1379158317,), (1379158318,), (1379158319,), (1379158410,), (1379158411,), (1379158412,), (1379158413,), (1379158414,), (1379158454,), (1379158455,), (1379158456,), (1379158457,), (1379158530,), (1379158531,), (1379158532,), (1379158533,), (1379158534,), (1379158535,), (1379158592,), (1379158593,), (1379158594,), (1379158831,), (1379158832,), (1379158833,), (1379158834,), (1379158835,), (1379158857,), (1379158858,), (1379158859,), (1379158860,), (1379158861,), (1379158862,), (1379158941,), (1379158942,), (1379158943,), (1379159207,), (1379159208,), (1379159338,), (1379159339,), (1379159340,), (1379159391,), (1379159411,), (1379159425,), (1379159545,), (1379159677,), (1379159838,), (1379159839,), (1379159929,), (1379159930,), (1379160026,), (1379160049,), (1379160050,), (1379160218,), (1379160221,), (1379160224,), (1379160227,), (1379160230,), (1379160769,), (1379160770,), (1379160771,), (1379168293,), (1379168591,), (1379168738,), (1379168764,), (1379168765,), (1379168766,), (1379168767,), (1379168984,), (1379168986,), (1379169420,), (1379169937,), (1379169939,), (1379169941,), (1379170394,), (1379170396,), (1379170398,), (1379170739,), (1379170740,), (1379170741,), (1379171012,), (1379171015,), (1379171298,), (1379171299,), (1379171300,), (1379171301,), (1379171406,), (1379171407,), (1379171408,), (1379171443,), (1379171577,), (1379171579,), (1379171672,), (1379171697,), (1379171698,), (1379171699,), (1379171726,), (1379171727,), (1379171744,), (1379171745,), (1379171746,), (1379171747,), (1379171748,), (1379171841,), (1379171845,), (1379171850,), (1379171854,), (1379171961,), (1379171962,), (1379172079,), (1379172203,), (1379172490,), (1379172492,), (1379172665,), (1379172667,), (1379173087,), (1379173089,), (1379173091,), (1379173611,), (1379173616,), (1379173620,), (1379174343,), (1379174346,), (1379174348,), (1379174559,), (1379216908,), (1379217125,), (1379217126,), (1379217127,), (1379217128,), (1379217271,), (1379217272,), (1379217273,), (1379217422,), (1379217424,), (1379217426,), (1379217613,), (1379217615,), (1379217617,), (1379217620,), (1379217622,), (1379217624,), (1379217758,), (1379217759,), (1379217761,), (1379217789,), (1379217817,), (1379217837,), (1379217902,), (1379217903,), (1379217904,), (1379217905,), (1379217949,), (1379217950,), (1379217951,), (1379217952,), (1379217987,), (1379217988,), (1379217989,), (1379217990,), (1379217991,), (1379217992,), (1379218292,), (1379218295,), (1379218298,), (1379218301,), (1379218304,), (1379218307,), (1379218643,), (1379218644,), (1379218645,), (1379218647,), (1379218648,), (1379218778,), (1379218779,), (1379219041,), (1379219043,), (1379219045,), (1379219047,), (1379219049,), (1379219240,), (1379219241,), (1379219242,), (1379219243,), (1379219300,), (1379219301,), (1379219302,), (1379219326,), (1379219441,), (1379219443,), (1379219445,), (1379220096,), (1379220099,), (1379220645,), (1379220643,), (1379221047,), (1379221050,), (1379221055,), (1379221656,), (1379221658,), (1379221660,), (1379221662,), (1379221887,), (1379221888,), (1379222200,), (1379222201,), (1379222477,), (1379222478,), (1379222479,), (1379222622,), (1379222623,), (1379222624,), (1379222672,), (1379222673,), (1379222674,), (1379222675,), (1379222676,), (1379222677,), (1379222773,), (1379222775,), (1379222777,), (1379222955,), (1379222957,), (1379223477,), (1379223480,), (1379223931,), (1379223933,), (1379223935,), (1379224590,), (1379224592,), (1379224594,), (1379224596,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25082025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26202807]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] map_info['map_portfolio_photo'] : {26202807: [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931, 1379223480, 1379223477, 1379222957, 1379222955, 1379222777, 1379222775, 1379222773, 1379222677, 1379222676, 1379222675, 1379222674, 1379222673, 1379222672, 1379222624, 1379222623, 1379222622, 1379222479, 1379222478, 1379222477, 1379222201, 1379222200, 1379221888, 1379221887, 1379221662, 1379221660, 1379221658, 1379221656, 1379221055, 1379221050, 1379221047, 1379220643]} final : True mtd_id 4302 list_pids : [1379224596, 1379224594, 1379224592, 1379224590, 1379223935, 1379223933, 1379223931] Looping around the photos to save general results len do output : 1 /26202807Didn'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, '3589114') ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114') ('4302', None, None, None, None, None, None, None, '3589114') ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '26202807', 'None', None, None, None, None, '3589114'), ('4302', '26202807', '1379224596', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224594', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224592', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379224590', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223935', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223933', None, None, None, None, None, '3589114'), ('4302', '26202807', '1379223931', None, None, None, None, None, '3589114')] time used for this insertion : 0.017499208450317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0430076122283936 time spend to save output : 0.01768350601196289 total time spend for step 5 : 1.0606911182403564 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 (3589114) 1.90user 2.48system 0:07.59elapsed 57%CPU (0avgtext+0avgdata 160660maxresident)k 1112inputs+4448outputs (43major+64162minor)pagefaults 0swaps