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 : 525429 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 (4292580) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4292580) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836084 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4292580'] with mtr_portfolio_ids : ['29836084'] and first list_photo_ids : [] new path : /proc/525429/ Name: python3 Umask: 0002 State: R (running) Tgid: 525429 Ngid: 0 Pid: 525429 PPid: 525428 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 525429 NSpid: 525429 NSpgid: 524054 NSsid: 524054 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105820 kB VmRSS: 105820 kB RssAnon: 66304 kB RssFile: 39516 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '525429', 'Ngid': '0', 'Pid': '525429', 'PPid': '525428', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '525429', 'NSpid': '525429', 'NSpgid': '524054', 'NSsid': '524054', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105820 kB', 'VmRSS': '105820 kB', 'RssAnon': '66304 kB', 'RssFile': '39516 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '525429', '1113368', '0', '1113368', '872096', '105820', b'', 'marlene', '4292580') 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 (29836084) 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 (4292580 ) ) 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 (29836084) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401819236, 'portfolio_id': 29836084}, {'photo_id': 1401819233, 'portfolio_id': 29836084}, {'photo_id': 1401819231, 'portfolio_id': 29836084}, {'photo_id': 1401819229, 'portfolio_id': 29836084}, {'photo_id': 1401819194, 'portfolio_id': 29836084}, {'photo_id': 1401819193, 'portfolio_id': 29836084}, {'photo_id': 1401819190, 'portfolio_id': 29836084}, {'photo_id': 1401819189, 'portfolio_id': 29836084}, {'photo_id': 1401819188, 'portfolio_id': 29836084}, {'photo_id': 1401819186, 'portfolio_id': 29836084}, {'photo_id': 1401819167, 'portfolio_id': 29836084}, {'photo_id': 1401819163, 'portfolio_id': 29836084}, {'photo_id': 1401819160, 'portfolio_id': 29836084}, {'photo_id': 1401819158, 'portfolio_id': 29836084}, {'photo_id': 1401819156, 'portfolio_id': 29836084}, {'photo_id': 1401819121, 'portfolio_id': 29836084}, {'photo_id': 1401819119, 'portfolio_id': 29836084}, {'photo_id': 1401819073, 'portfolio_id': 29836084}, {'photo_id': 1401819067, 'portfolio_id': 29836084}, {'photo_id': 1401819061, 'portfolio_id': 29836084}, {'photo_id': 1401819058, 'portfolio_id': 29836084}, {'photo_id': 1401819049, 'portfolio_id': 29836084}, {'photo_id': 1401819045, 'portfolio_id': 29836084}, {'photo_id': 1401819042, 'portfolio_id': 29836084}, {'photo_id': 1401819039, 'portfolio_id': 29836084}, {'photo_id': 1401819038, 'portfolio_id': 29836084}, {'photo_id': 1401819037, 'portfolio_id': 29836084}, {'photo_id': 1401819012, 'portfolio_id': 29836084}, {'photo_id': 1401819008, 'portfolio_id': 29836084}, {'photo_id': 1401819005, 'portfolio_id': 29836084}, {'photo_id': 1401819002, 'portfolio_id': 29836084}, {'photo_id': 1401818978, 'portfolio_id': 29836084}, {'photo_id': 1401818973, 'portfolio_id': 29836084}, {'photo_id': 1401818970, 'portfolio_id': 29836084}, {'photo_id': 1401818969, 'portfolio_id': 29836084}, {'photo_id': 1401818968, 'portfolio_id': 29836084}, {'photo_id': 1401818934, 'portfolio_id': 29836084}, {'photo_id': 1401818931, 'portfolio_id': 29836084}, {'photo_id': 1401818929, 'portfolio_id': 29836084}, {'photo_id': 1401818922, 'portfolio_id': 29836084}, {'photo_id': 1401818921, 'portfolio_id': 29836084}, {'photo_id': 1401818913, 'portfolio_id': 29836084}, {'photo_id': 1401818910, 'portfolio_id': 29836084}, {'photo_id': 1401818907, 'portfolio_id': 29836084}, {'photo_id': 1401818903, 'portfolio_id': 29836084}, {'photo_id': 1401818900, 'portfolio_id': 29836084}, {'photo_id': 1401818897, 'portfolio_id': 29836084}, {'photo_id': 1401818877, 'portfolio_id': 29836084}, {'photo_id': 1401818873, 'portfolio_id': 29836084}, {'photo_id': 1401818870, 'portfolio_id': 29836084}, {'photo_id': 1401818867, 'portfolio_id': 29836084}, {'photo_id': 1401818859, 'portfolio_id': 29836084}, {'photo_id': 1401818839, 'portfolio_id': 29836084}, {'photo_id': 1401818838, 'portfolio_id': 29836084}, {'photo_id': 1401818836, 'portfolio_id': 29836084}, {'photo_id': 1401818803, 'portfolio_id': 29836084}, {'photo_id': 1401818800, 'portfolio_id': 29836084}] map_portfolio_id_photo_id: {29836084: [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186, 1401819167, 1401819163, 1401819160, 1401819158, 1401819156, 1401819121, 1401819119, 1401819073, 1401819067, 1401819061, 1401819058, 1401819049, 1401819045, 1401819042, 1401819039, 1401819038, 1401819037, 1401819012, 1401819008, 1401819005, 1401819002, 1401818978, 1401818973, 1401818970, 1401818969, 1401818968, 1401818934, 1401818931, 1401818929, 1401818922, 1401818921, 1401818913, 1401818910, 1401818907, 1401818903, 1401818900, 1401818897, 1401818877, 1401818873, 1401818870, 1401818867, 1401818859, 1401818839, 1401818838, 1401818836, 1401818803, 1401818800]} ##### 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.019209623336791992 #### 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 Wed Dec 31 02:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29836084) 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 : 29836084 get user id for portfolio 29836084 get sub ptf for main ptf 29836084, type 3726 and hashtags ['Teint_Dans_La_Masse', 'cartonnette', 'environnement', 'papier', 'autre_refus', 'plastique', 'metal', 'kraft', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'flou'] 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`=29836084 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','environnement','papier','autre_refus','plastique','metal','kraft','mal_croppe','Carton_gris','Carton_brun','flou')) 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`=29836084 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','environnement','papier','autre_refus','plastique','metal','kraft','mal_croppe','Carton_gris','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29836084, 'sub_port_id': 29836109, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404531, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'mal_croppe': {'main_port_id': 29836084, 'sub_port_id': 29836110, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404532, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'plastique': {'main_port_id': 29836084, 'sub_port_id': 29836111, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404533, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'metal': {'main_port_id': 29836084, 'sub_port_id': 29836112, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404534, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'Carton_brun': {'main_port_id': 29836084, 'sub_port_id': 29836113, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404535, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'autre_refus': {'main_port_id': 29836084, 'sub_port_id': 29836114, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404536, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'papier': {'main_port_id': 29836084, 'sub_port_id': 29836115, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404537, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'environnement': {'main_port_id': 29836084, 'sub_port_id': 29836116, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404538, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29836084, 'sub_port_id': 29836117, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404539, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'kraft': {'main_port_id': 29836084, 'sub_port_id': 29836118, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404540, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'flou': {'main_port_id': 29836084, 'sub_port_id': 29836119, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404541, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}, 'Carton_gris': {'main_port_id': 29836084, 'sub_port_id': 29836120, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404542, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29836109 , 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=29836084 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 (29836109) result : ((1401818987,), (1401819051,), (1401819140,), (1401819141,), (1401819142,), (1401819143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836110 , 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=29836084 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 (29836110) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836111 , 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=29836084 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 (29836111) result : ((1401819027,), (1401819084,), (1401819085,), (1401819086,), (1401819087,), (1401819088,), (1401819116,), (1401819144,), (1401819145,), (1401819146,), (1401819147,), (1401819148,), (1401819223,), (1401819224,), (1401819225,), (1401819226,), (1401819227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836112 , 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=29836084 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 (29836112) result : ((1401818992,), (1401819151,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836113 , 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=29836084 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 (29836113) result : ((1401818989,), (1401818990,), (1401819053,), (1401819081,), (1401819082,), (1401819221,), (1401819222,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836114 , 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=29836084 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 (29836114) result : ((1401819075,), (1401819076,), (1401819077,), (1401819078,), (1401819079,), (1401819080,), (1401819112,), (1401819136,), (1401819215,), (1401819216,), (1401819217,), (1401819218,), (1401819219,), (1401819220,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836115 , 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=29836084 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 (29836115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836116 , 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=29836084 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 (29836116) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836117 , 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=29836084 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 (29836117) result : ((1401818985,), (1401818986,), (1401819069,), (1401819070,), (1401819071,), (1401819072,), (1401819111,), (1401819210,), (1401819211,), (1401819212,), (1401819213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836118 , 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=29836084 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 (29836118) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836119 , 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=29836084 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 (29836119) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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 29836120 , 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=29836084 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 (29836120) result : ((1401819050,), (1401819114,), (1401819115,), (1401819137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29836084) result : ((1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) 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 (1401818900,1401818800) 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`=29836084 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','environnement','papier','autre_refus','plastique','metal','kraft','mal_croppe','Carton_gris','Carton_brun','flou')) 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`=29836084 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','environnement','papier','autre_refus','plastique','metal','kraft','mal_croppe','Carton_gris','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29836084, 'sub_port_id': 29836121, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404543, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'mal_croppe': {'main_port_id': 29836084, 'sub_port_id': 29836122, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404544, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'plastique': {'main_port_id': 29836084, 'sub_port_id': 29836123, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404545, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'metal': {'main_port_id': 29836084, 'sub_port_id': 29836124, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404546, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'Carton_brun': {'main_port_id': 29836084, 'sub_port_id': 29836125, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404547, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'autre_refus': {'main_port_id': 29836084, 'sub_port_id': 29836126, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404548, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'papier': {'main_port_id': 29836084, 'sub_port_id': 29836127, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404549, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'environnement': {'main_port_id': 29836084, 'sub_port_id': 29836128, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404550, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29836084, 'sub_port_id': 29836129, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404551, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'kraft': {'main_port_id': 29836084, 'sub_port_id': 29836130, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404552, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'flou': {'main_port_id': 29836084, 'sub_port_id': 29836131, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404553, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}, 'Carton_gris': {'main_port_id': 29836084, 'sub_port_id': 29836132, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20404554, 'last_updated_at': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 31, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 31, 2, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29836132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29836120 lien utilise dans velours : https://marlene.fotonower.com/velours/29836121,29836122,29836123,29836124,29836125,29836126,29836127,29836128,29836129,29836130,29836131,29836132?tags=cartonnette,mal_croppe,plastique,metal,Carton_brun,autre_refus,papier,environnement,Teint_Dans_La_Masse,kraft,flou,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29836084]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] map_info['map_portfolio_photo'] : {29836084: [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186, 1401819167, 1401819163, 1401819160, 1401819158, 1401819156, 1401819121, 1401819119, 1401819073, 1401819067, 1401819061, 1401819058, 1401819049, 1401819045, 1401819042, 1401819039, 1401819038, 1401819037, 1401819012, 1401819008, 1401819005, 1401819002, 1401818978, 1401818973, 1401818970, 1401818969, 1401818968, 1401818934, 1401818931, 1401818929, 1401818922, 1401818921, 1401818913, 1401818910, 1401818907, 1401818903, 1401818900, 1401818897, 1401818877, 1401818873, 1401818870, 1401818867, 1401818859, 1401818839, 1401818838, 1401818836, 1401818803, 1401818800]} final : False mtd_id 4302 list_pids : [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] Looping around the photos to save general results len do output : 1 /29836084. 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, '4292580') ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580') 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', None, '29836084', "{'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120}", None, None, None, None, '4292580'), ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580')] time used for this insertion : 0.015871047973632812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5682528018951416 time spend to save output : 0.016153335571289062 total time spend for step 1 : 0.5844061374664307 step2:final Wed Dec 31 02:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29836084) 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 29836084 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401818803,1401818800,1401818839,1401818838,1401818836,1401818922,1401818877,1401818921,1401818873,1401818913,1401818870,1401818910,1401818867,1401818907,1401818859,1401818903,1401818900,1401818897,1401818934,1401818931,1401818929,1401818978,1401818973,1401818970,1401818969,1401818968,1401819061,1401819012,1401819058,1401819008,1401819049,1401819005,1401819045,1401819002,1401819042,1401819039,1401819038,1401819037,1401819073,1401819067,1401819121,1401819119,1401819167,1401819163,1401819160,1401819158,1401819156,1401819194,1401819193,1401819190,1401819189,1401819188,1401819186,1401819236,1401819233,1401819231,1401819229); 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([29836084]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} new output for save of step final : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] map_info['map_portfolio_photo'] : {29836084: [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186, 1401819167, 1401819163, 1401819160, 1401819158, 1401819156, 1401819121, 1401819119, 1401819073, 1401819067, 1401819061, 1401819058, 1401819049, 1401819045, 1401819042, 1401819039, 1401819038, 1401819037, 1401819012, 1401819008, 1401819005, 1401819002, 1401818978, 1401818973, 1401818970, 1401818969, 1401818968, 1401818934, 1401818931, 1401818929, 1401818922, 1401818921, 1401818913, 1401818910, 1401818907, 1401818903, 1401818900, 1401818897, 1401818877, 1401818873, 1401818870, 1401818867, 1401818859, 1401818839, 1401818838, 1401818836, 1401818803, 1401818800]} final : False mtd_id 4302 list_pids : [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] Looping around the photos to save general results len do output : 10 /1401819236.Didn't retrieve data . /1401819233.Didn't retrieve data . /1401819231.Didn't retrieve data . /1401819229.Didn't retrieve data . /1401819194.Didn't retrieve data . /1401819193.Didn't retrieve data . /1401819190.Didn't retrieve data . /1401819189.Didn't retrieve data . /1401819188.Didn't retrieve data . /1401819186.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, '4292580') ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29836084', '1401819236', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819233', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819231', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819229', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819194', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819193', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819190', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819189', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819188', '0.04745407280978445', None, None, None, None, '4292580'), ('4302', '29836084', '1401819186', '0.04745407280978445', None, None, None, None, '4292580')] time used for this insertion : 0.019467592239379883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.076995849609375 time spend to save output : 0.019965171813964844 total time spend for step 2 : 0.09696102142333984 step3:velours_tree Wed Dec 31 02: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 : {29836084: [{'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120}]} input_args_next_step : {29836084: ()} output_args : {29836084: [{'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120}]} args : 29836084 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29836084) 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([29836084]) 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.25792407989501953 time spend to save output : 4.696846008300781e-05 total time spend for step 3 : 0.25797104835510254 step4:send_mail_cod Wed Dec 31 02: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 ! complete output_args for input 2 : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} input_args_next_step : {1401819236: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819236 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819233 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819231 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819229 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819194 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819193 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819190 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819189 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819188 depend.output_id : 0 input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ()} output_args : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',)} args : 1401819186 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 : {29836084: [{'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120}]} input_args_next_step : {1401819236: ('0.04745407280978445',), 1401819233: ('0.04745407280978445',), 1401819231: ('0.04745407280978445',), 1401819229: ('0.04745407280978445',), 1401819194: ('0.04745407280978445',), 1401819193: ('0.04745407280978445',), 1401819190: ('0.04745407280978445',), 1401819189: ('0.04745407280978445',), 1401819188: ('0.04745407280978445',), 1401819186: ('0.04745407280978445',), 29836084: ()} output_args : {29836084: [{'cartonnette': 29836109, 'mal_croppe': 29836110, 'plastique': 29836111, 'metal': 29836112, 'Carton_brun': 29836113, 'autre_refus': 29836114, 'papier': 29836115, 'environnement': 29836116, 'Teint_Dans_La_Masse': 29836117, 'kraft': 29836118, 'flou': 29836119, 'Carton_gris': 29836120}]} args : 29836084 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 :11, first value : ('0.04745407280978445',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29836084) 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 (1401819236,1401819233,1401819231,1401819229,1401819194,1401819193,1401819190,1401819189,1401819188,1401819186) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401819186 begin to download photo : 1401819190 begin to download photo : 1401819229 begin to download photo : 1401819236 download finish for photo 1401819186 begin to download photo : 1401819188 download finish for photo 1401819229 begin to download photo : 1401819231 download finish for photo 1401819190 begin to download photo : 1401819193 download finish for photo 1401819188 begin to download photo : 1401819189 download finish for photo 1401819231 begin to download photo : 1401819233 download finish for photo 1401819193 begin to download photo : 1401819194 download finish for photo 1401819189 download finish for photo 1401819233 download finish for photo 1401819194 download finish for photo 1401819236 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29836084_31-12-2025_02_59_00.pdf 29836109 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=29836109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401818987: '1767145868_1380650_1401818836_616c1e4d49c8f3df15b48466fb05a309_rle_crop_4086497222_0.png', 1401819051: '1767145987_1388848_1401818934_c61507420d7a58c26cf9cc50209bfa2c_rle_crop_4086497439_0.png', 1401819140: '1767146105_1396645_1401818973_db31cd5af2c09d00213b5380852d4ee4_rle_crop_4086498113_0.png', 1401819141: '1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498126_0.png', 1401819142: '1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498125_0.png', 1401819143: '1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498134_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e8978cfe99a7ef3225c140839056edf0_9026949.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/9b48953befc2314368019b12c2b373b4_7237739.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/572340a1a86c0b1112d98b1bb976f175_91742314.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/3072b41e564c72b714042038afaefdcf_75871113.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7091f705add0c9918e47deb5585b69ff_77577882.png change filename to text .imagette298361091767146340/ imagette298361091767146340/1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498134_0.png.png imagette298361091767146340/1767145868_1380650_1401818836_616c1e4d49c8f3df15b48466fb05a309_rle_crop_4086497222_0.png.png imagette298361091767146340/1767146105_1396645_1401818973_db31cd5af2c09d00213b5380852d4ee4_rle_crop_4086498113_0.png.png imagette298361091767146340/1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498126_0.png.png imagette298361091767146340/1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498125_0.png.png imagette298361091767146340/1767145987_1388848_1401818934_c61507420d7a58c26cf9cc50209bfa2c_rle_crop_4086497439_0.png.png imagette298361101767146341/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/405043fc1f5218c1d5d75fcde39e1251_40097879.png imagette298361091767146340 29836110 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=29836110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298361101767146341 29836111 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=29836111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401819145: '1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498128_0.png', 1401819227: '1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497834_0.png', 1401819226: '1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497829_0.png', 1401819225: '1767146227_1404156_1401818903_9ede1f368ff48e3fe5b0d5106016b8f2_rle_crop_4086497774_0.png', 1401819224: '1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497769_0.png', 1401819223: '1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497764_0.png', 1401819148: '1767146105_1396645_1401818968_1c96937a399c429861bc1dafcf4ba49f_rle_crop_4086498153_0.png', 1401819147: '1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498145_0.png', 1401819146: '1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498143_0.png', 1401819027: '1767145947_1388081_1401818931_4a0e52c8973510dc8f0f40de360e3183_rle_crop_4086497358_0.png', 1401819144: '1767146105_1396645_1401819012_a85910ea6c48b8fcbc2ed758de614595_rle_crop_4086498109_0.png', 1401819116: '1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497958_0.png', 1401819088: '1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497834_0.png', 1401819087: '1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497829_0.png', 1401819086: '1767146007_1391109_1401818903_9ede1f368ff48e3fe5b0d5106016b8f2_rle_crop_4086497774_0.png', 1401819085: '1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497769_0.png', 1401819084: '1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497764_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/334f4bc74821222bf84386a7528231fe_26858801.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8137f3e97eb6a27cbd2c187329b823d6_25353797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/890550f95edbde3de4d6597c57e43637_47961603.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/78d7ad73abded272a8aee34180218b37_25006514.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8137f3e97eb6a27cbd2c187329b823d6_18621398.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/890550f95edbde3de4d6597c57e43637_21860545.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c0542c1c876866ce40c77120ad631b95_23366717.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8df77e4d303b45ef9914b70242356a8e_29631453.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/91fdc4b266f490cd2c3285f0f0b886ea_31235114.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/360b961ee6e4fd9d63d5eb14ae450e14_9371680.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/05006904b0a4625113f5de8230d266b8_25131356.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/47f1a860a3afa76ab3fc1a0e1e5ee5b0_29512294.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8137f3e97eb6a27cbd2c187329b823d6_95856660.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/890550f95edbde3de4d6597c57e43637_74194360.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/78d7ad73abded272a8aee34180218b37_76032728.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8137f3e97eb6a27cbd2c187329b823d6_94940609.png change filename to text .imagette298361111767146341/ imagette298361111767146341/1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497764_0.png.png imagette298361111767146341/1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497829_0.png.png imagette298361111767146341/1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497834_0.png.png imagette298361111767146341/1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498128_0.png.png imagette298361111767146341/1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497769_0.png.png imagette298361111767146341/1767146007_1391109_1401818903_9ede1f368ff48e3fe5b0d5106016b8f2_rle_crop_4086497774_0.png.png imagette298361111767146341/1767146105_1396645_1401818968_1c96937a399c429861bc1dafcf4ba49f_rle_crop_4086498153_0.png.png imagette298361111767146341/1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498143_0.png.png imagette298361111767146341/1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497769_0.png.png imagette298361111767146341/1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497764_0.png.png imagette298361111767146341/1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497958_0.png.png imagette298361111767146341/1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497834_0.png.png imagette298361111767146341/1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498145_0.png.png imagette298361111767146341/1767145947_1388081_1401818931_4a0e52c8973510dc8f0f40de360e3183_rle_crop_4086497358_0.png.png imagette298361111767146341/1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497829_0.png.png imagette298361111767146341/1767146105_1396645_1401819012_a85910ea6c48b8fcbc2ed758de614595_rle_crop_4086498109_0.png.png imagette298361111767146341/1767146227_1404156_1401818903_9ede1f368ff48e3fe5b0d5106016b8f2_rle_crop_4086497774_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/890550f95edbde3de4d6597c57e43637_29503708.png imagette298361111767146341 29836112 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=29836112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401818992: '1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497203_0.png', 1401819151: '1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498127_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/5aab0fb98b4a666abdb327bd9ee8ec6e_66656140.png change filename to text .imagette298361121767146342/ imagette298361121767146342/1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497203_0.png.png imagette298361121767146342/1767146105_1396645_1401818970_f8e456d91ef4ec99b55f19de8ae70234_rle_crop_4086498127_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/9e3f1bb3cb54d4be1c1ca771ae00c0c0_69276126.png imagette298361121767146342 29836114 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=29836114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401819075: '1767146007_1391109_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497727_0.png', 1401819076: '1767146007_1391109_1401818913_f76600064f344b781511458784a0b59a_rle_crop_4086497737_0.png', 1401819077: '1767146007_1391109_1401818910_bbd54c4c7b36a597b457e6ab3c487977_rle_crop_4086497753_0.png', 1401819078: '1767146007_1391109_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497792_0.png', 1401819079: '1767146007_1391109_1401818870_bb41029f3222f88dbce3b24592588fcb_rle_crop_4086497802_0.png', 1401819080: '1767146007_1391109_1401818867_1b7f926cc18d4d6b3965e1095306d564_rle_crop_4086497818_0.png', 1401819112: '1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497953_0.png', 1401819136: '1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498135_0.png', 1401819215: '1767146227_1404156_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497727_0.png', 1401819216: '1767146227_1404156_1401818913_f76600064f344b781511458784a0b59a_rle_crop_4086497737_0.png', 1401819217: '1767146227_1404156_1401818910_bbd54c4c7b36a597b457e6ab3c487977_rle_crop_4086497753_0.png', 1401819218: '1767146227_1404156_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497792_0.png', 1401819219: '1767146227_1404156_1401818870_bb41029f3222f88dbce3b24592588fcb_rle_crop_4086497802_0.png', 1401819220: '1767146227_1404156_1401818867_1b7f926cc18d4d6b3965e1095306d564_rle_crop_4086497818_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7bdc1eea08b0dc8a99e9482183f84460_54283615.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2519a569346bdaf2b07cf8e82907ec80_77445764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f91e39a64ba40cd4bcb0a5bd90359306_2647955.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7bdc1eea08b0dc8a99e9482183f84460_61627149.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2519a569346bdaf2b07cf8e82907ec80_29780732.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f91e39a64ba40cd4bcb0a5bd90359306_58669647.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2cbb42038e622c1b925714accf32dc3d_77939772.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/109611340199164a8662dad4cdd02045_28664277.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7bdc1eea08b0dc8a99e9482183f84460_28957542.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2519a569346bdaf2b07cf8e82907ec80_64300895.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f91e39a64ba40cd4bcb0a5bd90359306_38216617.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7bdc1eea08b0dc8a99e9482183f84460_2310373.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2519a569346bdaf2b07cf8e82907ec80_227803.png change filename to text .imagette298361141767146342/ imagette298361141767146342/1767146007_1391109_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497792_0.png.png imagette298361141767146342/1767146227_1404156_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497792_0.png.png imagette298361141767146342/1767146007_1391109_1401818913_f76600064f344b781511458784a0b59a_rle_crop_4086497737_0.png.png imagette298361141767146342/1767146007_1391109_1401818910_bbd54c4c7b36a597b457e6ab3c487977_rle_crop_4086497753_0.png.png imagette298361141767146342/1767146007_1391109_1401818867_1b7f926cc18d4d6b3965e1095306d564_rle_crop_4086497818_0.png.png imagette298361141767146342/1767146227_1404156_1401818867_1b7f926cc18d4d6b3965e1095306d564_rle_crop_4086497818_0.png.png imagette298361141767146342/1767146227_1404156_1401818913_f76600064f344b781511458784a0b59a_rle_crop_4086497737_0.png.png imagette298361141767146342/1767146227_1404156_1401818910_bbd54c4c7b36a597b457e6ab3c487977_rle_crop_4086497753_0.png.png imagette298361141767146342/1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497953_0.png.png imagette298361141767146342/1767146227_1404156_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497727_0.png.png imagette298361141767146342/1767146105_1396645_1401818969_5cb2d24422090843b388fd8cb003bc95_rle_crop_4086498135_0.png.png imagette298361141767146342/1767146007_1391109_1401818870_bb41029f3222f88dbce3b24592588fcb_rle_crop_4086497802_0.png.png imagette298361141767146342/1767146227_1404156_1401818870_bb41029f3222f88dbce3b24592588fcb_rle_crop_4086497802_0.png.png imagette298361141767146342/1767146007_1391109_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497727_0.png.png imagette298361181767146343/ imagette298361191767146343/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/f91e39a64ba40cd4bcb0a5bd90359306_44484547.png imagette298361141767146342 29836118 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=29836118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298361181767146343 29836119 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=29836119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298361191767146343 29836113 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=29836113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401818989: '1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497204_0.png', 1401818990: '1767145868_1380650_1401818836_616c1e4d49c8f3df15b48466fb05a309_rle_crop_4086497225_0.png', 1401819053: '1767145987_1388848_1401818900_d54ca4925bb0d14d1d50d934b82b4875_rle_crop_4086497455_0.png', 1401819081: '1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497767_0.png', 1401819082: '1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497832_0.png', 1401819221: '1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497767_0.png', 1401819222: '1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497832_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/805f893f974b4b73f666d5dbbb5199a9_14429373.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c283e8e9891c205f2186cbbdbc1e48f5_17787319.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/068cb78c54b1e6e805e62cc05cba501c_74500335.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e6662848e108d523b1eebadb9e3921b6_79245077.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e6662848e108d523b1eebadb9e3921b6_1331150.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e6662848e108d523b1eebadb9e3921b6_65336586.png change filename to text .imagette298361131767146343/ imagette298361131767146343/1767145868_1380650_1401818836_616c1e4d49c8f3df15b48466fb05a309_rle_crop_4086497225_0.png.png imagette298361131767146343/1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497767_0.png.png imagette298361131767146343/1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497767_0.png.png imagette298361131767146343/1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497832_0.png.png imagette298361131767146343/1767145987_1388848_1401818900_d54ca4925bb0d14d1d50d934b82b4875_rle_crop_4086497455_0.png.png imagette298361131767146343/1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497204_0.png.png imagette298361131767146343/1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497832_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e6662848e108d523b1eebadb9e3921b6_33687253.png imagette298361131767146343 29836117 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=29836117 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401818985: '1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497205_0.png', 1401818986: '1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497208_0.png', 1401819069: '1767146007_1391109_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497722_0.png', 1401819070: '1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497766_0.png', 1401819071: '1767146007_1391109_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497787_0.png', 1401819072: '1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497831_0.png', 1401819111: '1767146068_1393805_1401819008_107241ffb7146c7eb245a91e42013cd4_rle_crop_4086497942_0.png', 1401819210: '1767146227_1404156_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497722_0.png', 1401819211: '1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497766_0.png', 1401819212: '1767146227_1404156_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497787_0.png', 1401819213: '1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497831_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/cbe1c4cfb10222b50b3bf5c93a0e297b_53081874.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/283cb67b0f7e7d9cc791c543c709174a_65363824.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/02c14b0b7e623e1f781c145b55009ade_88292454.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c040d3b1ebc305ae403a932382969a1a_11598424.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/02c14b0b7e623e1f781c145b55009ade_69140070.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c040d3b1ebc305ae403a932382969a1a_43323522.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/e052f05a64a1c6c90dbad4d4a2b3ffb9_17168614.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/02c14b0b7e623e1f781c145b55009ade_42852268.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c040d3b1ebc305ae403a932382969a1a_94700649.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/02c14b0b7e623e1f781c145b55009ade_4414741.png change filename to text .imagette298361171767146344/ imagette298361171767146344/1767146007_1391109_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497831_0.png.png imagette298361171767146344/1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497205_0.png.png imagette298361171767146344/1767146227_1404156_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497722_0.png.png imagette298361171767146344/1767146227_1404156_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497766_0.png.png imagette298361171767146344/1767146227_1404156_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497787_0.png.png imagette298361171767146344/1767145868_1380650_1401818838_c72d07ef6fa3766e27ea74572f6100aa_rle_crop_4086497208_0.png.png imagette298361171767146344/1767146007_1391109_1401818873_45e28f3eff006df163cc6c3b3ba82d3b_rle_crop_4086497787_0.png.png imagette298361171767146344/1767146068_1393805_1401819008_107241ffb7146c7eb245a91e42013cd4_rle_crop_4086497942_0.png.png imagette298361171767146344/1767146227_1404156_1401818859_5228406d41a54d790a62832554f0ead0_rle_crop_4086497831_0.png.png imagette298361171767146344/1767146007_1391109_1401818907_9d6632673a145b1441ba10375d6451b6_rle_crop_4086497766_0.png.png imagette298361171767146344/1767146007_1391109_1401818921_518c13465913921691ebc3745a48e8c3_rle_crop_4086497722_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c040d3b1ebc305ae403a932382969a1a_21268977.png imagette298361171767146344 29836120 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=29836120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401819050: '1767145987_1388848_1401818900_d54ca4925bb0d14d1d50d934b82b4875_rle_crop_4086497451_0.png', 1401819114: '1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497955_0.png', 1401819115: '1767146068_1393805_1401819002_676dbe5fd022ef8750a85fd261f2b2f2_rle_crop_4086497967_0.png', 1401819137: '1767146105_1396645_1401819012_a85910ea6c48b8fcbc2ed758de614595_rle_crop_4086498104_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/be234a4382fc2e4c064d4fdc6d4be847_5930052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/8c3d258ceef70037f4c3b9a9b2dc5c05_57451187.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/51ce6e48280c03f2391ff886c1e81ec5_64979710.png change filename to text .imagette298361201767146345/ imagette298361201767146345/1767145987_1388848_1401818900_d54ca4925bb0d14d1d50d934b82b4875_rle_crop_4086497451_0.png.png imagette298361201767146345/1767146068_1393805_1401819005_9720b28efe87bd9d7310b4ab351307d0_rle_crop_4086497955_0.png.png imagette298361201767146345/1767146105_1396645_1401819012_a85910ea6c48b8fcbc2ed758de614595_rle_crop_4086498104_0.png.png imagette298361201767146345/1767146068_1393805_1401819002_676dbe5fd022ef8750a85fd261f2b2f2_rle_crop_4086497967_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/4f397caffa4cb28bb6f4771f550aa15a_32427914.png imagette298361201767146345 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29836084 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29836121,29836122,29836123,29836124,29836125,29836126,29836127,29836128,29836129,29836130,29836131,29836132?tags=cartonnette,mal_croppe,plastique,metal,Carton_brun,autre_refus,papier,environnement,Teint_Dans_La_Masse,kraft,flou,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1401819236] : ('0.04745407280978445',) no score found for photo 1401819236 We are sending mail with results at report@fotonower.com args[1401819233] : ('0.04745407280978445',) no score found for photo 1401819233 We are sending mail with results at report@fotonower.com args[1401819231] : ('0.04745407280978445',) no score found for photo 1401819231 We are sending mail with results at report@fotonower.com args[1401819229] : ('0.04745407280978445',) no score found for photo 1401819229 We are sending mail with results at report@fotonower.com args[1401819194] : ('0.04745407280978445',) no score found for photo 1401819194 We are sending mail with results at report@fotonower.com args[1401819193] : ('0.04745407280978445',) no score found for photo 1401819193 We are sending mail with results at report@fotonower.com args[1401819190] : ('0.04745407280978445',) no score found for photo 1401819190 We are sending mail with results at report@fotonower.com args[1401819189] : ('0.04745407280978445',) no score found for photo 1401819189 We are sending mail with results at report@fotonower.com args[1401819188] : ('0.04745407280978445',) no score found for photo 1401819188 We are sending mail with results at report@fotonower.com args[1401819186] : ('0.04745407280978445',) no score found for photo 1401819186 We are sending mail with results at report@fotonower.com refus_total : 0.04745407280978445 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=29836084 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_P29836084_31-12-2025_02_59_00.pdf results_Auto_P29836084_31-12-2025_02_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_02_59_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29836084','results_Auto_P29836084_31-12-2025_02_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_02_59_00.pdf','pdf','','0.19','0.04745407280978445') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29836084]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] map_info['map_portfolio_photo'] : {29836084: [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186, 1401819167, 1401819163, 1401819160, 1401819158, 1401819156, 1401819121, 1401819119, 1401819073, 1401819067, 1401819061, 1401819058, 1401819049, 1401819045, 1401819042, 1401819039, 1401819038, 1401819037, 1401819012, 1401819008, 1401819005, 1401819002, 1401818978, 1401818973, 1401818970, 1401818969, 1401818968, 1401818934, 1401818931, 1401818929, 1401818922, 1401818921, 1401818913, 1401818910, 1401818907, 1401818903, 1401818900, 1401818897, 1401818877, 1401818873, 1401818870, 1401818867, 1401818859, 1401818839, 1401818838, 1401818836, 1401818803, 1401818800]} final : False mtd_id 4302 list_pids : [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] 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, '4292580') ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '29836084', '1401819236', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580')] time used for this insertion : 0.01576685905456543 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.116386651992798 time spend to save output : 0.015975236892700195 total time spend for step 4 : 6.132361888885498 step5:split_time_score Wed Dec 31 02:59:06 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 : ['29836084'] 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 : [('29836084',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29836084) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401819186: {'path': 'temp/1767146340_525429_1401819186_3f904168d4cf7488abb4534444b6e2bf.jpg', 'extension': 'jpg'}, 1401819188: {'path': 'temp/1767146340_525429_1401819188_8a71e32972bd6ad0fdce6a117d3f7de2.jpg', 'extension': 'jpg'}, 1401819189: {'path': 'temp/1767146340_525429_1401819189_3596897a611b48b14fd426ee06decd78.jpg', 'extension': 'jpg'}, 1401819229: {'path': 'temp/1767146340_525429_1401819229_c6ab616d944e9e15c26cef0eac220eea.jpg', 'extension': 'jpg'}, 1401819231: {'path': 'temp/1767146340_525429_1401819231_d89e3dd4827fc485d285ae784e7008f6.jpg', 'extension': 'jpg'}, 1401819233: {'path': 'temp/1767146340_525429_1401819233_136ddf5114cda2cbb6e0e2b3f09cd2bb.jpg', 'extension': 'jpg'}, 1401819190: {'path': 'temp/1767146340_525429_1401819190_d8af4a481d2fecabed8fd7658b5db262.jpg', 'extension': 'jpg'}, 1401819193: {'path': 'temp/1767146340_525429_1401819193_20716d4e1f3df8c1eb675ff7b7b03e42.jpg', 'extension': 'jpg'}, 1401819194: {'path': 'temp/1767146340_525429_1401819194_dd23ccb8df08e8f572ac93dcd914d082.jpg', 'extension': 'jpg'}, 1401819236: {'path': 'temp/1767146340_525429_1401819236_48689e7a9fca4090d62b9621075dfb26.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 = 29836084; (('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 = 29836084 group by h (('02', 57),) 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=29836084 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 (29836084) 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 (29836084) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31122025 29836084 Nombre de photos uploadées : 57 / 23040 (0%) 31122025 29836084 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 31122025 29836084 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1401818803, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/78050c1c455706b8291f6bc054f2f6fd.jpg', 'username': None, 'uploaded_at': 1767145567, 'text': 'image_31122025_02_45_35_10147.jpg'}, {'photo_id': 1401818800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/2f3dba6274d82a6adaf898972c2ff2c8.jpg', 'username': None, 'uploaded_at': 1767145567, 'text': 'image_31122025_02_45_44_9129.jpg'}, {'photo_id': 1401818839, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/7f54cad61557f7a7012d3c550a35d5e4.jpg', 'username': None, 'uploaded_at': 1767145627, 'text': 'image_31122025_02_45_54_10135.jpg'}, {'photo_id': 1401818838, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/31/c72d07ef6fa3766e27ea74572f6100aa.jpg', 'username': None, 'uploaded_at': 1767145627, 'text': 'image_31122025_02_46_04_010163m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024154186248779297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29836084, '2025-12-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2816377,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2377479076385498 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= 2816377 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29831337, 'dashboard_result_id': 18873523, '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_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29832073, 'dashboard_result_id': 18873524, '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_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29832543, 'dashboard_result_id': 18873525, '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_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29832896, 'dashboard_result_id': 18873526, '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_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29833935, 'dashboard_result_id': 18873527, '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_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29834250, 'dashboard_result_id': 18873528, '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_P29834250_31-12-2025_02_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29834686, 'dashboard_result_id': 18873529, '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_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29835254, 'dashboard_result_id': 18873530, '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_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29835728, 'dashboard_result_id': 18873531, '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_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}"}, {'dashboat_entry_day': 2816377, 'dashboard_run_id': 2823430, 'mtr_portfolio_id': 29836084, 'dashboard_result_id': 18873532, '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_P29836084_31-12-2025_02_57_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, '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 = 29831337 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': 4291932, 'mtr_portfolio_id': 29831337, 'created_at': datetime.datetime(2025, 12, 31, 0, 16, 58), 'result': '0.052198134150091356', 'result_long': None, 'result_double': None}] Qualite : 0.052198134150091356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29831337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29831337 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_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, 'pht': 3726}}" where mtr_portfolio_id = 29831337 and dashboard_run_id = 2823430 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`=29831337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873523, 0.052198134150091356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29831337_31-12-2025_00_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29831343, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29831344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29831345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29831346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29831347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29831348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29831349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29831350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29831351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29831352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29831353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29831354, '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 = 29832073 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': 4291987, 'mtr_portfolio_id': 29832073, 'created_at': datetime.datetime(2025, 12, 31, 0, 32, 58), 'result': '0.061503784814258215', 'result_long': None, 'result_double': None}] Qualite : 0.061503784814258215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832073 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_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, 'pht': 3726}}" where mtr_portfolio_id = 29832073 and dashboard_run_id = 2823430 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`=29832073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873524, 0.061503784814258215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832073_31-12-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29832079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832089, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832090, '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 = 29832543 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': 4292070, 'mtr_portfolio_id': 29832543, 'created_at': datetime.datetime(2025, 12, 31, 0, 48, 59), 'result': '0.06506854906988552', 'result_long': None, 'result_double': None}] Qualite : 0.06506854906988552 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832543 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_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, 'pht': 3726}}" where mtr_portfolio_id = 29832543 and dashboard_run_id = 2823430 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`=29832543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873525, 0.06506854906988552, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832543_31-12-2025_00_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29832546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832550, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832553, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832557, '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 = 29832896 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': 4292114, 'mtr_portfolio_id': 29832896, 'created_at': datetime.datetime(2025, 12, 31, 1, 34, 59), 'result': '0.07329693927573656', 'result_long': None, 'result_double': None}] Qualite : 0.07329693927573656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29832896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29832896 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_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, 'pht': 3726}}" where mtr_portfolio_id = 29832896 and dashboard_run_id = 2823430 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`=29832896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873526, 0.07329693927573656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29832896_31-12-2025_01_34_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29832903, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29832904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29832905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29832906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29832907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29832908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29832909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29832910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29832911, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29832912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29832913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29832914, '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 = 29833935 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': 4292261, 'mtr_portfolio_id': 29833935, 'created_at': datetime.datetime(2025, 12, 31, 1, 48, 58), 'result': '0.05884767244317096', 'result_long': None, 'result_double': None}] Qualite : 0.05884767244317096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29833935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29833935 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_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, 'pht': 3726}}" where mtr_portfolio_id = 29833935 and dashboard_run_id = 2823430 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`=29833935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873527, 0.05884767244317096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29833935_31-12-2025_01_48_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29833938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29833939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29833940, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29833941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29833942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29833943, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29833944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29833945, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29833946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29833947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29833948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29833949, '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 = 29834250 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': 4292301, 'mtr_portfolio_id': 29834250, 'created_at': datetime.datetime(2025, 12, 31, 2, 2, 57), 'result': '0.06313558316031297', 'result_long': None, 'result_double': None}] Qualite : 0.06313558316031297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834250 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_P29834250_31-12-2025_02_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, 'pht': 3726}}" where mtr_portfolio_id = 29834250 and dashboard_run_id = 2823430 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`=29834250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873528, 0.06313558316031297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834250_31-12-2025_02_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29834261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834267, '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 = 29834686 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': 4292375, 'mtr_portfolio_id': 29834686, 'created_at': datetime.datetime(2025, 12, 31, 2, 16, 59), 'result': '0.044650996866048724', 'result_long': None, 'result_double': None}] Qualite : 0.044650996866048724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29834686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29834686 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_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, 'pht': 3726}}" where mtr_portfolio_id = 29834686 and dashboard_run_id = 2823430 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`=29834686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873529, 0.044650996866048724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29834686_31-12-2025_02_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29834694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29834695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29834696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29834697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29834698, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29834699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29834700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29834701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29834702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29834703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29834704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29834705, '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 = 29835254 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': 4292445, 'mtr_portfolio_id': 29835254, 'created_at': datetime.datetime(2025, 12, 31, 2, 32, 58), 'result': '0.07455178033029718', 'result_long': None, 'result_double': None}] Qualite : 0.07455178033029718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835254 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_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, 'pht': 3726}}" where mtr_portfolio_id = 29835254 and dashboard_run_id = 2823430 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`=29835254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873530, 0.07455178033029718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835254_31-12-2025_02_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835272, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835273, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835274, '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 = 29835728 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': 4292526, 'mtr_portfolio_id': 29835728, 'created_at': datetime.datetime(2025, 12, 31, 2, 46, 58), 'result': '0.07713505857679008', 'result_long': None, 'result_double': None}] Qualite : 0.07713505857679008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29835728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29835728 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_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, 'pht': 3726}}" where mtr_portfolio_id = 29835728 and dashboard_run_id = 2823430 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`=29835728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873531, 0.07713505857679008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29835728_31-12-2025_02_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29835737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29835738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29835739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29835740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29835741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29835742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29835743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29835744, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29835745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29835746, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29835747, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29835748, '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 = 29836084 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': 4292580, 'mtr_portfolio_id': 29836084, 'created_at': datetime.datetime(2025, 12, 31, 2, 59), 'result': '0.04745407280978445', 'result_long': None, 'result_double': None}] Qualite : 0.04745407280978445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29836084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_02_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29836084 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_P29836084_31-12-2025_02_59_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, 'pht': 3726}}" where mtr_portfolio_id = 29836084 and dashboard_run_id = 2823430 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`=29836084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18873532, 0.04745407280978445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29836084_31-12-2025_02_59_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29836109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29836110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29836111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29836112, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29836113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29836114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29836115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29836116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29836117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29836118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29836119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29836120, '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 (29831337,29832073,29832543,29832896,29833935,29834250,29834686,29835254,29835728,29836084) result : ((1401800738,), (1401800779,), (1401800818,), (1401800857,), (1401801320,), (1401801377,), (1401801417,), (1401801452,), (1401801488,), (1401802080,), (1401802112,), (1401802149,), (1401802219,), (1401802273,), (1401802307,), (1401802494,), (1401802552,), (1401802627,), (1401802789,), (1401802823,), (1401802865,), (1401803140,), (1401803145,), (1401803165,), (1401803197,), (1401803814,), (1401803821,), (1401803825,), (1401803847,), (1401803892,), (1401804300,), (1401804333,), (1401804367,), (1401804398,), (1401804429,), (1401804432,), (1401804558,), (1401804589,), (1401804615,), (1401804623,), (1401804991,), (1401805024,), (1401805026,), (1401805034,), (1401805156,), (1401805166,), (1401805172,), (1401805175,), (1401805178,), (1401805182,), (1401805201,), (1401805204,), (1401805206,), (1401805209,), (1401805393,), (1401805397,), (1401805516,), (1401805517,), (1401805520,), (1401805526,), (1401805531,), (1401805553,), (1401805562,), (1401805569,), (1401805577,), (1401805580,), (1401805607,), (1401805613,), (1401805615,), (1401805618,), (1401805621,), (1401805668,), (1401805664,), (1401805666,), (1401805693,), (1401805695,), (1401805698,), (1401805701,), (1401805738,), (1401805740,), (1401805742,), (1401805745,), (1401805749,), (1401805767,), (1401805770,), (1401805775,), (1401805780,), (1401805784,), (1401805817,), (1401805819,), (1401805823,), (1401805826,), (1401805848,), (1401805851,), (1401805852,), (1401805854,), (1401805856,), (1401805887,), (1401805888,), (1401805891,), (1401805894,), (1401805916,), (1401805919,), (1401805922,), (1401805926,), (1401805928,), (1401805931,), (1401805936,), (1401805939,), (1401805955,), (1401805957,), (1401805959,), (1401805961,), (1401805986,), (1401805989,), (1401805991,), (1401805994,), (1401806035,), (1401806036,), (1401806037,), (1401806040,), (1401806045,), (1401806049,), (1401806063,), (1401806066,), (1401806069,), (1401806129,), (1401806131,), (1401806133,), (1401806135,), (1401806138,), (1401806141,), (1401806180,), (1401806181,), (1401806182,), (1401806185,), (1401806191,), (1401806218,), (1401806221,), (1401806224,), (1401806226,), (1401806228,), (1401806233,), (1401806215,), (1401806283,), (1401806433,), (1401806485,), (1401806515,), (1401806517,), (1401806584,), (1401806586,), (1401806589,), (1401806612,), (1401806614,), (1401806617,), (1401806621,), (1401806625,), (1401806629,), (1401806650,), (1401806653,), (1401806656,), (1401806659,), (1401806662,), (1401806666,), (1401806671,), (1401806675,), (1401806690,), (1401806700,), (1401806703,), (1401806705,), (1401806750,), (1401806752,), (1401806754,), (1401806758,), (1401806782,), (1401806784,), (1401806786,), (1401806790,), (1401806793,), (1401806799,), (1401806807,), (1401806820,), (1401806821,), (1401806823,), (1401806825,), (1401806853,), (1401806854,), (1401806855,), (1401806910,), (1401806897,), (1401806899,), (1401806901,), (1401806905,), (1401806909,), (1401806934,), (1401806936,), (1401806940,), (1401806943,), (1401806946,), (1401806949,), (1401806990,), (1401806992,), (1401806994,), (1401806997,), (1401807001,), (1401807021,), (1401807022,), (1401807048,), (1401807084,), (1401807119,), (1401807152,), (1401807284,), (1401807315,), (1401807445,), (1401807478,), (1401807819,), (1401807820,), (1401807830,), (1401807860,), (1401807894,), (1401808075,), (1401808082,), (1401808089,), (1401808116,), (1401808118,), (1401808120,), (1401808124,), (1401808127,), (1401808130,), (1401808148,), (1401808154,), (1401808156,), (1401808158,), (1401808161,), (1401808164,), (1401808188,), (1401808189,), (1401808190,), (1401808192,), (1401808195,), (1401808217,), (1401808219,), (1401808221,), (1401808251,), (1401808253,), (1401808255,), (1401808291,), (1401808299,), (1401808304,), (1401808307,), (1401808310,), (1401808348,), (1401808355,), (1401808357,), (1401808363,), (1401808364,), (1401808368,), (1401808379,), (1401808406,), (1401811854,), (1401811850,), (1401811882,), (1401811884,), (1401811885,), (1401811887,), (1401811918,), (1401811919,), (1401811922,), (1401811925,), (1401811943,), (1401811946,), (1401811948,), (1401811994,), (1401811996,), (1401811997,), (1401812017,), (1401812019,), (1401812022,), (1401812027,), (1401812031,), (1401812035,), (1401812052,), (1401812061,), (1401812063,), (1401812065,), (1401812091,), (1401812093,), (1401812096,), (1401812129,), (1401812130,), (1401812132,), (1401812154,), (1401812156,), (1401812158,), (1401812162,), (1401812166,), (1401812173,), (1401812181,), (1401812182,), (1401812191,), (1401812194,), (1401812227,), (1401812228,), (1401812230,), (1401812290,), (1401812277,), (1401812279,), (1401812281,), (1401812285,), (1401812308,), (1401812310,), (1401812312,), (1401812341,), (1401812344,), (1401812346,), (1401812371,), (1401812373,), (1401812375,), (1401812379,), (1401812383,), (1401812387,), (1401812396,), (1401812398,), (1401812425,), (1401812454,), (1401812457,), (1401812484,), (1401812485,), (1401812486,), (1401812487,), (1401812532,), (1401812536,), (1401812538,), (1401812542,), (1401812565,), (1401812566,), (1401812568,), (1401812573,), (1401812576,), (1401812579,), (1401812586,), (1401812597,), (1401812600,), (1401812602,), (1401812604,), (1401812631,), (1401812632,), (1401812633,), (1401812668,), (1401812670,), (1401812672,), (1401812676,), (1401812699,), (1401812701,), (1401812703,), (1401812741,), (1401812744,), (1401812747,), (1401812751,), (1401812782,), (1401812786,), (1401812790,), (1401812794,), (1401812798,), (1401812807,), (1401812808,), (1401812809,), (1401812939,), (1401812873,), (1401812906,), (1401813309,), (1401813363,), (1401813427,), (1401814278,), (1401814311,), (1401814345,), (1401814377,), (1401814410,), (1401814475,), (1401815025,), (1401815145,), (1401815179,), (1401816086,), (1401816151,), (1401816203,), (1401816572,), (1401816584,), (1401816620,), (1401817164,), (1401817166,), (1401817167,), (1401817384,), (1401817424,), (1401817427,), (1401817466,), (1401817469,), (1401817471,), (1401817491,), (1401817493,), (1401817495,), (1401817499,), (1401817504,), (1401817533,), (1401817535,), (1401817538,), (1401817561,), (1401817563,), (1401817565,), (1401817568,), (1401817571,), (1401817596,), (1401817597,), (1401817598,), (1401817600,), (1401817626,), (1401817629,), (1401817632,), (1401817635,), (1401817639,), (1401817641,), (1401817675,), (1401817671,), (1401817674,), (1401817697,), (1401817699,), (1401817732,), (1401817734,), (1401817737,), (1401817739,), (1401817770,), (1401817773,), (1401817776,), (1401817779,), (1401817782,), (1401817820,), (1401817822,), (1401817824,), (1401817828,), (1401817833,), (1401817837,), (1401817853,), (1401817855,), (1401817857,), (1401817860,), (1401817884,), (1401817887,), (1401817890,), (1401817913,), (1401817914,), (1401817916,), (1401817920,), (1401817924,), (1401817955,), (1401817958,), (1401817961,), (1401817964,), (1401817967,), (1401817999,), (1401818002,), (1401818004,), (1401818006,), (1401818038,), (1401818048,), (1401818049,), (1401818076,), (1401818080,), (1401818084,), (1401818110,), (1401818113,), (1401818115,), (1401818118,), (1401818122,), (1401818150,), (1401818182,), (1401818186,), (1401818191,), (1401818194,), (1401818198,), (1401818200,), (1401818229,), (1401818220,), (1401818222,), (1401818223,), (1401818225,), (1401818228,), (1401818248,), (1401818251,), (1401818253,), (1401818256,), (1401818261,), (1401818283,), (1401818285,), (1401818288,), (1401818292,), (1401818296,), (1401818298,), (1401818318,), (1401818321,), (1401818330,), (1401818334,), (1401818337,), (1401818340,), (1401818364,), (1401818367,), (1401818370,), (1401818374,), (1401818379,), (1401818382,), (1401818421,), (1401818432,), (1401818434,), (1401818437,), (1401818441,), (1401818460,), (1401818461,), (1401818462,), (1401818502,), (1401818505,), (1401818508,), (1401818512,), (1401818550,), (1401818552,), (1401818554,), (1401818557,), (1401818560,), (1401818563,), (1401818588,), (1401818595,), (1401818597,), (1401818599,), (1401818603,), (1401818608,), (1401818627,), (1401818629,), (1401818661,), (1401818663,), (1401818665,), (1401818667,), (1401818670,), (1401818697,), (1401818698,), (1401818700,), (1401818704,), (1401818708,), (1401818713,), (1401818724,), (1401818726,), (1401818730,), (1401818740,), (1401818742,), (1401818745,), (1401818748,), (1401818751,), (1401818753,), (1401818769,), (1401818771,), (1401818772,), (1401818806,), (1401818800,), (1401818803,), (1401818836,), (1401818838,), (1401818839,), (1401818859,), (1401818867,), (1401818870,), (1401818873,), (1401818877,), (1401818897,), (1401818900,), (1401818903,), (1401818907,), (1401818910,), (1401818913,), (1401818921,), (1401818922,), (1401818929,), (1401818931,), (1401818934,), (1401818968,), (1401818969,), (1401818970,), (1401818973,), (1401818978,), (1401819002,), (1401819005,), (1401819008,), (1401819012,), (1401819037,), (1401819038,), (1401819039,), (1401819042,), (1401819045,), (1401819049,), (1401819058,), (1401819061,), (1401819067,), (1401819073,), (1401819119,), (1401819121,), (1401819156,), (1401819158,), (1401819160,), (1401819163,), (1401819167,), (1401819186,), (1401819188,), (1401819189,), (1401819190,), (1401819193,), (1401819194,), (1401819229,), (1401819231,), (1401819233,), (1401819236,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31122025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29836084]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] map_info['map_portfolio_photo'] : {29836084: [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186, 1401819167, 1401819163, 1401819160, 1401819158, 1401819156, 1401819121, 1401819119, 1401819073, 1401819067, 1401819061, 1401819058, 1401819049, 1401819045, 1401819042, 1401819039, 1401819038, 1401819037, 1401819012, 1401819008, 1401819005, 1401819002, 1401818978, 1401818973, 1401818970, 1401818969, 1401818968, 1401818934, 1401818931, 1401818929, 1401818922, 1401818921, 1401818913, 1401818910, 1401818907, 1401818903, 1401818900, 1401818897, 1401818877, 1401818873, 1401818870, 1401818867, 1401818859, 1401818839, 1401818838, 1401818836, 1401818803, 1401818800]} final : True mtd_id 4302 list_pids : [1401819236, 1401819233, 1401819231, 1401819229, 1401819194, 1401819193, 1401819190, 1401819189, 1401819188, 1401819186] Looping around the photos to save general results len do output : 1 /29836084Didn'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, '4292580') ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580') ('4302', None, None, None, None, None, None, None, '4292580') ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580') 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', None, '29836084', 'None', None, None, None, None, '4292580'), ('4302', '29836084', '1401819236', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819233', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819231', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819229', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819194', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819193', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819190', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819189', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819188', None, None, None, None, None, '4292580'), ('4302', '29836084', '1401819186', None, None, None, None, None, '4292580')] time used for this insertion : 0.01823878288269043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0005371570587158 time spend to save output : 0.01843738555908203 total time spend for step 5 : 1.0189745426177979 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 (4292580) 2.03user 2.35system 0:12.40elapsed 35%CPU (0avgtext+0avgdata 167904maxresident)k 16inputs+14456outputs (11major+67564minor)pagefaults 0swaps