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 : 721375 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 (2777471) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2777471) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578157 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2777471'] with mtr_portfolio_ids : ['22578157'] and first list_photo_ids : [] new path : /proc/721375/ Name: python3 Umask: 0002 State: R (running) Tgid: 721375 Ngid: 0 Pid: 721375 PPid: 721374 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 721375 NSpid: 721375 NSpgid: 719505 NSsid: 719505 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100108 kB VmRSS: 100108 kB RssAnon: 60208 kB RssFile: 39900 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 77 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '721375', 'Ngid': '0', 'Pid': '721375', 'PPid': '721374', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '721375', 'NSpid': '721375', 'NSpgid': '719505', 'NSsid': '719505', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100108 kB', 'VmRSS': '100108 kB', 'RssAnon': '60208 kB', 'RssFile': '39900 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '77', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '721375', '1107228', '0', '1107228', '865976', '100108', b'', 'marlene', '2777471') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22578157) 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 (2777471 ) ) 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 (22578157) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355006267, 'portfolio_id': 22578157}, {'photo_id': 1355006264, 'portfolio_id': 22578157}, {'photo_id': 1355006262, 'portfolio_id': 22578157}, {'photo_id': 1355006259, 'portfolio_id': 22578157}, {'photo_id': 1355006241, 'portfolio_id': 22578157}, {'photo_id': 1355006237, 'portfolio_id': 22578157}, {'photo_id': 1355006233, 'portfolio_id': 22578157}, {'photo_id': 1355006228, 'portfolio_id': 22578157}, {'photo_id': 1355006208, 'portfolio_id': 22578157}, {'photo_id': 1355006206, 'portfolio_id': 22578157}, {'photo_id': 1355006204, 'portfolio_id': 22578157}, {'photo_id': 1355006175, 'portfolio_id': 22578157}, {'photo_id': 1355006173, 'portfolio_id': 22578157}, {'photo_id': 1355006169, 'portfolio_id': 22578157}, {'photo_id': 1355006165, 'portfolio_id': 22578157}, {'photo_id': 1355006162, 'portfolio_id': 22578157}, {'photo_id': 1355006159, 'portfolio_id': 22578157}, {'photo_id': 1355006056, 'portfolio_id': 22578157}, {'photo_id': 1355006055, 'portfolio_id': 22578157}, {'photo_id': 1355006053, 'portfolio_id': 22578157}, {'photo_id': 1355006021, 'portfolio_id': 22578157}, {'photo_id': 1355006019, 'portfolio_id': 22578157}, {'photo_id': 1355006017, 'portfolio_id': 22578157}, {'photo_id': 1355006015, 'portfolio_id': 22578157}, {'photo_id': 1355005996, 'portfolio_id': 22578157}, {'photo_id': 1355005990, 'portfolio_id': 22578157}, {'photo_id': 1355005957, 'portfolio_id': 22578157}, {'photo_id': 1355005955, 'portfolio_id': 22578157}, {'photo_id': 1355005954, 'portfolio_id': 22578157}, {'photo_id': 1355005953, 'portfolio_id': 22578157}, {'photo_id': 1355005923, 'portfolio_id': 22578157}, {'photo_id': 1355005920, 'portfolio_id': 22578157}, {'photo_id': 1355005917, 'portfolio_id': 22578157}, {'photo_id': 1355005915, 'portfolio_id': 22578157}, {'photo_id': 1355005913, 'portfolio_id': 22578157}, {'photo_id': 1355005911, 'portfolio_id': 22578157}, {'photo_id': 1355005885, 'portfolio_id': 22578157}, {'photo_id': 1355005883, 'portfolio_id': 22578157}, {'photo_id': 1355005880, 'portfolio_id': 22578157}, {'photo_id': 1355005878, 'portfolio_id': 22578157}, {'photo_id': 1355005877, 'portfolio_id': 22578157}, {'photo_id': 1355005876, 'portfolio_id': 22578157}, {'photo_id': 1355005851, 'portfolio_id': 22578157}, {'photo_id': 1355005849, 'portfolio_id': 22578157}, {'photo_id': 1355005846, 'portfolio_id': 22578157}, {'photo_id': 1355005811, 'portfolio_id': 22578157}, {'photo_id': 1355005809, 'portfolio_id': 22578157}, {'photo_id': 1355005808, 'portfolio_id': 22578157}, {'photo_id': 1355005783, 'portfolio_id': 22578157}, {'photo_id': 1355005781, 'portfolio_id': 22578157}, {'photo_id': 1355005779, 'portfolio_id': 22578157}, {'photo_id': 1355005778, 'portfolio_id': 22578157}, {'photo_id': 1355005777, 'portfolio_id': 22578157}, {'photo_id': 1355005776, 'portfolio_id': 22578157}, {'photo_id': 1355005729, 'portfolio_id': 22578157}] map_portfolio_id_photo_id: {22578157: [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228, 1355006208, 1355006206, 1355006204, 1355006175, 1355006173, 1355006169, 1355006165, 1355006162, 1355006159, 1355006056, 1355006055, 1355006053, 1355006021, 1355006019, 1355006017, 1355006015, 1355005996, 1355005990, 1355005957, 1355005955, 1355005954, 1355005953, 1355005923, 1355005920, 1355005917, 1355005915, 1355005913, 1355005911, 1355005885, 1355005883, 1355005880, 1355005878, 1355005877, 1355005876, 1355005851, 1355005849, 1355005846, 1355005811, 1355005809, 1355005808, 1355005783, 1355005781, 1355005779, 1355005778, 1355005777, 1355005776, 1355005729]} ##### 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.014583826065063477 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu May 1 03:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22578157) 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 : 22578157 get user id for portfolio 22578157 get sub ptf for main ptf 22578157, type 3726 and hashtags ['Carton_gris', 'kraft', 'cartonnette', 'flou', 'plastique', 'environnement', 'metal', 'papier', 'Carton_brun', 'Teint_Dans_La_Masse', 'mal_croppe', 'autre_refus'] 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`=22578157 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','cartonnette','flou','plastique','environnement','metal','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus')) 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`=22578157 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','cartonnette','flou','plastique','environnement','metal','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22578157, 'sub_port_id': 22578161, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010340, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'Carton_brun': {'main_port_id': 22578157, 'sub_port_id': 22578162, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010341, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'kraft': {'main_port_id': 22578157, 'sub_port_id': 22578163, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010342, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'papier': {'main_port_id': 22578157, 'sub_port_id': 22578164, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010343, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'Carton_gris': {'main_port_id': 22578157, 'sub_port_id': 22578165, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010344, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'plastique': {'main_port_id': 22578157, 'sub_port_id': 22578166, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010345, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'cartonnette': {'main_port_id': 22578157, 'sub_port_id': 22578167, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010346, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'flou': {'main_port_id': 22578157, 'sub_port_id': 22578168, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010347, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'metal': {'main_port_id': 22578157, 'sub_port_id': 22578169, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010348, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'mal_croppe': {'main_port_id': 22578157, 'sub_port_id': 22578170, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010349, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 22578157, 'sub_port_id': 22578171, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010350, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}, 'autre_refus': {'main_port_id': 22578157, 'sub_port_id': 22578172, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010351, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578161 , 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=22578157 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 (22578161) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578162 , 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=22578157 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 (22578162) result : ((1355005889,), (1355005906,), (1355005994,), (1355006004,), (1355006005,), (1355006045,), (1355006182,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578163 , 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=22578157 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 (22578163) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578164 , 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=22578157 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 (22578164) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578165 , 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=22578157 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 (22578165) result : ((1355005902,), (1355005984,), (1355005985,), (1355005986,), (1355005987,), (1355006044,), (1355006126,), (1355006198,), (1355006254,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578166 , 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=22578157 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 (22578166) result : ((1355006047,), (1355006127,), (1355006255,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578167 , 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=22578157 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 (22578167) result : ((1355005904,), (1355005905,), (1355005974,), (1355005989,), (1355005991,), (1355005992,), (1355005993,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578168 , 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=22578157 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 (22578168) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578169 , 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=22578157 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 (22578169) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578170 , 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=22578157 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 (22578170) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578171 , 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=22578157 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 (22578171) result : ((1355005888,), (1355005938,), (1355005939,), (1355005973,), (1355005979,), (1355005980,), (1355006043,), (1355006123,), (1355006196,), (1355006253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22578172 , 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=22578157 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 (22578172) result : ((1355005941,), (1355005942,), (1355005981,), (1355005982,), (1355006197,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22578157) result : ((1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22578157 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','cartonnette','flou','plastique','environnement','metal','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus')) 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`=22578157 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','cartonnette','flou','plastique','environnement','metal','papier','Carton_brun','Teint_Dans_La_Masse','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22578157, 'sub_port_id': 22578173, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010352, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'Carton_brun': {'main_port_id': 22578157, 'sub_port_id': 22578174, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010353, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'kraft': {'main_port_id': 22578157, 'sub_port_id': 22578175, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010354, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'papier': {'main_port_id': 22578157, 'sub_port_id': 22578176, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010355, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'Carton_gris': {'main_port_id': 22578157, 'sub_port_id': 22578177, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010356, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'plastique': {'main_port_id': 22578157, 'sub_port_id': 22578178, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010357, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'cartonnette': {'main_port_id': 22578157, 'sub_port_id': 22578179, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010358, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'flou': {'main_port_id': 22578157, 'sub_port_id': 22578180, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010359, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'metal': {'main_port_id': 22578157, 'sub_port_id': 22578181, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010360, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'mal_croppe': {'main_port_id': 22578157, 'sub_port_id': 22578182, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010361, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22578157, 'sub_port_id': 22578183, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010362, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}, 'autre_refus': {'main_port_id': 22578157, 'sub_port_id': 22578184, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15010363, 'last_updated_at': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 3, 42, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 3, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578162 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578163 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578168 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22578184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22578172 lien utilise dans velours : https://www.fotonower.com/velours/22578173,22578174,22578175,22578176,22578177,22578178,22578179,22578180,22578181,22578182,22578183,22578184?tags=environnement,Carton_brun,kraft,papier,Carton_gris,plastique,cartonnette,flou,metal,mal_croppe,Teint_Dans_La_Masse,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22578157]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] map_info['map_portfolio_photo'] : {22578157: [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228, 1355006208, 1355006206, 1355006204, 1355006175, 1355006173, 1355006169, 1355006165, 1355006162, 1355006159, 1355006056, 1355006055, 1355006053, 1355006021, 1355006019, 1355006017, 1355006015, 1355005996, 1355005990, 1355005957, 1355005955, 1355005954, 1355005953, 1355005923, 1355005920, 1355005917, 1355005915, 1355005913, 1355005911, 1355005885, 1355005883, 1355005880, 1355005878, 1355005877, 1355005876, 1355005851, 1355005849, 1355005846, 1355005811, 1355005809, 1355005808, 1355005783, 1355005781, 1355005779, 1355005778, 1355005777, 1355005776, 1355005729]} final : False mtd_id 4302 list_pids : [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] Looping around the photos to save general results len do output : 1 /22578157. 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, '2777471') ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22578157', "{'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172}", None, None, None, None, '2777471'), ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471')] time used for this insertion : 0.015733003616333008 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4541943073272705 time spend to save output : 0.01604938507080078 total time spend for step 1 : 1.4702436923980713 step2:final Thu May 1 03:45:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22578157) 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 22578157 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355005729,1355005783,1355005781,1355005779,1355005778,1355005777,1355005776,1355005811,1355005809,1355005808,1355005851,1355005849,1355005846,1355005885,1355005883,1355005880,1355005878,1355005877,1355005876,1355005923,1355005920,1355005917,1355005915,1355005913,1355005911,1355005957,1355005955,1355005954,1355005953,1355005996,1355006021,1355005990,1355006019,1355006017,1355006015,1355006056,1355006055,1355006053,1355006175,1355006173,1355006169,1355006165,1355006162,1355006159,1355006208,1355006206,1355006204,1355006241,1355006237,1355006233,1355006228,1355006267,1355006264,1355006262,1355006259); 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([22578157]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} new output for save of step final : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] map_info['map_portfolio_photo'] : {22578157: [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228, 1355006208, 1355006206, 1355006204, 1355006175, 1355006173, 1355006169, 1355006165, 1355006162, 1355006159, 1355006056, 1355006055, 1355006053, 1355006021, 1355006019, 1355006017, 1355006015, 1355005996, 1355005990, 1355005957, 1355005955, 1355005954, 1355005953, 1355005923, 1355005920, 1355005917, 1355005915, 1355005913, 1355005911, 1355005885, 1355005883, 1355005880, 1355005878, 1355005877, 1355005876, 1355005851, 1355005849, 1355005846, 1355005811, 1355005809, 1355005808, 1355005783, 1355005781, 1355005779, 1355005778, 1355005777, 1355005776, 1355005729]} final : False mtd_id 4302 list_pids : [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] Looping around the photos to save general results len do output : 8 /1355006267.Didn't retrieve data . /1355006264.Didn't retrieve data . /1355006262.Didn't retrieve data . /1355006259.Didn't retrieve data . /1355006241.Didn't retrieve data . /1355006237.Didn't retrieve data . /1355006233.Didn't retrieve data . /1355006228.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, '2777471') ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22578157', '1355006267', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006264', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006262', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006259', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006241', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006237', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006233', '0.035398350153635266', None, None, None, None, '2777471'), ('4302', '22578157', '1355006228', '0.035398350153635266', None, None, None, None, '2777471')] time used for this insertion : 0.013237476348876953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06417655944824219 time spend to save output : 0.013689994812011719 total time spend for step 2 : 0.0778665542602539 step3:velours_tree Thu May 1 03:45: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 : {22578157: [{'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172}]} input_args_next_step : {22578157: ()} output_args : {22578157: [{'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172}]} args : 22578157 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22578157) 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([22578157]) 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.3221278190612793 time spend to save output : 7.653236389160156e-05 total time spend for step 3 : 0.3222043514251709 step4:send_mail_cod Thu May 1 03:45: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 : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} input_args_next_step : {1355006267: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006267 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006264 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006262 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006259 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006241 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006237 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006233 depend.output_id : 0 input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ()} output_args : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',)} args : 1355006228 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 : {22578157: [{'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172}]} input_args_next_step : {1355006267: ('0.035398350153635266',), 1355006264: ('0.035398350153635266',), 1355006262: ('0.035398350153635266',), 1355006259: ('0.035398350153635266',), 1355006241: ('0.035398350153635266',), 1355006237: ('0.035398350153635266',), 1355006233: ('0.035398350153635266',), 1355006228: ('0.035398350153635266',), 22578157: ()} output_args : {22578157: [{'environnement': 22578161, 'Carton_brun': 22578162, 'kraft': 22578163, 'papier': 22578164, 'Carton_gris': 22578165, 'plastique': 22578166, 'cartonnette': 22578167, 'flou': 22578168, 'metal': 22578169, 'mal_croppe': 22578170, 'Teint_Dans_La_Masse': 22578171, 'autre_refus': 22578172}]} args : 22578157 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 :9, first value : ('0.035398350153635266',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22578157) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1355006267,1355006264,1355006262,1355006259,1355006241,1355006237,1355006233,1355006228) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355006228 begin to download photo : 1355006237 begin to download photo : 1355006259 begin to download photo : 1355006264 download finish for photo 1355006264 begin to download photo : 1355006267 download finish for photo 1355006228 begin to download photo : 1355006233 download finish for photo 1355006259 begin to download photo : 1355006262 download finish for photo 1355006237 begin to download photo : 1355006241 download finish for photo 1355006267 download finish for photo 1355006233 download finish for photo 1355006262 download finish for photo 1355006241 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette225781631746063900/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22578157_01-05-2025_03_45_00.pdf 22578163 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225781631746063900 22578166 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355006047: '1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841723_0.png', 1355006127: '1746063613_1645216_1355005920_410c84f21d3ab13cdde3f526ea7758c0_rle_crop_3777841934_0.png', 1355006255: '1746063792_1647000_1355005920_410c84f21d3ab13cdde3f526ea7758c0_rle_crop_3777841934_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/44fce5a230c133ef25f949bfd837a583_18287391.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c4c663661f92400fa4dedc1e2c96928d_44615572.png change filename to text .imagette225781661746063900/ imagette225781661746063900/1746063792_1647000_1355005920_410c84f21d3ab13cdde3f526ea7758c0_rle_crop_3777841934_0.png.png imagette225781661746063900/1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841723_0.png.png imagette225781661746063900/1746063613_1645216_1355005920_410c84f21d3ab13cdde3f526ea7758c0_rle_crop_3777841934_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c4c663661f92400fa4dedc1e2c96928d_50893874.png imagette225781661746063900 22578167 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355005904: '1746063324_3135872_1355005809_3e81c7be106e250e857fb5ddd39c8098_rle_crop_3777840592_0.png', 1355005905: '1746063324_3135872_1355005809_3e81c7be106e250e857fb5ddd39c8098_rle_crop_3777840594_0.png', 1355005974: '1746063432_1643518_1355005877_925573cd0566d863767d7b3289867764_rle_crop_3777841434_0.png', 1355005989: '1746063448_3833438_1355005811_14d7645566aa45443027e8d1872568be_rle_crop_3777841033_0.png', 1355005991: '1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841075_0.png', 1355005992: '1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841092_0.png', 1355005993: '1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841089_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/537a0e798f61583e23b376fd1ce65cc1_88167686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7afd56b524ca801d63dcce5d3dde6910_63943311.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/78f9c7811458a13ba1fd1f178e0518af_92857580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/26955849da2a4e3e829948001b06837d_30608349.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/449ffe471a4049e61d42e25b9f13aec6_3575097.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/788437c21db6158a975b36bd4bcb200b_8226806.png change filename to text .imagette225781671746063901/ imagette225781671746063901/1746063324_3135872_1355005809_3e81c7be106e250e857fb5ddd39c8098_rle_crop_3777840594_0.png.png imagette225781671746063901/1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841092_0.png.png imagette225781671746063901/1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841075_0.png.png imagette225781671746063901/1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841089_0.png.png imagette225781671746063901/1746063324_3135872_1355005809_3e81c7be106e250e857fb5ddd39c8098_rle_crop_3777840592_0.png.png imagette225781671746063901/1746063448_3833438_1355005811_14d7645566aa45443027e8d1872568be_rle_crop_3777841033_0.png.png imagette225781671746063901/1746063432_1643518_1355005877_925573cd0566d863767d7b3289867764_rle_crop_3777841434_0.png.png imagette225781681746063901/ imagette225781691746063901/ imagette225781701746063901/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/1a3d13e5a77dc079188ff7bf01ee96ba_68985829.png imagette225781671746063901 22578168 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225781681746063901 22578169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225781691746063901 22578170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225781701746063901 22578172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355005941: '1746063373_1643015_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841060_0.png', 1355005942: '1746063373_1643015_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841074_0.png', 1355005981: '1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841060_0.png', 1355005982: '1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841074_0.png', 1355006197: '1746063687_3146470_1355006015_c1d9c9f371916d6a4948279583409f2d_rle_crop_3777842900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e4057daecf6718b0e103b93e017f796f_14428483.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/40a9256b9ed075e74258353ea3a51fcb_14097725.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e4057daecf6718b0e103b93e017f796f_30115677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/40a9256b9ed075e74258353ea3a51fcb_37010587.png change filename to text .imagette225781721746063901/ imagette225781721746063901/1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841060_0.png.png imagette225781721746063901/1746063373_1643015_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841074_0.png.png imagette225781721746063901/1746063373_1643015_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841060_0.png.png imagette225781721746063901/1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841074_0.png.png imagette225781721746063901/1746063687_3146470_1355006015_c1d9c9f371916d6a4948279583409f2d_rle_crop_3777842900_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/de0647401f24fdfa466412f45f7e5c22_18928138.png imagette225781721746063901 22578162 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355005889: '1746063311_1642405_1355005846_af7ebe223781f97322cacfada7fe2bd6_rle_crop_3777840560_0.png', 1355005906: '1746063324_3135872_1355005808_065a6b4acf2a5a64719b0c3565f59e77_rle_crop_3777840603_0.png', 1355005994: '1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841096_0.png', 1355006004: '1746063491_1644031_1355005783_5ecf5537edc4c5339f18ebaa439a04c5_rle_crop_3777841601_0.png', 1355006005: '1746063491_1644031_1355005729_139a7ba50726580b040df39a6aeac520_rle_crop_3777841606_0.png', 1355006045: '1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841722_0.png', 1355006182: '1746063672_1645818_1355006053_3a23d1f6b57f02b0cef6690da7240aa9_rle_crop_3777842767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/5d71f69644d0ad9f0bb8721e7a22e7bb_62131479.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/922db108d5c6b42e89b93196760c4ea2_56399144.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/1c984a5f30cbc796852bb51f1c1a921a_24380156.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6fd8bf9fc9b3d5156afe29f777904f59_2301591.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c5f4bec4fe08672154e826442f9fd368_51700028.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f73375c8d940f02dd337800e90a8aa2d_94333516.png change filename to text .imagette225781621746063901/ imagette225781621746063901/1746063324_3135872_1355005808_065a6b4acf2a5a64719b0c3565f59e77_rle_crop_3777840603_0.png.png imagette225781621746063901/1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841096_0.png.png imagette225781621746063901/1746063491_1644031_1355005729_139a7ba50726580b040df39a6aeac520_rle_crop_3777841606_0.png.png imagette225781621746063901/1746063672_1645818_1355006053_3a23d1f6b57f02b0cef6690da7240aa9_rle_crop_3777842767_0.png.png imagette225781621746063901/1746063311_1642405_1355005846_af7ebe223781f97322cacfada7fe2bd6_rle_crop_3777840560_0.png.png imagette225781621746063901/1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841722_0.png.png imagette225781621746063901/1746063491_1644031_1355005783_5ecf5537edc4c5339f18ebaa439a04c5_rle_crop_3777841601_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d8ab4b026a482af83f488bd0870bd725_91182493.png imagette225781621746063901 22578165 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355005902: '1746063324_3135872_1355005851_b69ebf50163811fcacafee0ea8830a64_rle_crop_3777840581_0.png', 1355005984: '1746063448_3833438_1355005781_c52816fa074f3b8ddc4d02d08dd8b31f_rle_crop_3777841048_0.png', 1355005985: '1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841055_0.png', 1355005986: '1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841081_0.png', 1355005987: '1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841088_0.png', 1355006044: '1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841719_0.png', 1355006126: '1746063613_1645216_1355005957_3d64657a38f7f19ddc050bf338d3df39_rle_crop_3777841925_0.png', 1355006198: '1746063687_3146470_1355006017_1ff874e5254bfddf1170aefc28775577_rle_crop_3777842886_0.png', 1355006254: '1746063792_1647000_1355005957_3d64657a38f7f19ddc050bf338d3df39_rle_crop_3777841925_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/620174f21e808adf98beb4aa0433db30_45382717.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/eae6fd3386a97fcb868c93691abba89d_68544843.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/095dc73cb82a8d15d29c274b9d20072a_89703260.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7b7a8951fd7bc28be18edfc0fff52c11_65386742.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e369864e771e53b22d127b4e532bc677_15877839.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/2487336cd4c82ab20d73e0ed65d8a3ad_69987446.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/691cf0d206ff20d6ca17742b023c4d52_21130133.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d3205eb331d544991a2cb461c9e7dab1_42637392.png change filename to text .imagette225781651746063902/ imagette225781651746063902/1746063324_3135872_1355005851_b69ebf50163811fcacafee0ea8830a64_rle_crop_3777840581_0.png.png imagette225781651746063902/1746063613_1645216_1355005957_3d64657a38f7f19ddc050bf338d3df39_rle_crop_3777841925_0.png.png imagette225781651746063902/1746063792_1647000_1355005957_3d64657a38f7f19ddc050bf338d3df39_rle_crop_3777841925_0.png.png imagette225781651746063902/1746063448_3833438_1355005777_5d82d16c71debe0c71e9b529aac2425e_rle_crop_3777841088_0.png.png imagette225781651746063902/1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841081_0.png.png imagette225781651746063902/1746063448_3833438_1355005781_c52816fa074f3b8ddc4d02d08dd8b31f_rle_crop_3777841048_0.png.png imagette225781651746063902/1746063687_3146470_1355006017_1ff874e5254bfddf1170aefc28775577_rle_crop_3777842886_0.png.png imagette225781651746063902/1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841719_0.png.png imagette225781651746063902/1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841055_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/691cf0d206ff20d6ca17742b023c4d52_34518693.png imagette225781651746063902 22578171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355005888: '1746063311_1642405_1355005849_645873128b10ab09a1bee360ff74ad75_rle_crop_3777840469_0.png', 1355005938: '1746063373_1643015_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841065_0.png', 1355005939: '1746063373_1643015_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841078_0.png', 1355005973: '1746063432_1643518_1355005877_925573cd0566d863767d7b3289867764_rle_crop_3777841440_0.png', 1355005979: '1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841065_0.png', 1355005980: '1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841078_0.png', 1355006043: '1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841728_0.png', 1355006123: '1746063613_1645216_1355005915_2d669e19d0c51011957181cb317f1506_rle_crop_3777841964_0.png', 1355006196: '1746063687_3146470_1355006017_1ff874e5254bfddf1170aefc28775577_rle_crop_3777842888_0.png', 1355006253: '1746063792_1647000_1355005915_2d669e19d0c51011957181cb317f1506_rle_crop_3777841964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9a3cc6b8e6248c931b2e39974abc2ae0_73763321.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ab78f7f7606638422249dedb7c0dcc64_47525124.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6e9fe68f79800d8ffe078aaea6fe06e8_72189336.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/0d756ced0e1bd6188421a964d82775af_92932043.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ab78f7f7606638422249dedb7c0dcc64_40778092.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6e9fe68f79800d8ffe078aaea6fe06e8_76233807.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6404cdfaebc67c351614f1dc07cee2f1_76356238.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/297b76aff8920a6afb1919be69fc56ab_20151062.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/3e2c5635c7d9bf58e481247cf487f488_12696695.png change filename to text .imagette225781711746063902/ imagette225781711746063902/1746063792_1647000_1355005915_2d669e19d0c51011957181cb317f1506_rle_crop_3777841964_0.png.png imagette225781711746063902/1746063565_3143456_1355005923_f37bc5fc2c1f083ec09f676202ad990b_rle_crop_3777841728_0.png.png imagette225781711746063902/1746063448_3833438_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841065_0.png.png imagette225781711746063902/1746063373_1643015_1355005779_44d394365029885500ae0bde6732e265_rle_crop_3777841065_0.png.png imagette225781711746063902/1746063613_1645216_1355005915_2d669e19d0c51011957181cb317f1506_rle_crop_3777841964_0.png.png imagette225781711746063902/1746063432_1643518_1355005877_925573cd0566d863767d7b3289867764_rle_crop_3777841440_0.png.png imagette225781711746063902/1746063311_1642405_1355005849_645873128b10ab09a1bee360ff74ad75_rle_crop_3777840469_0.png.png imagette225781711746063902/1746063448_3833438_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841078_0.png.png imagette225781711746063902/1746063373_1643015_1355005778_6cf7de2ab72cea68c213d0c7f938ef12_rle_crop_3777841078_0.png.png imagette225781711746063902/1746063687_3146470_1355006017_1ff874e5254bfddf1170aefc28775577_rle_crop_3777842888_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/297b76aff8920a6afb1919be69fc56ab_62598601.png imagette225781711746063902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22578157 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22578173,22578174,22578175,22578176,22578177,22578178,22578179,22578180,22578181,22578182,22578183,22578184?tags=environnement,Carton_brun,kraft,papier,Carton_gris,plastique,cartonnette,flou,metal,mal_croppe,Teint_Dans_La_Masse,autre_refus your option no_mail is active, we will not send the real mail to your client args[1355006267] : ('0.035398350153635266',) no score found for photo 1355006267 We are sending mail with results at report@fotonower.com args[1355006264] : ('0.035398350153635266',) no score found for photo 1355006264 We are sending mail with results at report@fotonower.com args[1355006262] : ('0.035398350153635266',) no score found for photo 1355006262 We are sending mail with results at report@fotonower.com args[1355006259] : ('0.035398350153635266',) no score found for photo 1355006259 We are sending mail with results at report@fotonower.com args[1355006241] : ('0.035398350153635266',) no score found for photo 1355006241 We are sending mail with results at report@fotonower.com args[1355006237] : ('0.035398350153635266',) no score found for photo 1355006237 We are sending mail with results at report@fotonower.com args[1355006233] : ('0.035398350153635266',) no score found for photo 1355006233 We are sending mail with results at report@fotonower.com args[1355006228] : ('0.035398350153635266',) no score found for photo 1355006228 We are sending mail with results at report@fotonower.com refus_total : 0.035398350153635266 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578157 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_P22578157_01-05-2025_03_45_00.pdf results_Auto_P22578157_01-05-2025_03_45_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_03_45_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','22578157','results_Auto_P22578157_01-05-2025_03_45_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_03_45_00.pdf','pdf','','0.16','0.035398350153635266') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22578157]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] map_info['map_portfolio_photo'] : {22578157: [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228, 1355006208, 1355006206, 1355006204, 1355006175, 1355006173, 1355006169, 1355006165, 1355006162, 1355006159, 1355006056, 1355006055, 1355006053, 1355006021, 1355006019, 1355006017, 1355006015, 1355005996, 1355005990, 1355005957, 1355005955, 1355005954, 1355005953, 1355005923, 1355005920, 1355005917, 1355005915, 1355005913, 1355005911, 1355005885, 1355005883, 1355005880, 1355005878, 1355005877, 1355005876, 1355005851, 1355005849, 1355005846, 1355005811, 1355005809, 1355005808, 1355005783, 1355005781, 1355005779, 1355005778, 1355005777, 1355005776, 1355005729]} final : False mtd_id 4302 list_pids : [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] 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, '2777471') ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22578157', '1355006267', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471')] time used for this insertion : 0.017392396926879883 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.396247148513794 time spend to save output : 0.01763463020324707 total time spend for step 4 : 3.413881778717041 step5:split_time_score Thu May 1 03:45:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22578157'] 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 : [('22578157',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22578157) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355006264: {'path': 'temp/1746063900_721375_1355006264_9176236a6440f3402ff2b38a9feb52ad.jpg', 'extension': 'jpg'}, 1355006267: {'path': 'temp/1746063900_721375_1355006267_84f10202c9be909cb1da2ec9dad945be.jpg', 'extension': 'jpg'}, 1355006228: {'path': 'temp/1746063900_721375_1355006228_3f014dccb852bb664e0a3305656ff1ac.jpg', 'extension': 'jpg'}, 1355006233: {'path': 'temp/1746063900_721375_1355006233_73d76ff4f49c4de67525715368ce3222.jpg', 'extension': 'jpg'}, 1355006259: {'path': 'temp/1746063900_721375_1355006259_c071150bb5bc2346f53f66ed552c0305.jpg', 'extension': 'jpg'}, 1355006262: {'path': 'temp/1746063900_721375_1355006262_c8ae0cbd660fce14acf908de574f0f3f.jpg', 'extension': 'jpg'}, 1355006237: {'path': 'temp/1746063900_721375_1355006237_0f1a0380e62c513763bb4a29754ba485.jpg', 'extension': 'jpg'}, 1355006241: {'path': 'temp/1746063900_721375_1355006241_b746ec1fb8b8ca755fd70a1ee439be34.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 = 22578157; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22578157 group by h (('03', 55),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22578157 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 (22578157) 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 (22578157) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01052025 22578157 Nombre de photos uploadées : 55 / 23040 (0%) 01052025 22578157 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 01052025 22578157 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1355005729, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/139a7ba50726580b040df39a6aeac520.jpg', 'username': None, 'uploaded_at': 1746063067, 'text': 'image_01052025_03_30_34_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355005783, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/5ecf5537edc4c5339f18ebaa439a04c5.jpg', 'username': None, 'uploaded_at': 1746063127, 'text': 'image_01052025_03_30_53_009127m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355005781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c52816fa074f3b8ddc4d02d08dd8b31f.jpg', 'username': None, 'uploaded_at': 1746063127, 'text': 'image_01052025_03_31_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355005779, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/44d394365029885500ae0bde6732e265.jpg', 'username': None, 'uploaded_at': 1746063127, 'text': 'image_01052025_03_31_14_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0036270618438720703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22578157, '2025-05-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1761690,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028329133987426758 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= 1761690 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1761690, 'dashboard_run_id': 1769490, 'mtr_portfolio_id': 22576604, 'dashboard_result_id': 10218978, '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_P22576604_01-05-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1769490, 'mtr_portfolio_id': 22577091, 'dashboard_result_id': 10218980, '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_P22577091_01-05-2025_03_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1769490, 'mtr_portfolio_id': 22577585, 'dashboard_result_id': 10218981, '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_P22577585_01-05-2025_03_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1769490, 'mtr_portfolio_id': 22578157, 'dashboard_result_id': 10218982, '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_P22578157_01-05-2025_03_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, '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 = 22576604 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': 2777303, 'mtr_portfolio_id': 22576604, 'created_at': datetime.datetime(2025, 5, 1, 3, 6, 57), 'result': '0.045339893243220006', 'result_long': None, 'result_double': None}] Qualite : 0.045339893243220006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22576604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576604_01-05-2025_03_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22576604 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_P22576604_01-05-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, 'pht': 3726}}" where mtr_portfolio_id = 22576604 and dashboard_run_id = 1769493 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`=22576604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10218978, 0.045339893243220006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576604_01-05-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, '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 = 22577091 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': 2777384, 'mtr_portfolio_id': 22577091, 'created_at': datetime.datetime(2025, 5, 1, 3, 18, 59), 'result': '0.05182462514676388', 'result_long': None, 'result_double': None}] Qualite : 0.05182462514676388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22577091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577091_01-05-2025_03_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22577091 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_P22577091_01-05-2025_03_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, 'pht': 3726}}" where mtr_portfolio_id = 22577091 and dashboard_run_id = 1769493 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`=22577091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10218980, 0.05182462514676388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577091_01-05-2025_03_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, '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 = 22577585 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': 2777420, 'mtr_portfolio_id': 22577585, 'created_at': datetime.datetime(2025, 5, 1, 3, 32, 58), 'result': '0.06506239032999316', 'result_long': None, 'result_double': None}] Qualite : 0.06506239032999316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22577585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577585_01-05-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22577585 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_P22577585_01-05-2025_03_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, 'pht': 3726}}" where mtr_portfolio_id = 22577585 and dashboard_run_id = 1769493 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`=22577585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10218981, 0.06506239032999316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577585_01-05-2025_03_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, '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 = 22578157 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': 2777471, 'mtr_portfolio_id': 22578157, 'created_at': datetime.datetime(2025, 5, 1, 3, 45), 'result': '0.035398350153635266', 'result_long': None, 'result_double': None}] Qualite : 0.035398350153635266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22578157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_03_45_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22578157 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_P22578157_01-05-2025_03_45_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, 'pht': 3726}}" where mtr_portfolio_id = 22578157 and dashboard_run_id = 1769493 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`=22578157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10218982, 0.035398350153635266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_03_45_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, '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 (22576604,22577091,22577585,22578157) result : ((1354995538,), (1354995571,), (1354995573,), (1354995576,), (1354995579,), (1354995583,), (1354995586,), (1354995601,), (1354995611,), (1354995613,), (1354995615,), (1354995618,), (1354995666,), (1354995668,), (1354995671,), (1354995674,), (1354995677,), (1354995696,), (1354995698,), (1354995699,), (1354995701,), (1354995731,), (1354995732,), (1354995733,), (1354995735,), (1354995738,), (1354995740,), (1354995759,), (1354995761,), (1354995762,), (1354995763,), (1354995789,), (1354995824,), (1354995825,), (1354995826,), (1354995828,), (1354995856,), (1354995858,), (1354995936,), (1354996455,), (1354997265,), (1354996566,), (1354997055,), (1354998943,), (1354998970,), (1354999812,), (1355000029,), (1355000215,), (1355000290,), (1355000864,), (1355000937,), (1355001006,), (1355001788,), (1355001843,), (1355001916,), (1355001973,), (1355002032,), (1355002061,), (1355002340,), (1355002368,), (1355002394,), (1355002433,), (1355002458,), (1355002484,), (1355002628,), (1355002630,), (1355002632,), (1355002634,), (1355002636,), (1355002691,), (1355002720,), (1355002745,), (1355003681,), (1355004019,), (1355004111,), (1355004219,), (1355004335,), (1355004447,), (1355004590,), (1355004606,), (1355004611,), (1355004613,), (1355004976,), (1355004985,), (1355004987,), (1355004990,), (1355004994,), (1355004997,), (1355005031,), (1355005033,), (1355005063,), (1355005064,), (1355005065,), (1355005067,), (1355005069,), (1355005073,), (1355005110,), (1355005094,), (1355005095,), (1355005101,), (1355005106,), (1355005133,), (1355005136,), (1355005137,), (1355005138,), (1355005140,), (1355005174,), (1355005177,), (1355005178,), (1355005179,), (1355005181,), (1355005219,), (1355005221,), (1355005222,), (1355005224,), (1355005227,), (1355005264,), (1355005268,), (1355005270,), (1355005272,), (1355005275,), (1355005278,), (1355005316,), (1355005318,), (1355005319,), (1355005359,), (1355005360,), (1355005385,), (1355005386,), (1355005387,), (1355005389,), (1355005430,), (1355005431,), (1355005432,), (1355005433,), (1355005435,), (1355005463,), (1355005464,), (1355005465,), (1355005467,), (1355005505,), (1355005507,), (1355005508,), (1355005510,), (1355005513,), (1355005547,), (1355005549,), (1355005552,), (1355005556,), (1355005559,), (1355005562,), (1355005587,), (1355005588,), (1355005590,), (1355005592,), (1355005619,), (1355005620,), (1355005621,), (1355005623,), (1355005626,), (1355005629,), (1355005667,), (1355005669,), (1355005670,), (1355005672,), (1355005730,), (1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01052025': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22578157]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] map_info['map_portfolio_photo'] : {22578157: [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228, 1355006208, 1355006206, 1355006204, 1355006175, 1355006173, 1355006169, 1355006165, 1355006162, 1355006159, 1355006056, 1355006055, 1355006053, 1355006021, 1355006019, 1355006017, 1355006015, 1355005996, 1355005990, 1355005957, 1355005955, 1355005954, 1355005953, 1355005923, 1355005920, 1355005917, 1355005915, 1355005913, 1355005911, 1355005885, 1355005883, 1355005880, 1355005878, 1355005877, 1355005876, 1355005851, 1355005849, 1355005846, 1355005811, 1355005809, 1355005808, 1355005783, 1355005781, 1355005779, 1355005778, 1355005777, 1355005776, 1355005729]} final : True mtd_id 4302 list_pids : [1355006267, 1355006264, 1355006262, 1355006259, 1355006241, 1355006237, 1355006233, 1355006228] Looping around the photos to save general results len do output : 1 /22578157Didn'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, '2777471') ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471') ('4302', None, None, None, None, None, None, None, '2777471') ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '22578157', 'None', None, None, None, None, '2777471'), ('4302', '22578157', '1355006267', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006264', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006262', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006259', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006241', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006237', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006233', None, None, None, None, None, '2777471'), ('4302', '22578157', '1355006228', None, None, None, None, None, '2777471')] time used for this insertion : 0.014769554138183594 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35292673110961914 time spend to save output : 0.014977693557739258 total time spend for step 5 : 0.3679044246673584 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 (2777471) 2.02user 2.30system 0:09.97elapsed 43%CPU (0avgtext+0avgdata 161652maxresident)k 832inputs+8576outputs (25major+64433minor)pagefaults 0swaps