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 : 1406307 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 (3897927) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3897927) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623708 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3897927'] with mtr_portfolio_ids : ['27623708'] and first list_photo_ids : [] new path : /proc/1406307/ Name: python3 Umask: 0002 State: R (running) Tgid: 1406307 Ngid: 0 Pid: 1406307 PPid: 1406306 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1406307 NSpid: 1406307 NSpgid: 1405023 NSsid: 1405023 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98996 kB VmRSS: 98996 kB RssAnon: 59840 kB RssFile: 39156 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 47 nonvoluntary_ctxt_switches: 83 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1406307', 'Ngid': '0', 'Pid': '1406307', 'PPid': '1406306', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1406307', 'NSpid': '1406307', 'NSpgid': '1405023', 'NSsid': '1405023', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98996 kB', 'VmRSS': '98996 kB', 'RssAnon': '59840 kB', 'RssFile': '39156 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '47', 'nonvoluntary_ctxt_switches': '83'} ('datou_batch_current', '1406307', '1106856', '0', '1106856', '865608', '98996', b'', 'marlene', '3897927') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27623708) 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 (3897927 ) ) 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 (27623708) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1388294318, 'portfolio_id': 27623708}, {'photo_id': 1388294313, 'portfolio_id': 27623708}, {'photo_id': 1388294308, 'portfolio_id': 27623708}, {'photo_id': 1388294304, 'portfolio_id': 27623708}, {'photo_id': 1388294302, 'portfolio_id': 27623708}, {'photo_id': 1388294263, 'portfolio_id': 27623708}, {'photo_id': 1388294260, 'portfolio_id': 27623708}, {'photo_id': 1388294256, 'portfolio_id': 27623708}, {'photo_id': 1388294252, 'portfolio_id': 27623708}, {'photo_id': 1388294250, 'portfolio_id': 27623708}, {'photo_id': 1388294244, 'portfolio_id': 27623708}, {'photo_id': 1388294198, 'portfolio_id': 27623708}, {'photo_id': 1388294195, 'portfolio_id': 27623708}, {'photo_id': 1388294190, 'portfolio_id': 27623708}, {'photo_id': 1388294188, 'portfolio_id': 27623708}, {'photo_id': 1388294186, 'portfolio_id': 27623708}, {'photo_id': 1388294165, 'portfolio_id': 27623708}, {'photo_id': 1388294162, 'portfolio_id': 27623708}, {'photo_id': 1388294158, 'portfolio_id': 27623708}, {'photo_id': 1388294155, 'portfolio_id': 27623708}, {'photo_id': 1388294153, 'portfolio_id': 27623708}, {'photo_id': 1388294147, 'portfolio_id': 27623708}, {'photo_id': 1388294079, 'portfolio_id': 27623708}, {'photo_id': 1388294067, 'portfolio_id': 27623708}, {'photo_id': 1388294014, 'portfolio_id': 27623708}, {'photo_id': 1388294012, 'portfolio_id': 27623708}, {'photo_id': 1388294007, 'portfolio_id': 27623708}, {'photo_id': 1388294000, 'portfolio_id': 27623708}, {'photo_id': 1388293802, 'portfolio_id': 27623708}, {'photo_id': 1388293731, 'portfolio_id': 27623708}, {'photo_id': 1388293729, 'portfolio_id': 27623708}, {'photo_id': 1388293716, 'portfolio_id': 27623708}, {'photo_id': 1388293624, 'portfolio_id': 27623708}, {'photo_id': 1388293621, 'portfolio_id': 27623708}, {'photo_id': 1388293150, 'portfolio_id': 27623708}, {'photo_id': 1388293148, 'portfolio_id': 27623708}, {'photo_id': 1388293146, 'portfolio_id': 27623708}, {'photo_id': 1388293145, 'portfolio_id': 27623708}, {'photo_id': 1388293142, 'portfolio_id': 27623708}, {'photo_id': 1388293141, 'portfolio_id': 27623708}, {'photo_id': 1388293036, 'portfolio_id': 27623708}, {'photo_id': 1388292759, 'portfolio_id': 27623708}, {'photo_id': 1388292711, 'portfolio_id': 27623708}, {'photo_id': 1388292119, 'portfolio_id': 27623708}, {'photo_id': 1388291892, 'portfolio_id': 27623708}, {'photo_id': 1388291890, 'portfolio_id': 27623708}, {'photo_id': 1388291825, 'portfolio_id': 27623708}, {'photo_id': 1388291788, 'portfolio_id': 27623708}, {'photo_id': 1388291785, 'portfolio_id': 27623708}, {'photo_id': 1388291783, 'portfolio_id': 27623708}, {'photo_id': 1388291778, 'portfolio_id': 27623708}, {'photo_id': 1388291506, 'portfolio_id': 27623708}, {'photo_id': 1388291252, 'portfolio_id': 27623708}, {'photo_id': 1388291248, 'portfolio_id': 27623708}, {'photo_id': 1388291246, 'portfolio_id': 27623708}, {'photo_id': 1388291243, 'portfolio_id': 27623708}, {'photo_id': 1388291241, 'portfolio_id': 27623708}, {'photo_id': 1388290893, 'portfolio_id': 27623708}, {'photo_id': 1388290097, 'portfolio_id': 27623708}, {'photo_id': 1388290094, 'portfolio_id': 27623708}, {'photo_id': 1388290091, 'portfolio_id': 27623708}, {'photo_id': 1388290088, 'portfolio_id': 27623708}, {'photo_id': 1388290024, 'portfolio_id': 27623708}, {'photo_id': 1388290009, 'portfolio_id': 27623708}, {'photo_id': 1388289958, 'portfolio_id': 27623708}, {'photo_id': 1388289948, 'portfolio_id': 27623708}, {'photo_id': 1388289947, 'portfolio_id': 27623708}, {'photo_id': 1388289945, 'portfolio_id': 27623708}, {'photo_id': 1388289924, 'portfolio_id': 27623708}, {'photo_id': 1388289921, 'portfolio_id': 27623708}, {'photo_id': 1388289917, 'portfolio_id': 27623708}, {'photo_id': 1388289914, 'portfolio_id': 27623708}, {'photo_id': 1388289913, 'portfolio_id': 27623708}] map_portfolio_id_photo_id: {27623708: [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244, 1388294198, 1388294195, 1388294190, 1388294188, 1388294186, 1388294165, 1388294162, 1388294158, 1388294155, 1388294153, 1388294147, 1388294079, 1388294067, 1388294014, 1388294012, 1388294007, 1388294000, 1388293802, 1388293731, 1388293729, 1388293716, 1388293624, 1388293621, 1388293150, 1388293148, 1388293146, 1388293145, 1388293142, 1388293141, 1388293036, 1388292759, 1388292711, 1388292119, 1388291892, 1388291890, 1388291825, 1388291788, 1388291785, 1388291783, 1388291778, 1388291506, 1388291252, 1388291248, 1388291246, 1388291243, 1388291241, 1388290893, 1388290097, 1388290094, 1388290091, 1388290088, 1388290024, 1388290009, 1388289958, 1388289948, 1388289947, 1388289945, 1388289924, 1388289921, 1388289917, 1388289914, 1388289913]} ##### 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.05271553993225098 #### 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 Thu Oct 9 05:58: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 (27623708) 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 : 27623708 get user id for portfolio 27623708 get sub ptf for main ptf 27623708, type 3726 and hashtags ['Teint_Dans_La_Masse', 'kraft', 'metal', 'flou', 'cartonnette', 'Carton_brun', 'autre_refus', 'environnement', 'papier', 'Carton_gris', 'plastique', 'mal_croppe'] 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`=27623708 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','metal','flou','cartonnette','Carton_brun','autre_refus','environnement','papier','Carton_gris','plastique','mal_croppe')) 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`=27623708 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','metal','flou','cartonnette','Carton_brun','autre_refus','environnement','papier','Carton_gris','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27623708, 'sub_port_id': 27623724, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638121, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'metal': {'main_port_id': 27623708, 'sub_port_id': 27623725, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638122, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'plastique': {'main_port_id': 27623708, 'sub_port_id': 27623727, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638123, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 27623708, 'sub_port_id': 27623728, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638124, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'environnement': {'main_port_id': 27623708, 'sub_port_id': 27623729, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638125, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'cartonnette': {'main_port_id': 27623708, 'sub_port_id': 27623730, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638126, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'kraft': {'main_port_id': 27623708, 'sub_port_id': 27623731, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638127, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'flou': {'main_port_id': 27623708, 'sub_port_id': 27623732, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638128, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'autre_refus': {'main_port_id': 27623708, 'sub_port_id': 27623733, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638129, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'mal_croppe': {'main_port_id': 27623708, 'sub_port_id': 27623734, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638130, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'Carton_brun': {'main_port_id': 27623708, 'sub_port_id': 27623735, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638131, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}, 'Carton_gris': {'main_port_id': 27623708, 'sub_port_id': 27623736, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638132, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27623724 , 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=27623708 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 (27623724) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623725 , 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=27623708 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 (27623725) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623727 , 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=27623708 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 (27623727) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623728 , 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=27623708 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 (27623728) result : ((1388294316,), (1388294317,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623729 , 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=27623708 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 (27623729) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623730 , 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=27623708 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 (27623730) result : ((1388294322,), (1388294323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623731 , 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=27623708 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 (27623731) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623732 , 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=27623708 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 (27623732) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623733 , 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=27623708 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 (27623733) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623734 , 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=27623708 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 (27623734) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623735 , 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=27623708 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 (27623735) result : ((1388294324,), (1388294325,), (1388294326,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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 27623736 , 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=27623708 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 (27623736) result : ((1388294319,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27623708) result : ((1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) 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 (1388294000) 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`=27623708 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','metal','flou','cartonnette','Carton_brun','autre_refus','environnement','papier','Carton_gris','plastique','mal_croppe')) 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`=27623708 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','kraft','metal','flou','cartonnette','Carton_brun','autre_refus','environnement','papier','Carton_gris','plastique','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 27623708, 'sub_port_id': 27623738, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638133, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'metal': {'main_port_id': 27623708, 'sub_port_id': 27623739, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638134, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'plastique': {'main_port_id': 27623708, 'sub_port_id': 27623740, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638135, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 27623708, 'sub_port_id': 27623741, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638136, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'environnement': {'main_port_id': 27623708, 'sub_port_id': 27623742, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638137, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'cartonnette': {'main_port_id': 27623708, 'sub_port_id': 27623743, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638138, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'kraft': {'main_port_id': 27623708, 'sub_port_id': 27623744, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638139, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'flou': {'main_port_id': 27623708, 'sub_port_id': 27623745, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638140, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'autre_refus': {'main_port_id': 27623708, 'sub_port_id': 27623746, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638141, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'mal_croppe': {'main_port_id': 27623708, 'sub_port_id': 27623747, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638142, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'Carton_brun': {'main_port_id': 27623708, 'sub_port_id': 27623748, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638143, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 49, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}, 'Carton_gris': {'main_port_id': 27623708, 'sub_port_id': 27623749, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18638144, 'last_updated_at': datetime.datetime(2025, 10, 9, 5, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 10, 9, 5, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 10, 9, 5, 49, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623738,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623724 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623739,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623725 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623740,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623727 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623741,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623728 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623742,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623729 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623743,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623730 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623744,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623731 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623745,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623732 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623746,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623733 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623747,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623734 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623748,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623735 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27623749,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27623736 lien utilise dans velours : https://marlene.fotonower.com/velours/27623738,27623739,27623740,27623741,27623742,27623743,27623744,27623745,27623746,27623747,27623748,27623749?tags=papier,metal,plastique,Teint_Dans_La_Masse,environnement,cartonnette,kraft,flou,autre_refus,mal_croppe,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27623708]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] map_info['map_portfolio_photo'] : {27623708: [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244, 1388294198, 1388294195, 1388294190, 1388294188, 1388294186, 1388294165, 1388294162, 1388294158, 1388294155, 1388294153, 1388294147, 1388294079, 1388294067, 1388294014, 1388294012, 1388294007, 1388294000, 1388293802, 1388293731, 1388293729, 1388293716, 1388293624, 1388293621, 1388293150, 1388293148, 1388293146, 1388293145, 1388293142, 1388293141, 1388293036, 1388292759, 1388292711, 1388292119, 1388291892, 1388291890, 1388291825, 1388291788, 1388291785, 1388291783, 1388291778, 1388291506, 1388291252, 1388291248, 1388291246, 1388291243, 1388291241, 1388290893, 1388290097, 1388290094, 1388290091, 1388290088, 1388290024, 1388290009, 1388289958, 1388289948, 1388289947, 1388289945, 1388289924, 1388289921, 1388289917, 1388289914, 1388289913]} final : False mtd_id 4302 list_pids : [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] Looping around the photos to save general results len do output : 1 /27623708. 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, '3897927') ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27623708', "{'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736}", None, None, None, None, '3897927'), ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927')] time used for this insertion : 0.03734135627746582 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6493005752563477 time spend to save output : 0.03772759437561035 total time spend for step 1 : 1.687028169631958 step2:final Thu Oct 9 05:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (27623708) 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 27623708 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1388289924,1388289921,1388289917,1388289914,1388289913,1388290024,1388290009,1388289958,1388289948,1388289947,1388289945,1388290097,1388290094,1388290091,1388290088,1388293036,1388291252,1388291248,1388292759,1388291246,1388292711,1388291243,1388292119,1388291892,1388291241,1388291890,1388290893,1388291825,1388291788,1388291785,1388291783,1388291778,1388291506,1388294147,1388293150,1388293148,1388293146,1388294079,1388293145,1388293802,1388293142,1388293141,1388293731,1388293729,1388293716,1388293624,1388293621,1388294067,1388294014,1388294012,1388294007,1388294000,1388294165,1388294162,1388294158,1388294155,1388294153,1388294198,1388294195,1388294190,1388294188,1388294186,1388294263,1388294260,1388294256,1388294252,1388294250,1388294244,1388294318,1388294313,1388294308,1388294304,1388294302); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27623708]) Inside saveOutput : final : False verbose : True original output for save of step final : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} new output for save of step final : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] map_info['map_portfolio_photo'] : {27623708: [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244, 1388294198, 1388294195, 1388294190, 1388294188, 1388294186, 1388294165, 1388294162, 1388294158, 1388294155, 1388294153, 1388294147, 1388294079, 1388294067, 1388294014, 1388294012, 1388294007, 1388294000, 1388293802, 1388293731, 1388293729, 1388293716, 1388293624, 1388293621, 1388293150, 1388293148, 1388293146, 1388293145, 1388293142, 1388293141, 1388293036, 1388292759, 1388292711, 1388292119, 1388291892, 1388291890, 1388291825, 1388291788, 1388291785, 1388291783, 1388291778, 1388291506, 1388291252, 1388291248, 1388291246, 1388291243, 1388291241, 1388290893, 1388290097, 1388290094, 1388290091, 1388290088, 1388290024, 1388290009, 1388289958, 1388289948, 1388289947, 1388289945, 1388289924, 1388289921, 1388289917, 1388289914, 1388289913]} final : False mtd_id 4302 list_pids : [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] Looping around the photos to save general results len do output : 11 /1388294318.Didn't retrieve data . /1388294313.Didn't retrieve data . /1388294308.Didn't retrieve data . /1388294304.Didn't retrieve data . /1388294302.Didn't retrieve data . /1388294263.Didn't retrieve data . /1388294260.Didn't retrieve data . /1388294256.Didn't retrieve data . /1388294252.Didn't retrieve data . /1388294250.Didn't retrieve data . /1388294244.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, '3897927') ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '27623708', '1388294318', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294313', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294308', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294304', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294302', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294263', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294260', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294256', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294252', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294250', '0.015224518067805663', None, None, None, None, '3897927'), ('4302', '27623708', '1388294244', '0.015224518067805663', None, None, None, None, '3897927')] time used for this insertion : 0.036733150482177734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24446821212768555 time spend to save output : 0.03747224807739258 total time spend for step 2 : 0.2819404602050781 step3:velours_tree Thu Oct 9 05:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {27623708: [{'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736}]} input_args_next_step : {27623708: ()} output_args : {27623708: [{'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736}]} args : 27623708 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 : ({'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27623708) 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([27623708]) 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.2825925350189209 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.2826414108276367 step4:send_mail_cod Thu Oct 9 05:59: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 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 : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} input_args_next_step : {1388294318: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294318 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294313 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294308 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294304 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294302 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294263 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294260 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294256 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294252 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294250 depend.output_id : 0 input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ()} output_args : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',)} args : 1388294244 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 : {27623708: [{'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736}]} input_args_next_step : {1388294318: ('0.015224518067805663',), 1388294313: ('0.015224518067805663',), 1388294308: ('0.015224518067805663',), 1388294304: ('0.015224518067805663',), 1388294302: ('0.015224518067805663',), 1388294263: ('0.015224518067805663',), 1388294260: ('0.015224518067805663',), 1388294256: ('0.015224518067805663',), 1388294252: ('0.015224518067805663',), 1388294250: ('0.015224518067805663',), 1388294244: ('0.015224518067805663',), 27623708: ()} output_args : {27623708: [{'papier': 27623724, 'metal': 27623725, 'plastique': 27623727, 'Teint_Dans_La_Masse': 27623728, 'environnement': 27623729, 'cartonnette': 27623730, 'kraft': 27623731, 'flou': 27623732, 'autre_refus': 27623733, 'mal_croppe': 27623734, 'Carton_brun': 27623735, 'Carton_gris': 27623736}]} args : 27623708 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 :12, first value : ('0.015224518067805663',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27623708) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1388294318,1388294313,1388294308,1388294304,1388294302,1388294263,1388294260,1388294256,1388294252,1388294250,1388294244) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1388294244 begin to download photo : 1388294256 begin to download photo : 1388294302 begin to download photo : 1388294313 download finish for photo 1388294313 begin to download photo : 1388294318 download finish for photo 1388294256 begin to download photo : 1388294260 download finish for photo 1388294244 begin to download photo : 1388294250 download finish for photo 1388294302 begin to download photo : 1388294304 download finish for photo 1388294318 download finish for photo 1388294260 begin to download photo : 1388294263 download finish for photo 1388294250 begin to download photo : 1388294252 download finish for photo 1388294304 begin to download photo : 1388294308 download finish for photo 1388294308 download finish for photo 1388294263 download finish for photo 1388294252 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette276237251759982341/ imagette276237271759982341/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P27623708_09-10-2025_05_59_01.pdf 27623725 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623725 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237251759982341 27623727 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623727 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237271759982341 27623730 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623730 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388294322: '1759982225_684718_1388291785_8831537b294a5c40458998a699f4e358_rle_crop_3989757395_0.png', 1388294323: '1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/45bf199922ce66472c2fe687f88d336f_57244657.png change filename to text .imagette276237301759982341/ imagette276237301759982341/1759982225_684718_1388291785_8831537b294a5c40458998a699f4e358_rle_crop_3989757395_0.png.png imagette276237301759982341/1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757410_0.png.png imagette276237311759982342/ imagette276237321759982342/ imagette276237331759982342/ imagette276237341759982342/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/66211c8c3502a23f8c4b163747eb136e_8465910.png imagette276237301759982341 27623731 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623731 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237311759982342 27623732 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623732 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237321759982342 27623733 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623733 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237331759982342 27623734 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623734 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette276237341759982342 27623728 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623728 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388294316: '1759982225_684718_1388291778_a2ea4c0c1ea0a3f1e0d127f6f8a3d1d2_rle_crop_3989757432_0.png', 1388294317: '1759982225_684718_1388291506_48b312021f4583465fe94822fbb520a7_rle_crop_3989757440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/e4e60be8627ade2fd71e8f2a178c37e5_70962416.png change filename to text .imagette276237281759982342/ imagette276237281759982342/1759982225_684718_1388291778_a2ea4c0c1ea0a3f1e0d127f6f8a3d1d2_rle_crop_3989757432_0.png.png imagette276237281759982342/1759982225_684718_1388291506_48b312021f4583465fe94822fbb520a7_rle_crop_3989757440_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/3bf557581ffad155d77fb64307b954ba_16039142.png imagette276237281759982342 27623735 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623735 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388294324: '1759982225_684718_1388291785_8831537b294a5c40458998a699f4e358_rle_crop_3989757402_0.png', 1388294325: '1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757416_0.png', 1388294326: '1759982225_684718_1388291778_a2ea4c0c1ea0a3f1e0d127f6f8a3d1d2_rle_crop_3989757433_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/ebe62d1fbd193b58efb75ec920367116_70271277.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/b86c4473f24ab6671d1d50d4d87a4f14_61562039.png change filename to text .imagette276237351759982342/ imagette276237351759982342/1759982225_684718_1388291778_a2ea4c0c1ea0a3f1e0d127f6f8a3d1d2_rle_crop_3989757433_0.png.png imagette276237351759982342/1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757416_0.png.png imagette276237351759982342/1759982225_684718_1388291785_8831537b294a5c40458998a699f4e358_rle_crop_3989757402_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/7aad66130f1da21695b617e81cc3c99e_82204059.png imagette276237351759982342 27623736 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623736 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1388294319: '1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757417_0.png'} change filename to text .imagette276237361759982343/ imagette276237361759982343/1759982225_684718_1388291783_acc7dfe344805aa1a4f9a279e379f7b7_rle_crop_3989757417_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/e47a6d83496e6c579a67c1eb743d9b04_33873374.png imagette276237361759982343 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27623708 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27623738,27623739,27623740,27623741,27623742,27623743,27623744,27623745,27623746,27623747,27623748,27623749?tags=papier,metal,plastique,Teint_Dans_La_Masse,environnement,cartonnette,kraft,flou,autre_refus,mal_croppe,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1388294318] : ('0.015224518067805663',) no score found for photo 1388294318 We are sending mail with results at report@fotonower.com args[1388294313] : ('0.015224518067805663',) no score found for photo 1388294313 We are sending mail with results at report@fotonower.com args[1388294308] : ('0.015224518067805663',) no score found for photo 1388294308 We are sending mail with results at report@fotonower.com args[1388294304] : ('0.015224518067805663',) no score found for photo 1388294304 We are sending mail with results at report@fotonower.com args[1388294302] : ('0.015224518067805663',) no score found for photo 1388294302 We are sending mail with results at report@fotonower.com args[1388294263] : ('0.015224518067805663',) no score found for photo 1388294263 We are sending mail with results at report@fotonower.com args[1388294260] : ('0.015224518067805663',) no score found for photo 1388294260 We are sending mail with results at report@fotonower.com args[1388294256] : ('0.015224518067805663',) no score found for photo 1388294256 We are sending mail with results at report@fotonower.com args[1388294252] : ('0.015224518067805663',) no score found for photo 1388294252 We are sending mail with results at report@fotonower.com args[1388294250] : ('0.015224518067805663',) no score found for photo 1388294250 We are sending mail with results at report@fotonower.com args[1388294244] : ('0.015224518067805663',) no score found for photo 1388294244 We are sending mail with results at report@fotonower.com refus_total : 0.015224518067805663 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623708 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_P27623708_09-10-2025_05_59_01.pdf results_Auto_P27623708_09-10-2025_05_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_05_59_01.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','27623708','results_Auto_P27623708_09-10-2025_05_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_05_59_01.pdf','pdf','','0.12','0.015224518067805663') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27623708]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] map_info['map_portfolio_photo'] : {27623708: [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244, 1388294198, 1388294195, 1388294190, 1388294188, 1388294186, 1388294165, 1388294162, 1388294158, 1388294155, 1388294153, 1388294147, 1388294079, 1388294067, 1388294014, 1388294012, 1388294007, 1388294000, 1388293802, 1388293731, 1388293729, 1388293716, 1388293624, 1388293621, 1388293150, 1388293148, 1388293146, 1388293145, 1388293142, 1388293141, 1388293036, 1388292759, 1388292711, 1388292119, 1388291892, 1388291890, 1388291825, 1388291788, 1388291785, 1388291783, 1388291778, 1388291506, 1388291252, 1388291248, 1388291246, 1388291243, 1388291241, 1388290893, 1388290097, 1388290094, 1388290091, 1388290088, 1388290024, 1388290009, 1388289958, 1388289948, 1388289947, 1388289945, 1388289924, 1388289921, 1388289917, 1388289914, 1388289913]} final : False mtd_id 4302 list_pids : [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] 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, '3897927') ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '27623708', '1388294318', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927')] time used for this insertion : 0.036900997161865234 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3147313594818115 time spend to save output : 0.03713846206665039 total time spend for step 4 : 3.351869821548462 step5:split_time_score Thu Oct 9 05:59:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27623708'] 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 : [('27623708',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27623708) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1388294313: {'path': 'temp/1759982341_1406307_1388294313_1c3e4a87f1f2e6a39a723d9d60e8e52d.jpg', 'extension': 'jpg'}, 1388294318: {'path': 'temp/1759982341_1406307_1388294318_4f9122eaec51a95a45d507b55ced6480.jpg', 'extension': 'jpg'}, 1388294302: {'path': 'temp/1759982341_1406307_1388294302_180f4ab13e9ce8c2918c87d9fa21c181.jpg', 'extension': 'jpg'}, 1388294304: {'path': 'temp/1759982341_1406307_1388294304_5f98fbe516dcb207287c5c17dc2d4812.jpg', 'extension': 'jpg'}, 1388294308: {'path': 'temp/1759982341_1406307_1388294308_9c500288e122106b4a61214687dbc27e.jpg', 'extension': 'jpg'}, 1388294256: {'path': 'temp/1759982341_1406307_1388294256_aa466cef2f7fe031a7be081445141e85.jpg', 'extension': 'jpg'}, 1388294260: {'path': 'temp/1759982341_1406307_1388294260_8d3f401b377e58796d99a41f680ca5e7.jpg', 'extension': 'jpg'}, 1388294263: {'path': 'temp/1759982341_1406307_1388294263_a6b17972b0124efe8cbc1cb73aa9accc.jpg', 'extension': 'jpg'}, 1388294244: {'path': 'temp/1759982341_1406307_1388294244_192c686f34c22d761bf092244f05f696.jpg', 'extension': 'jpg'}, 1388294250: {'path': 'temp/1759982341_1406307_1388294250_b45ae4aaae144b2c613dfc1093bf11b9.jpg', 'extension': 'jpg'}, 1388294252: {'path': 'temp/1759982341_1406307_1388294252_2e726640bf278342d9e26aafef0396e2.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 = 27623708; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27623708 group by h (('05', 73),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27623708 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 (27623708) 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 (27623708) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09102025 27623708 Nombre de photos uploadées : 73 / 23040 (0%) 09102025 27623708 Nombre de photos taguées (types de déchets): 0 / 73 (0%) 09102025 27623708 Nombre de photos taguées (volume) : 0 / 73 (0%) [{'photo_id': 1388289924, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/0871733317461b40bf3b65bf926e6759.jpg', 'username': None, 'uploaded_at': 1759981567, 'text': 'image_09102025_05_45_03_9126.jpg'}, {'photo_id': 1388289921, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/1392bfebb8ebf3763425120f9168f34c.jpg', 'username': None, 'uploaded_at': 1759981567, 'text': 'image_09102025_05_45_13_10138.jpg'}, {'photo_id': 1388289917, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/8102e8fd502f38bcaea789284a905219.jpg', 'username': None, 'uploaded_at': 1759981567, 'text': 'image_09102025_05_45_23_10141.jpg'}, {'photo_id': 1388289914, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/9/21389e90f9fee3c97c5e7b0e2b55f86b.jpg', 'username': None, 'uploaded_at': 1759981567, 'text': 'image_09102025_05_45_33_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005196809768676758 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27623708, '2025-10-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2413509,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.655587911605835 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= 2413509 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27616397, 'dashboard_result_id': 16161293, '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_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27616511, 'dashboard_result_id': 16161294, '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_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27616659, 'dashboard_result_id': 16161295, '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_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27616991, 'dashboard_result_id': 16161296, '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_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27618012, 'dashboard_result_id': 16161298, '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_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27618241, 'dashboard_result_id': 16161299, '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_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27618510, 'dashboard_result_id': 16161300, '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_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27618804, 'dashboard_result_id': 16161301, '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_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27619103, 'dashboard_result_id': 16161302, '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_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27619532, 'dashboard_result_id': 16161303, '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_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27620022, 'dashboard_result_id': 16161304, '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_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27620507, 'dashboard_result_id': 16161305, '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_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27620936, 'dashboard_result_id': 16161306, '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_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27621421, 'dashboard_result_id': 16161307, '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_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27621858, 'dashboard_result_id': 16161308, '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_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27622985, 'dashboard_result_id': 16161309, '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_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27623042, 'dashboard_result_id': 16161310, '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_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27623172, 'dashboard_result_id': 16161311, '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_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}"}, {'dashboat_entry_day': 2413509, 'dashboard_run_id': 2421123, 'mtr_portfolio_id': 27623708, 'dashboard_result_id': 16161312, '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_P27623708_09-10-2025_05_57_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, '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 = 27616397 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 = 27616397 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 = 27616397 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616397 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 = 27616397 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 = 27616397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616397_09-10-2025_00_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616397 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_P27616397_09-10-2025_00_19_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616411, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616412, 'pht': 3726}}" where mtr_portfolio_id = 27616397 and dashboard_run_id = 2421123 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 = 27616511 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 = 27616511 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 = 27616511 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616511 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 = 27616511 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 = 27616511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616511_09-10-2025_00_35_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616511 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_P27616511_09-10-2025_00_35_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616517, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616520, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616523, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616526, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616528, 'pht': 3726}}" where mtr_portfolio_id = 27616511 and dashboard_run_id = 2421123 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 = 27616659 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 = 27616659 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 = 27616659 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616659 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 = 27616659 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 = 27616659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616659_09-10-2025_00_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616659 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_P27616659_09-10-2025_00_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27616673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27616674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27616676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27616677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27616678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27616679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27616680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27616681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27616682, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27616683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27616684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27616685, 'pht': 3726}}" where mtr_portfolio_id = 27616659 and dashboard_run_id = 2421123 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 = 27616991 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 = 27616991 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 = 27616991 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27616991 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 = 27616991 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 = 27616991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27616991_09-10-2025_01_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27616991 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_P27616991_09-10-2025_01_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27617004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27617005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27617006, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27617007, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27617009, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27617010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27617011, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27617012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27617013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27617014, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27617015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27617016, 'pht': 3726}}" where mtr_portfolio_id = 27616991 and dashboard_run_id = 2421123 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 = 27618012 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 = 27618012 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 = 27618012 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618012 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 = 27618012 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 = 27618012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618012_09-10-2025_01_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618012 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_P27618012_09-10-2025_01_47_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618034, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618037, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618042, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618044, 'pht': 3726}}" where mtr_portfolio_id = 27618012 and dashboard_run_id = 2421123 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 = 27618241 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 = 27618241 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 = 27618241 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618241 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 = 27618241 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 = 27618241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618241_09-10-2025_02_03_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618241 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_P27618241_09-10-2025_02_03_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618254, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618255, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618259, 'pht': 3726}}" where mtr_portfolio_id = 27618241 and dashboard_run_id = 2421123 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 = 27618510 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 = 27618510 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 = 27618510 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618510 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 = 27618510 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 = 27618510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618510_09-10-2025_02_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618510 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_P27618510_09-10-2025_02_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618516, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618518, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618519, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618521, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618527, 'pht': 3726}}" where mtr_portfolio_id = 27618510 and dashboard_run_id = 2421123 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 = 27618804 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 = 27618804 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 = 27618804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27618804 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 = 27618804 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 = 27618804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27618804_09-10-2025_02_37_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27618804 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_P27618804_09-10-2025_02_37_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27618816, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27618817, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27618818, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27618819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27618820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27618821, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27618822, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27618823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27618824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27618825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27618826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27618827, 'pht': 3726}}" where mtr_portfolio_id = 27618804 and dashboard_run_id = 2421123 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 = 27619103 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 = 27619103 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 = 27619103 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619103 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 = 27619103 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 = 27619103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619103_09-10-2025_02_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619103 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_P27619103_09-10-2025_02_47_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27619136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619138, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619148, 'pht': 3726}}" where mtr_portfolio_id = 27619103 and dashboard_run_id = 2421123 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 = 27619532 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 = 27619532 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 = 27619532 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27619532 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 = 27619532 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 = 27619532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27619532_09-10-2025_03_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27619532 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_P27619532_09-10-2025_03_05_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27619559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27619560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27619562, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27619563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27619564, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27619565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27619566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27619567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27619568, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27619569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27619570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27619571, 'pht': 3726}}" where mtr_portfolio_id = 27619532 and dashboard_run_id = 2421123 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 = 27620022 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 = 27620022 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 = 27620022 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620022 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 = 27620022 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 = 27620022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620022_09-10-2025_03_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620022 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_P27620022_09-10-2025_03_19_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620048, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620049, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620050, 'pht': 3726}}" where mtr_portfolio_id = 27620022 and dashboard_run_id = 2421123 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 = 27620507 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 = 27620507 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 = 27620507 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620507 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 = 27620507 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 = 27620507 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620507_09-10-2025_03_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620507 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_P27620507_09-10-2025_03_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620537, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620538, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620541, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620546, 'pht': 3726}}" where mtr_portfolio_id = 27620507 and dashboard_run_id = 2421123 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 = 27620936 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 = 27620936 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 = 27620936 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27620936 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 = 27620936 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 = 27620936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27620936_09-10-2025_03_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27620936 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_P27620936_09-10-2025_03_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27620965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27620966, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27620967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27620968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27620969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27620970, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27620971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27620972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27620973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27620974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27620975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27620976, 'pht': 3726}}" where mtr_portfolio_id = 27620936 and dashboard_run_id = 2421123 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 = 27621421 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 = 27621421 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 = 27621421 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621421 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 = 27621421 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 = 27621421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621421_09-10-2025_04_05_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621421 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_P27621421_09-10-2025_04_05_04.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621449, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621454, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621455, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621456, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621457, 'pht': 3726}}" where mtr_portfolio_id = 27621421 and dashboard_run_id = 2421123 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 = 27621858 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 = 27621858 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 = 27621858 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27621858 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 = 27621858 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 = 27621858 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27621858_09-10-2025_05_41_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27621858 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_P27621858_09-10-2025_05_41_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27621886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27621887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27621888, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27621889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27621890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27621891, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27621892, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27621893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27621894, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27621895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27621896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27621897, 'pht': 3726}}" where mtr_portfolio_id = 27621858 and dashboard_run_id = 2421123 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 = 27622985 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 = 27622985 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 = 27622985 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 27622985 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 = 27622985 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 = 27622985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27622985_09-10-2025_05_17_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27622985 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_P27622985_09-10-2025_05_17_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27622990, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27622991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27622992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27622993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27622994, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27622995, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27622996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27622997, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27622998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27622999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623001, 'pht': 3726}}" where mtr_portfolio_id = 27622985 and dashboard_run_id = 2421123 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 = 27623042 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': 3897498, 'mtr_portfolio_id': 27623042, 'created_at': datetime.datetime(2025, 10, 9, 5, 37, 5), 'result': '0.054959480903174554', 'result_long': None, 'result_double': None}] Qualite : 0.054959480903174554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623042 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_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, 'pht': 3726}}" where mtr_portfolio_id = 27623042 and dashboard_run_id = 2421123 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`=27623042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16161310, 0.054959480903174554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623042_09-10-2025_05_37_05.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623052, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623055, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623056, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623059, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623060, '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 = 27623172 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': 3897621, 'mtr_portfolio_id': 27623172, 'created_at': datetime.datetime(2025, 10, 9, 5, 49), 'result': '0.034426929585649114', 'result_long': None, 'result_double': None}] Qualite : 0.034426929585649114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623172 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623172 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_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, 'pht': 3726}}" where mtr_portfolio_id = 27623172 and dashboard_run_id = 2421123 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`=27623172 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16161311, 0.034426929585649114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623172_09-10-2025_05_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623188, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27623192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623194, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623197, '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 = 27623708 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': 3897927, 'mtr_portfolio_id': 27623708, 'created_at': datetime.datetime(2025, 10, 9, 5, 59), 'result': '0.015224518067805663', 'result_long': None, 'result_double': None}] Qualite : 0.015224518067805663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27623708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_05_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27623708 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_P27623708_09-10-2025_05_59_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}" where mtr_portfolio_id = 27623708 and dashboard_run_id = 2421123 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`=27623708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16161312, 0.015224518067805663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27623708_09-10-2025_05_59_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27623724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27623725, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27623727, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27623728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27623729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27623730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27623731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27623732, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27623733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27623734, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27623735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27623736, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27616397,27616511,27616659,27616991,27618012,27618241,27618510,27618804,27619103,27619532,27620022,27620507,27620936,27621421,27621858,27622985,27623042,27623172,27623708) result : ((1388277422,), (1388277424,), (1388277426,), (1388277449,), (1388277450,), (1388277452,), (1388277458,), (1388277459,), (1388277461,), (1388277465,), (1388277469,), (1388277478,), (1388277480,), (1388277482,), (1388277498,), (1388277499,), (1388277500,), (1388277502,), (1388277505,), (1388277518,), (1388277520,), (1388277522,), (1388277525,), (1388277542,), (1388277544,), (1388277547,), (1388277550,), (1388277553,), (1388277562,), (1388277564,), (1388277567,), (1388277585,), (1388277592,), (1388277607,), (1388277646,), (1388277648,), (1388277649,), (1388277668,), (1388277669,), (1388277670,), (1388277674,), (1388277678,), (1388277681,), (1388277688,), (1388277690,), (1388277693,), (1388277696,), (1388277699,), (1388277702,), (1388277707,), (1388277709,), (1388277713,), (1388277716,), (1388277718,), (1388277719,), (1388277724,), (1388277730,), (1388277733,), (1388277736,), (1388277740,), (1388277748,), (1388277768,), (1388277772,), (1388277776,), (1388277779,), (1388277782,), (1388277784,), (1388277786,), (1388277789,), (1388277804,), (1388277805,), (1388277839,), (1388277820,), (1388277823,), (1388277828,), (1388277832,), (1388277837,), (1388277846,), (1388277847,), (1388277848,), (1388277850,), (1388277854,), (1388277858,), (1388277885,), (1388277887,), (1388277889,), (1388277914,), (1388277915,), (1388277916,), (1388277918,), (1388277930,), (1388277932,), (1388277934,), (1388277938,), (1388277957,), (1388277958,), (1388277960,), (1388277963,), (1388277966,), (1388277969,), (1388277978,), (1388277981,), (1388277984,), (1388277987,), (1388277991,), (1388277993,), (1388277999,), (1388278001,), (1388278020,), (1388278028,), (1388278043,), (1388278051,), (1388278055,), (1388278056,), (1388278058,), (1388278060,), (1388278062,), (1388278064,), (1388278068,), (1388278071,), (1388278074,), (1388278077,), (1388278094,), (1388278099,), (1388278101,), (1388278105,), (1388278109,), (1388278120,), (1388278122,), (1388278124,), (1388278128,), (1388278141,), (1388278142,), (1388278146,), (1388278151,), (1388278155,), (1388278159,), (1388278184,), (1388278186,), (1388278188,), (1388278192,), (1388278196,), (1388278202,), (1388278217,), (1388278220,), (1388278225,), (1388278256,), (1388278328,), (1388278330,), (1388278332,), (1388278244,), (1388278246,), (1388278249,), (1388278252,), (1388278254,), (1388278264,), (1388278266,), (1388278269,), (1388278272,), (1388278281,), (1388278295,), (1388278307,), (1388278309,), (1388278311,), (1388278314,), (1388278316,), (1388278319,), (1388278324,), (1388278327,), (1388278334,), (1388278337,), (1388278341,), (1388278344,), (1388278357,), (1388278358,), (1388278359,), (1388278362,), (1388278366,), (1388278376,), (1388278378,), (1388278381,), (1388278384,), (1388278388,), (1388278399,), (1388278401,), (1388278403,), (1388278441,), (1388278443,), (1388278445,), (1388278449,), (1388278463,), (1388278464,), (1388278466,), (1388278469,), (1388278472,), (1388278475,), (1388278484,), (1388278486,), (1388278488,), (1388278492,), (1388278503,), (1388278505,), (1388278507,), (1388278509,), (1388278511,), (1388278513,), (1388278521,), (1388278524,), (1388278526,), (1388278529,), (1388278533,), (1388278540,), (1388278559,), (1388278561,), (1388278573,), (1388278575,), (1388278577,), (1388278585,), (1388278586,), (1388278588,), (1388278589,), (1388278590,), (1388278591,), (1388278592,), (1388278593,), (1388278595,), (1388278597,), (1388278600,), (1388278604,), (1388278608,), (1388278618,), (1388278619,), (1388278643,), (1388278634,), (1388278636,), (1388278638,), (1388278642,), (1388278651,), (1388278653,), (1388278655,), (1388278697,), (1388278699,), (1388278700,), (1388278703,), (1388278706,), (1388278723,), (1388278725,), (1388278727,), (1388278742,), (1388278743,), (1388278744,), (1388278746,), (1388278750,), (1388278762,), (1388278764,), (1388278767,), (1388278771,), (1388278774,), (1388278775,), (1388278779,), (1388278782,), (1388278785,), (1388278788,), (1388278789,), (1388278791,), (1388278794,), (1388278796,), (1388278803,), (1388278809,), (1388278825,), (1388278837,), (1388278855,), (1388278858,), (1388278861,), (1388278863,), (1388278864,), (1388278865,), (1388278868,), (1388278869,), (1388278871,), (1388278874,), (1388278877,), (1388278880,), (1388278894,), (1388278896,), (1388278898,), (1388278902,), (1388278911,), (1388278913,), (1388278915,), (1388278918,), (1388278934,), (1388278936,), (1388278939,), (1388278942,), (1388278946,), (1388278948,), (1388278956,), (1388278967,), (1388278979,), (1388278991,), (1388279001,), (1388279010,), (1388279036,), (1388279039,), (1388279041,), (1388279043,), (1388279046,), (1388279049,), (1388279069,), (1388279072,), (1388279073,), (1388279075,), (1388279078,), (1388279081,), (1388279089,), (1388279090,), (1388279092,), (1388279095,), (1388279097,), (1388279100,), (1388279106,), (1388279735,), (1388279733,), (1388279751,), (1388279753,), (1388279755,), (1388279759,), (1388279792,), (1388279794,), (1388279797,), (1388279812,), (1388279814,), (1388279816,), (1388279820,), (1388279828,), (1388279830,), (1388279832,), (1388279836,), (1388279840,), (1388279843,), (1388279852,), (1388279853,), (1388279854,), (1388279880,), (1388279882,), (1388279884,), (1388279888,), (1388279891,), (1388279894,), (1388279926,), (1388279928,), (1388279932,), (1388279936,), (1388279939,), (1388279941,), (1388279947,), (1388279948,), (1388279950,), (1388279952,), (1388279954,), (1388279961,), (1388279963,), (1388279966,), (1388279971,), (1388279973,), (1388279974,), (1388279978,), (1388279982,), (1388279994,), (1388279997,), (1388280002,), (1388280005,), (1388280008,), (1388280010,), (1388280019,), (1388280022,), (1388280025,), (1388280028,), (1388280038,), (1388280046,), (1388280060,), (1388280066,), (1388280068,), (1388280070,), (1388280072,), (1388280074,), (1388280083,), (1388280084,), (1388280087,), (1388280089,), (1388280091,), (1388280092,), (1388280096,), (1388280097,), (1388280101,), (1388280102,), (1388280105,), (1388280106,), (1388280110,), (1388280111,), (1388280113,), (1388280115,), (1388280118,), (1388280122,), (1388280132,), (1388280135,), (1388280138,), (1388280144,), (1388280147,), (1388280157,), (1388280153,), (1388280155,), (1388280174,), (1388280176,), (1388280177,), (1388280180,), (1388280184,), (1388280228,), (1388280230,), (1388280232,), (1388280256,), (1388280257,), (1388280258,), (1388280260,), (1388280263,), (1388280266,), (1388280276,), (1388280278,), (1388280280,), (1388280283,), (1388280296,), (1388280297,), (1388280299,), (1388280302,), (1388280305,), (1388280308,), (1388280319,), (1388280323,), (1388280327,), (1388280331,), (1388280334,), (1388280349,), (1388280362,), (1388280363,), (1388280365,), (1388280369,), (1388280371,), (1388280375,), (1388280381,), (1388280383,), (1388280386,), (1388280388,), (1388280390,), (1388280392,), (1388280394,), (1388280396,), (1388280399,), (1388280402,), (1388280406,), (1388280409,), (1388280422,), (1388280424,), (1388280426,), (1388280430,), (1388280435,), (1388280439,), (1388280448,), (1388280450,), (1388280467,), (1388280468,), (1388280469,), (1388280471,), (1388280474,), (1388280480,), (1388280555,), (1388280548,), (1388280549,), (1388280550,), (1388280551,), (1388280566,), (1388280569,), (1388280572,), (1388280604,), (1388280607,), (1388280609,), (1388280611,), (1388280614,), (1388280616,), (1388280626,), (1388280629,), (1388280633,), (1388280645,), (1388280646,), (1388280650,), (1388280660,), (1388280662,), (1388280667,), (1388280670,), (1388280672,), (1388280676,), (1388280694,), (1388280696,), (1388280698,), (1388280699,), (1388280703,), (1388280733,), (1388280735,), (1388280738,), (1388280741,), (1388280745,), (1388280751,), (1388280753,), (1388280755,), (1388280757,), (1388280761,), (1388280764,), (1388280771,), (1388280773,), (1388280775,), (1388280791,), (1388280792,), (1388280794,), (1388280797,), (1388280800,), (1388280803,), (1388280809,), (1388280812,), (1388280816,), (1388280819,), (1388280827,), (1388280835,), (1388280838,), (1388280841,), (1388280845,), (1388280848,), (1388280850,), (1388280852,), (1388280857,), (1388280861,), (1388280864,), (1388280866,), (1388280869,), (1388280871,), (1388280874,), (1388280877,), (1388280879,), (1388280882,), (1388280885,), (1388280888,), (1388280891,), (1388280897,), (1388280900,), (1388280903,), (1388280908,), (1388280935,), (1388280921,), (1388280923,), (1388280924,), (1388280927,), (1388280932,), (1388280943,), (1388280945,), (1388280947,), (1388280950,), (1388280953,), (1388280985,), (1388280987,), (1388280989,), (1388281010,), (1388281011,), (1388281012,), (1388281015,), (1388281019,), (1388281022,), (1388281030,), (1388281032,), (1388281034,), (1388281038,), (1388281042,), (1388281044,), (1388281051,), (1388281053,), (1388281055,), (1388281058,), (1388281061,), (1388281063,), (1388281074,), (1388281076,), (1388281079,), (1388281094,), (1388281101,), (1388281115,), (1388281119,), (1388281120,), (1388281122,), (1388281124,), (1388281127,), (1388281131,), (1388281139,), (1388281140,), (1388281143,), (1388281144,), (1388281147,), (1388281148,), (1388281150,), (1388281151,), (1388281153,), (1388281154,), (1388281156,), (1388281157,), (1388281160,), (1388281162,), (1388281163,), (1388281165,), (1388281168,), (1388281171,), (1388281179,), (1388281182,), (1388281194,), (1388281196,), (1388281198,), (1388281201,), (1388281205,), (1388281209,), (1388281217,), (1388281219,), (1388281220,), (1388281222,), (1388281236,), (1388281238,), (1388281241,), (1388281244,), (1388281247,), (1388281250,), (1388281288,), (1388281289,), (1388281290,), (1388281293,), (1388281305,), (1388281307,), (1388281309,), (1388281311,), (1388281314,), (1388281317,), (1388281328,), (1388281333,), (1388281337,), (1388281340,), (1388281370,), (1388281407,), (1388281409,), (1388281433,), (1388281436,), (1388281437,), (1388281440,), (1388281460,), (1388281361,), (1388281364,), (1388281366,), (1388281367,), (1388281369,), (1388281371,), (1388281372,), (1388281374,), (1388281378,), (1388281381,), (1388281384,), (1388281400,), (1388281401,), (1388281403,), (1388281405,), (1388281416,), (1388281417,), (1388281420,), (1388281422,), (1388281423,), (1388281427,), (1388281428,), (1388281432,), (1388281444,), (1388281446,), (1388281447,), (1388281449,), (1388281453,), (1388281455,), (1388281463,), (1388281465,), (1388281468,), (1388281470,), (1388281482,), (1388281484,), (1388281486,), (1388281489,), (1388281506,), (1388281508,), (1388281509,), (1388281513,), (1388281518,), (1388281557,), (1388281561,), (1388281565,), (1388281569,), (1388281572,), (1388281574,), (1388281578,), (1388281580,), (1388281582,), (1388281585,), (1388281588,), (1388281599,), (1388281601,), (1388281603,), (1388281605,), (1388281608,), (1388281610,), (1388281620,), (1388281622,), (1388281625,), (1388281628,), (1388281630,), (1388281633,), (1388281645,), (1388281646,), (1388281649,), (1388281656,), (1388281662,), (1388281671,), (1388281676,), (1388281678,), (1388281687,), (1388281689,), (1388281691,), (1388281695,), (1388281705,), (1388281707,), (1388281709,), (1388281710,), (1388281711,), (1388281713,), (1388281720,), (1388281723,), (1388281727,), (1388281731,), (1388281734,), (1388281736,), (1388281741,), (1388281745,), (1388281746,), (1388281767,), (1388281759,), (1388281761,), (1388281763,), (1388281781,), (1388281782,), (1388281783,), (1388281785,), (1388281788,), (1388281791,), (1388281825,), (1388281826,), (1388281827,), (1388281846,), (1388281848,), (1388281850,), (1388281852,), (1388281868,), (1388281882,), (1388281884,), (1388281886,), (1388281889,), (1388281892,), (1388281903,), (1388281904,), (1388281905,), (1388281906,), (1388281950,), (1388281953,), (1388281956,), (1388281959,), (1388281961,), (1388281964,), (1388281972,), (1388281974,), (1388281977,), (1388281981,), (1388282001,), (1388282003,), (1388282005,), (1388282007,), (1388282011,), (1388282022,), (1388282024,), (1388282026,), (1388282029,), (1388282041,), (1388282043,), (1388282045,), (1388282047,), (1388282097,), (1388282099,), (1388282102,), (1388282105,), (1388282107,), (1388282119,), (1388282121,), (1388282125,), (1388282128,), (1388282131,), (1388282158,), (1388282161,), (1388282163,), (1388282166,), (1388282212,), (1388282217,), (1388282219,), (1388282220,), (1388282221,), (1388282223,), (1388282225,), (1388282237,), (1388282239,), (1388282242,), (1388282154,), (1388282157,), (1388282180,), (1388282192,), (1388282198,), (1388282208,), (1388282210,), (1388282229,), (1388282232,), (1388282234,), (1388282247,), (1388282248,), (1388282250,), (1388282252,), (1388282254,), (1388282270,), (1388282271,), (1388282272,), (1388282275,), (1388282290,), (1388282292,), (1388282295,), (1388282299,), (1388282301,), (1388282304,), (1388282314,), (1388282316,), (1388282318,), (1388282321,), (1388282325,), (1388282359,), (1388282361,), (1388282363,), (1388282366,), (1388282380,), (1388282382,), (1388282384,), (1388282388,), (1388282392,), (1388282402,), (1388282403,), (1388282405,), (1388282408,), (1388282411,), (1388282414,), (1388282424,), (1388282426,), (1388282430,), (1388282433,), (1388282436,), (1388282438,), (1388282443,), (1388282446,), (1388282449,), (1388282451,), (1388282453,), (1388282466,), (1388282488,), (1388282492,), (1388282494,), (1388282496,), (1388282497,), (1388282499,), (1388282510,), (1388282514,), (1388282517,), (1388282519,), (1388282520,), (1388282521,), (1388282525,), (1388282528,), (1388282531,), (1388282534,), (1388282537,), (1388282547,), (1388282550,), (1388282552,), (1388282555,), (1388282558,), (1388282581,), (1388282568,), (1388282570,), (1388282572,), (1388282575,), (1388282578,), (1388282590,), (1388282592,), (1388282594,), (1388282598,), (1388282602,), (1388282605,), (1388282636,), (1388282637,), (1388282651,), (1388282653,), (1388282655,), (1388282658,), (1388282674,), (1388282676,), (1388282677,), (1388282696,), (1388282698,), (1388282701,), (1388282704,), (1388282706,), (1388282709,), (1388282714,), (1388282717,), (1388282720,), (1388282723,), (1388282727,), (1388282735,), (1388282762,), (1388282771,), (1388282772,), (1388282774,), (1388282776,), (1388282780,), (1388282786,), (1388282789,), (1388282792,), (1388282794,), (1388282795,), (1388282798,), (1388282800,), (1388282805,), (1388282820,), (1388282822,), (1388282824,), (1388282828,), (1388282833,), (1388282841,), (1388282843,), (1388282846,), (1388282849,), (1388282852,), (1388282862,), (1388282864,), (1388282865,), (1388282918,), (1388282920,), (1388282921,), (1388282925,), (1388282929,), (1388282932,), (1388282938,), (1388282940,), (1388282943,), (1388282947,), (1388282950,), (1388282961,), (1388282963,), (1388282964,), (1388282991,), (1388282994,), (1388282996,), (1388283060,), (1388283066,), (1388283068,), (1388283082,), (1388282982,), (1388282984,), (1388282988,), (1388283003,), (1388283005,), (1388283008,), (1388283011,), (1388283013,), (1388283017,), (1388283031,), (1388283041,), (1388283050,), (1388283073,), (1388283076,), (1388283079,), (1388283089,), (1388283090,), (1388283091,), (1388283094,), (1388283106,), (1388283108,), (1388283111,), (1388283115,), (1388283118,), (1388283121,), (1388283126,), (1388283128,), (1388283132,), (1388283135,), (1388283139,), (1388283141,), (1388283150,), (1388283152,), (1388283153,), (1388283156,), (1388283194,), (1388283196,), (1388283198,), (1388283200,), (1388283239,), (1388283240,), (1388283243,), (1388283255,), (1388283256,), (1388283257,), (1388283259,), (1388283262,), (1388283265,), (1388283320,), (1388283322,), (1388283324,), (1388283341,), (1388283343,), (1388283345,), (1388283348,), (1388283363,), (1388283366,), (1388283368,), (1388283372,), (1388283375,), (1388283378,), (1388283398,), (1388283386,), (1388283388,), (1388283390,), (1388283394,), (1388283404,), (1388283406,), (1388283408,), (1388283412,), (1388283416,), (1388283419,), (1388283482,), (1388283484,), (1388283485,), (1388283488,), (1388283504,), (1388283506,), (1388283508,), (1388283512,), (1388283516,), (1388283520,), (1388283528,), (1388283529,), (1388283532,), (1388283534,), (1388283537,), (1388283548,), (1388283549,), (1388283551,), (1388283553,), (1388283556,), (1388283560,), (1388283569,), (1388283581,), (1388283591,), (1388283599,), (1388283602,), (1388283605,), (1388283608,), (1388283611,), (1388283613,), (1388283616,), (1388283618,), (1388283621,), (1388283632,), (1388283633,), (1388283636,), (1388283638,), (1388283640,), (1388283644,), (1388283645,), (1388283648,), (1388283649,), (1388283651,), (1388283652,), (1388283654,), (1388283657,), (1388283662,), (1388283664,), (1388283666,), (1388283679,), (1388283682,), (1388283684,), (1388283714,), (1388283716,), (1388283717,), (1388283719,), (1388283757,), (1388283759,), (1388283761,), (1388283779,), (1388283780,), (1388283783,), (1388283786,), (1388283811,), (1388283816,), (1388283819,), (1388283822,), (1388283865,), (1388283868,), (1388283871,), (1388283876,), (1388283880,), (1388283804,), (1388283808,), (1388283843,), (1388283848,), (1388283851,), (1388283854,), (1388283856,), (1388283859,), (1388283889,), (1388283899,), (1388283902,), (1388283909,), (1388283911,), (1388283913,), (1388283917,), (1388283922,), (1388283926,), (1388283935,), (1388283938,), (1388283942,), (1388283963,), (1388283965,), (1388283967,), (1388283970,), (1388283990,), (1388283992,), (1388284004,), (1388284030,), (1388284032,), (1388284034,), (1388284054,), (1388284057,), (1388284060,), (1388284077,), (1388284080,), (1388284084,), (1388284088,), (1388284106,), (1388284108,), (1388284111,), (1388284119,), (1388285441,), (1388285470,), (1388285494,), (1388285582,), (1388285585,), (1388285612,), (1388285617,), (1388285623,), (1388285628,), (1388285631,), (1388285641,), (1388285644,), (1388285646,), (1388285675,), (1388285678,), (1388285681,), (1388285684,), (1388285709,), (1388285713,), (1388285716,), (1388285719,), (1388285735,), (1388285738,), (1388285750,), (1388285754,), (1388285758,), (1388285762,), (1388285769,), (1388285773,), (1388285777,), (1388285786,), (1388285790,), (1388285802,), (1388285822,), (1388285826,), (1388285829,), (1388285857,), (1388285850,), (1388285852,), (1388285854,), (1388285873,), (1388285875,), (1388285878,), (1388285932,), (1388285936,), (1388285941,), (1388285946,), (1388285952,), (1388285954,), (1388285963,), (1388285966,), (1388285968,), (1388285971,), (1388285986,), (1388285988,), (1388285990,), (1388285993,), (1388285997,), (1388286008,), (1388286011,), (1388286015,), (1388286018,), (1388286021,), (1388286035,), (1388286038,), (1388286040,), (1388286046,), (1388286059,), (1388286079,), (1388286081,), (1388286082,), (1388286084,), (1388286086,), (1388286090,), (1388286097,), (1388286102,), (1388286103,), (1388286105,), (1388286107,), (1388286117,), (1388286119,), (1388286121,), (1388286124,), (1388286127,), (1388286142,), (1388286144,), (1388286147,), (1388286150,), (1388286152,), (1388286161,), (1388286163,), (1388286165,), (1388286169,), (1388286173,), (1388286213,), (1388286217,), (1388286222,), (1388286226,), (1388286229,), (1388286231,), (1388286232,), (1388286233,), (1388286234,), (1388286237,), (1388286242,), (1388286245,), (1388286248,), (1388286251,), (1388286259,), (1388286261,), (1388286262,), (1388286265,), (1388286268,), (1388286271,), (1388286314,), (1388286435,), (1388286303,), (1388286306,), (1388286309,), (1388286312,), (1388286351,), (1388286360,), (1388286371,), (1388286372,), (1388286374,), (1388286377,), (1388286388,), (1388286391,), (1388286400,), (1388286401,), (1388286402,), (1388286403,), (1388286410,), (1388286413,), (1388286416,), (1388286419,), (1388286422,), (1388286423,), (1388286429,), (1388286433,), (1388286440,), (1388286449,), (1388286451,), (1388286454,), (1388286460,), (1388286462,), (1388286463,), (1388286466,), (1388286473,), (1388286476,), (1388286515,), (1388286517,), (1388286519,), (1388287106,), (1388287109,), (1388287114,), (1388287219,), (1388287237,), (1388287266,), (1388287330,), (1388287332,), (1388287334,), (1388287337,), (1388287353,), (1388287356,), (1388287377,), (1388287381,), (1388287385,), (1388287388,), (1388287398,), (1388287399,), (1388287531,), (1388287704,), (1388287706,), (1388287708,), (1388288640,), (1388288642,), (1388288648,), (1388288650,), (1388288653,), (1388288669,), (1388288716,), (1388288734,), (1388288744,), (1388288746,), (1388288999,), (1388289003,), (1388289010,), (1388289077,), (1388289090,), (1388289091,), (1388289093,), (1388289094,), (1388289178,), (1388289184,), (1388289310,), (1388289311,), (1388289347,), (1388289348,), (1388289386,), (1388289388,), (1388289423,), (1388289426,), (1388289648,), (1388289696,), (1388289777,), (1388289778,), (1388289782,), (1388289784,), (1388289798,), (1388289859,), (1388289926,), (1388289913,), (1388289914,), (1388289917,), (1388289921,), (1388289924,), (1388289945,), (1388289947,), (1388289948,), (1388289958,), (1388290009,), (1388290024,), (1388290088,), (1388290091,), (1388290094,), (1388290097,), (1388290893,), (1388291241,), (1388291243,), (1388291246,), (1388291248,), (1388291252,), (1388291506,), (1388291778,), (1388291783,), (1388291785,), (1388291788,), (1388291825,), (1388291890,), (1388291892,), (1388292119,), (1388292711,), (1388292759,), (1388293036,), (1388293141,), (1388293142,), (1388293145,), (1388293146,), (1388293148,), (1388293150,), (1388293621,), (1388293624,), (1388293716,), (1388293729,), (1388293731,), (1388293802,), (1388294000,), (1388294007,), (1388294012,), (1388294014,), (1388294067,), (1388294079,), (1388294147,), (1388294153,), (1388294155,), (1388294158,), (1388294162,), (1388294165,), (1388294186,), (1388294188,), (1388294190,), (1388294195,), (1388294198,), (1388294244,), (1388294250,), (1388294252,), (1388294256,), (1388294260,), (1388294263,), (1388294302,), (1388294304,), (1388294308,), (1388294313,), (1388294318,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09102025': {'nb_upload': 73, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27623708]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] map_info['map_portfolio_photo'] : {27623708: [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244, 1388294198, 1388294195, 1388294190, 1388294188, 1388294186, 1388294165, 1388294162, 1388294158, 1388294155, 1388294153, 1388294147, 1388294079, 1388294067, 1388294014, 1388294012, 1388294007, 1388294000, 1388293802, 1388293731, 1388293729, 1388293716, 1388293624, 1388293621, 1388293150, 1388293148, 1388293146, 1388293145, 1388293142, 1388293141, 1388293036, 1388292759, 1388292711, 1388292119, 1388291892, 1388291890, 1388291825, 1388291788, 1388291785, 1388291783, 1388291778, 1388291506, 1388291252, 1388291248, 1388291246, 1388291243, 1388291241, 1388290893, 1388290097, 1388290094, 1388290091, 1388290088, 1388290024, 1388290009, 1388289958, 1388289948, 1388289947, 1388289945, 1388289924, 1388289921, 1388289917, 1388289914, 1388289913]} final : True mtd_id 4302 list_pids : [1388294318, 1388294313, 1388294308, 1388294304, 1388294302, 1388294263, 1388294260, 1388294256, 1388294252, 1388294250, 1388294244] Looping around the photos to save general results len do output : 1 /27623708Didn'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, '3897927') ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927') ('4302', None, None, None, None, None, None, None, '3897927') ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '27623708', 'None', None, None, None, None, '3897927'), ('4302', '27623708', '1388294318', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294313', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294308', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294304', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294302', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294263', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294260', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294256', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294252', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294250', None, None, None, None, None, '3897927'), ('4302', '27623708', '1388294244', None, None, None, None, None, '3897927')] time used for this insertion : 0.03823113441467285 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5553290843963623 time spend to save output : 0.03844285011291504 total time spend for step 5 : 3.5937719345092773 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 (3897927) 1.92user 2.47system 0:13.51elapsed 32%CPU (0avgtext+0avgdata 160284maxresident)k 32inputs+6888outputs (0major+64308minor)pagefaults 0swaps