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 : 3040344 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 (2684053) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2684053) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629122 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2684053'] with mtr_portfolio_ids : ['21629122'] and first list_photo_ids : [] new path : /proc/3040344/ Name: python3 Umask: 0002 State: R (running) Tgid: 3040344 Ngid: 0 Pid: 3040344 PPid: 3040343 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3040344 NSpid: 3040344 NSpgid: 3037747 NSsid: 3037747 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99248 kB VmRSS: 99248 kB RssAnon: 59764 kB RssFile: 39484 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 628 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: 50 nonvoluntary_ctxt_switches: 101 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3040344', 'Ngid': '0', 'Pid': '3040344', 'PPid': '3040343', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3040344', 'NSpid': '3040344', 'NSpgid': '3037747', 'NSsid': '3037747', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99248 kB', 'VmRSS': '99248 kB', 'RssAnon': '59764 kB', 'RssFile': '39484 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '628 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': '50', 'nonvoluntary_ctxt_switches': '101'} ('datou_batch_current', '3040344', '1106844', '0', '1106844', '865592', '99248', b'', 'marlene', '2684053') 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 (21629122) 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 (2684053 ) ) 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 (21629122) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1346712258, 'portfolio_id': 21629122}, {'photo_id': 1346712254, 'portfolio_id': 21629122}, {'photo_id': 1346712252, 'portfolio_id': 21629122}, {'photo_id': 1346712246, 'portfolio_id': 21629122}, {'photo_id': 1346712235, 'portfolio_id': 21629122}, {'photo_id': 1346712213, 'portfolio_id': 21629122}, {'photo_id': 1346712064, 'portfolio_id': 21629122}, {'photo_id': 1346712033, 'portfolio_id': 21629122}, {'photo_id': 1346712008, 'portfolio_id': 21629122}, {'photo_id': 1346711990, 'portfolio_id': 21629122}, {'photo_id': 1346711989, 'portfolio_id': 21629122}, {'photo_id': 1346711956, 'portfolio_id': 21629122}, {'photo_id': 1346711947, 'portfolio_id': 21629122}, {'photo_id': 1346711946, 'portfolio_id': 21629122}, {'photo_id': 1346711945, 'portfolio_id': 21629122}, {'photo_id': 1346711901, 'portfolio_id': 21629122}, {'photo_id': 1346711897, 'portfolio_id': 21629122}, {'photo_id': 1346711893, 'portfolio_id': 21629122}, {'photo_id': 1346711889, 'portfolio_id': 21629122}, {'photo_id': 1346711888, 'portfolio_id': 21629122}, {'photo_id': 1346711853, 'portfolio_id': 21629122}, {'photo_id': 1346711848, 'portfolio_id': 21629122}, {'photo_id': 1346711835, 'portfolio_id': 21629122}, {'photo_id': 1346711834, 'portfolio_id': 21629122}, {'photo_id': 1346711833, 'portfolio_id': 21629122}, {'photo_id': 1346711832, 'portfolio_id': 21629122}, {'photo_id': 1346711801, 'portfolio_id': 21629122}, {'photo_id': 1346711799, 'portfolio_id': 21629122}, {'photo_id': 1346711797, 'portfolio_id': 21629122}, {'photo_id': 1346711795, 'portfolio_id': 21629122}, {'photo_id': 1346711793, 'portfolio_id': 21629122}, {'photo_id': 1346711742, 'portfolio_id': 21629122}, {'photo_id': 1346711741, 'portfolio_id': 21629122}, {'photo_id': 1346711740, 'portfolio_id': 21629122}, {'photo_id': 1346711739, 'portfolio_id': 21629122}, {'photo_id': 1346711712, 'portfolio_id': 21629122}, {'photo_id': 1346711709, 'portfolio_id': 21629122}, {'photo_id': 1346711707, 'portfolio_id': 21629122}, {'photo_id': 1346711705, 'portfolio_id': 21629122}, {'photo_id': 1346711702, 'portfolio_id': 21629122}, {'photo_id': 1346711678, 'portfolio_id': 21629122}, {'photo_id': 1346711674, 'portfolio_id': 21629122}, {'photo_id': 1346711672, 'portfolio_id': 21629122}, {'photo_id': 1346711670, 'portfolio_id': 21629122}, {'photo_id': 1346711666, 'portfolio_id': 21629122}, {'photo_id': 1346711630, 'portfolio_id': 21629122}, {'photo_id': 1346711629, 'portfolio_id': 21629122}, {'photo_id': 1346711627, 'portfolio_id': 21629122}, {'photo_id': 1346711625, 'portfolio_id': 21629122}, {'photo_id': 1346711623, 'portfolio_id': 21629122}, {'photo_id': 1346711586, 'portfolio_id': 21629122}, {'photo_id': 1346711584, 'portfolio_id': 21629122}, {'photo_id': 1346711582, 'portfolio_id': 21629122}, {'photo_id': 1346711580, 'portfolio_id': 21629122}, {'photo_id': 1346711578, 'portfolio_id': 21629122}] map_portfolio_id_photo_id: {21629122: [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989, 1346711956, 1346711947, 1346711946, 1346711945, 1346711901, 1346711897, 1346711893, 1346711889, 1346711888, 1346711853, 1346711848, 1346711835, 1346711834, 1346711833, 1346711832, 1346711801, 1346711799, 1346711797, 1346711795, 1346711793, 1346711742, 1346711741, 1346711740, 1346711739, 1346711712, 1346711709, 1346711707, 1346711705, 1346711702, 1346711678, 1346711674, 1346711672, 1346711670, 1346711666, 1346711630, 1346711629, 1346711627, 1346711625, 1346711623, 1346711586, 1346711584, 1346711582, 1346711580, 1346711578]} ##### 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.01670241355895996 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Mar 24 06:57:56 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 (21629122) 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 : 21629122 get user id for portfolio 21629122 get sub ptf for main ptf 21629122, type 3726 and hashtags ['metal', 'mal_croppe', 'environnement', 'plastique', 'flou', 'autre_refus', 'cartonnette', 'kraft', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun', 'Carton_gris'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21629122 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','environnement','plastique','flou','autre_refus','cartonnette','kraft','Teint_Dans_La_Masse','papier','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21629122 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','environnement','plastique','flou','autre_refus','cartonnette','kraft','Teint_Dans_La_Masse','papier','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21629122, 'sub_port_id': 21629123, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167482, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'papier': {'main_port_id': 21629122, 'sub_port_id': 21629124, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167483, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'environnement': {'main_port_id': 21629122, 'sub_port_id': 21629125, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167484, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'kraft': {'main_port_id': 21629122, 'sub_port_id': 21629126, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167485, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'mal_croppe': {'main_port_id': 21629122, 'sub_port_id': 21629127, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167486, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'plastique': {'main_port_id': 21629122, 'sub_port_id': 21629128, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167487, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'flou': {'main_port_id': 21629122, 'sub_port_id': 21629129, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167488, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'Carton_gris': {'main_port_id': 21629122, 'sub_port_id': 21629130, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167489, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'cartonnette': {'main_port_id': 21629122, 'sub_port_id': 21629131, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167490, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'autre_refus': {'main_port_id': 21629122, 'sub_port_id': 21629132, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167491, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'Carton_brun': {'main_port_id': 21629122, 'sub_port_id': 21629133, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167492, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}, 'metal': {'main_port_id': 21629122, 'sub_port_id': 21629134, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167493, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21629123 , 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=21629122 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 (21629123) result : ((1346711751,), (1346711752,), (1346711753,), (1346711754,), (1346711755,), (1346711756,), (1346711778,), (1346711779,), (1346711807,), (1346711836,), (1346711890,), (1346711927,), (1346711928,), (1346711929,), (1346712225,), (1346712232,), (1346712234,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629124 , 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=21629122 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 (21629124) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629125 , 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=21629122 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 (21629125) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629126 , 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=21629122 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 (21629126) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629127 , 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=21629122 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 (21629127) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629128 , 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=21629122 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 (21629128) result : ((1346712238,), (1346712239,), (1346712240,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629129 , 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=21629122 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 (21629129) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629130 , 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=21629122 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 (21629130) result : ((1346711762,), (1346711763,), (1346711786,), (1346711787,), (1346711788,), (1346711842,), (1346711843,), (1346711844,), (1346711935,), (1346711936,), (1346711937,), (1346711938,), (1346711939,), (1346711953,), (1346711954,), (1346711955,), (1346712230,), (1346712247,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629131 , 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=21629122 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 (21629131) result : ((1346711813,), (1346711814,), (1346711894,), (1346711895,), (1346711940,), (1346711941,), (1346711942,), (1346711957,), (1346711958,), (1346712250,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629132 , 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=21629122 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 (21629132) result : ((1346711758,), (1346711759,), (1346711760,), (1346711761,), (1346711783,), (1346711784,), (1346711808,), (1346711810,), (1346711837,), (1346711838,), (1346711839,), (1346711891,), (1346711892,), (1346711930,), (1346711931,), (1346711932,), (1346711933,), (1346711948,), (1346711949,), (1346711950,), (1346711951,), (1346711952,), (1346712128,), (1346712227,), (1346712228,), (1346712229,), (1346712241,), (1346712242,), (1346712243,), (1346712244,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629133 , 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=21629122 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 (21629133) result : ((1346711789,), (1346711815,), (1346711846,), (1346711847,), (1346711896,), (1346711959,), (1346712231,), (1346712236,), (1346712237,), (1346712251,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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 21629134 , 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=21629122 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 (21629134) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21629122) result : ((1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) 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`=21629122 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','environnement','plastique','flou','autre_refus','cartonnette','kraft','Teint_Dans_La_Masse','papier','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21629122 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','environnement','plastique','flou','autre_refus','cartonnette','kraft','Teint_Dans_La_Masse','papier','Carton_brun','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21629122, 'sub_port_id': 21629135, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167494, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'papier': {'main_port_id': 21629122, 'sub_port_id': 21629136, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167495, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'environnement': {'main_port_id': 21629122, 'sub_port_id': 21629137, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167496, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'kraft': {'main_port_id': 21629122, 'sub_port_id': 21629138, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167497, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'mal_croppe': {'main_port_id': 21629122, 'sub_port_id': 21629139, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167498, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'plastique': {'main_port_id': 21629122, 'sub_port_id': 21629140, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167499, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'flou': {'main_port_id': 21629122, 'sub_port_id': 21629141, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167500, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'Carton_gris': {'main_port_id': 21629122, 'sub_port_id': 21629142, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167501, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'cartonnette': {'main_port_id': 21629122, 'sub_port_id': 21629143, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167502, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'autre_refus': {'main_port_id': 21629122, 'sub_port_id': 21629144, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167503, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'Carton_brun': {'main_port_id': 21629122, 'sub_port_id': 21629145, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167504, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}, 'metal': {'main_port_id': 21629122, 'sub_port_id': 21629146, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167505, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629125 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629138,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629126 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629139,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629127 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629140,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629128 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629141,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629129 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629142,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629130 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629132 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629145,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629133 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21629146,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21629134 lien utilise dans velours : https://www.fotonower.com/velours/21629135,21629136,21629137,21629138,21629139,21629140,21629141,21629142,21629143,21629144,21629145,21629146?tags=Teint_Dans_La_Masse,papier,environnement,kraft,mal_croppe,plastique,flou,Carton_gris,cartonnette,autre_refus,Carton_brun,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21629122]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] map_info['map_portfolio_photo'] : {21629122: [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989, 1346711956, 1346711947, 1346711946, 1346711945, 1346711901, 1346711897, 1346711893, 1346711889, 1346711888, 1346711853, 1346711848, 1346711835, 1346711834, 1346711833, 1346711832, 1346711801, 1346711799, 1346711797, 1346711795, 1346711793, 1346711742, 1346711741, 1346711740, 1346711739, 1346711712, 1346711709, 1346711707, 1346711705, 1346711702, 1346711678, 1346711674, 1346711672, 1346711670, 1346711666, 1346711630, 1346711629, 1346711627, 1346711625, 1346711623, 1346711586, 1346711584, 1346711582, 1346711580, 1346711578]} final : False mtd_id 4302 list_pids : [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] Looping around the photos to save general results len do output : 1 /21629122. 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, '2684053') ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21629122', "{'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134}", None, None, None, None, '2684053'), ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053')] time used for this insertion : 0.014495134353637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.511317491531372 time spend to save output : 0.014787912368774414 total time spend for step 1 : 1.5261054039001465 step2:final Mon Mar 24 06:57:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21629122) 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 21629122 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346711586,1346711584,1346711582,1346711580,1346711578,1346711630,1346711629,1346711627,1346711625,1346711623,1346711678,1346711674,1346711672,1346711670,1346711666,1346711712,1346711709,1346711707,1346711705,1346711702,1346711742,1346711741,1346711740,1346711739,1346711801,1346711799,1346711797,1346711795,1346711793,1346711853,1346711848,1346711835,1346711834,1346711833,1346711832,1346711901,1346711897,1346711893,1346711889,1346711888,1346711956,1346711947,1346711946,1346711945,1346712064,1346712033,1346712008,1346711990,1346711989,1346712258,1346712254,1346712213,1346712252,1346712246,1346712235); 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([21629122]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} new output for save of step final : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] map_info['map_portfolio_photo'] : {21629122: [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989, 1346711956, 1346711947, 1346711946, 1346711945, 1346711901, 1346711897, 1346711893, 1346711889, 1346711888, 1346711853, 1346711848, 1346711835, 1346711834, 1346711833, 1346711832, 1346711801, 1346711799, 1346711797, 1346711795, 1346711793, 1346711742, 1346711741, 1346711740, 1346711739, 1346711712, 1346711709, 1346711707, 1346711705, 1346711702, 1346711678, 1346711674, 1346711672, 1346711670, 1346711666, 1346711630, 1346711629, 1346711627, 1346711625, 1346711623, 1346711586, 1346711584, 1346711582, 1346711580, 1346711578]} final : False mtd_id 4302 list_pids : [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] Looping around the photos to save general results len do output : 11 /1346712258.Didn't retrieve data . /1346712254.Didn't retrieve data . /1346712252.Didn't retrieve data . /1346712246.Didn't retrieve data . /1346712235.Didn't retrieve data . /1346712213.Didn't retrieve data . /1346712064.Didn't retrieve data . /1346712033.Didn't retrieve data . /1346712008.Didn't retrieve data . /1346711990.Didn't retrieve data . /1346711989.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, '2684053') ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21629122', '1346712258', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712254', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712252', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712246', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712235', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712213', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712064', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712033', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346712008', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346711990', '0.06683011921983975', None, None, None, None, '2684053'), ('4302', '21629122', '1346711989', '0.06683011921983975', None, None, None, None, '2684053')] time used for this insertion : 0.015526533126831055 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0745842456817627 time spend to save output : 0.015970706939697266 total time spend for step 2 : 0.09055495262145996 step3:velours_tree Mon Mar 24 06:57:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21629122: [{'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134}]} input_args_next_step : {21629122: ()} output_args : {21629122: [{'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134}]} args : 21629122 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 : ({'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21629122) 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([21629122]) 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.2966432571411133 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.29670214653015137 step4:send_mail_cod Mon Mar 24 06:57:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} input_args_next_step : {1346712258: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712258 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712254 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712252 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712246 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712235 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712213 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712064 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712033 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346712008 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346711990 depend.output_id : 0 input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ()} output_args : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',)} args : 1346711989 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 : {21629122: [{'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134}]} input_args_next_step : {1346712258: ('0.06683011921983975',), 1346712254: ('0.06683011921983975',), 1346712252: ('0.06683011921983975',), 1346712246: ('0.06683011921983975',), 1346712235: ('0.06683011921983975',), 1346712213: ('0.06683011921983975',), 1346712064: ('0.06683011921983975',), 1346712033: ('0.06683011921983975',), 1346712008: ('0.06683011921983975',), 1346711990: ('0.06683011921983975',), 1346711989: ('0.06683011921983975',), 21629122: ()} output_args : {21629122: [{'Teint_Dans_La_Masse': 21629123, 'papier': 21629124, 'environnement': 21629125, 'kraft': 21629126, 'mal_croppe': 21629127, 'plastique': 21629128, 'flou': 21629129, 'Carton_gris': 21629130, 'cartonnette': 21629131, 'autre_refus': 21629132, 'Carton_brun': 21629133, 'metal': 21629134}]} args : 21629122 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.06683011921983975',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21629122) 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 (1346712258,1346712254,1346712252,1346712246,1346712235,1346712213,1346712064,1346712033,1346712008,1346711990,1346711989) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346711989 begin to download photo : 1346712033 begin to download photo : 1346712235 begin to download photo : 1346712254 download finish for photo 1346712033 begin to download photo : 1346712064 download finish for photo 1346712254 begin to download photo : 1346712258 download finish for photo 1346712235 begin to download photo : 1346712246 download finish for photo 1346712064 begin to download photo : 1346712213 download finish for photo 1346712258 download finish for photo 1346711989 begin to download photo : 1346711990 download finish for photo 1346712246 begin to download photo : 1346712252 download finish for photo 1346712213 download finish for photo 1346711990 begin to download photo : 1346712008 download finish for photo 1346712252 download finish for photo 1346712008 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216291261742795879/ imagette216291271742795879/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21629122_24-03-2025_06_57_59.pdf 21629126 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=21629126 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216291261742795879 21629127 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=21629127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216291271742795879 21629128 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=21629128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346712238: '1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208460_0.png', 1346712239: '1742795802_723011_1346711888_1661c4edf53850e900bd0a64ede25f1b_rle_crop_3726208489_0.png', 1346712240: '1742795802_723011_1346711888_1661c4edf53850e900bd0a64ede25f1b_rle_crop_3726208492_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c40e353df6bc1a8b00acf9171fc9459b_17271222.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/890303201b145aa58e5e969964201072_73757825.png change filename to text .imagette216291281742795879/ imagette216291281742795879/1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208460_0.png.png imagette216291281742795879/1742795802_723011_1346711888_1661c4edf53850e900bd0a64ede25f1b_rle_crop_3726208492_0.png.png imagette216291281742795879/1742795802_723011_1346711888_1661c4edf53850e900bd0a64ede25f1b_rle_crop_3726208489_0.png.png imagette216291291742795879/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9cdd74673f607d959f48f2092495f7cc_2579572.png imagette216291281742795879 21629129 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=21629129 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216291291742795879 21629131 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=21629131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346711813: '1742795511_2601112_1346711630_55464d8f38ec1bad649c6cda7a2b6e39_rle_crop_3726197418_0.png', 1346711814: '1742795511_2601112_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197436_0.png', 1346711894: '1742795612_2602086_1346711630_55464d8f38ec1bad649c6cda7a2b6e39_rle_crop_3726197418_0.png', 1346711895: '1742795612_2602086_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197436_0.png', 1346711940: '1742795653_2602552_1346711799_639dc22f4cb6c6ae5253c95c1ea7f78c_rle_crop_3726198218_0.png', 1346711941: '1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198227_0.png', 1346711942: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198452_0.png', 1346711957: '1742795682_719721_1346711709_1c9b0a1d60666462094137107f0140b9_rle_crop_3726197987_0.png', 1346711958: '1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726198008_0.png', 1346712250: '1742795792_2603650_1346711834_cff1b22ba23b2e1039a98cd4213a1ecf_rle_crop_3726208519_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/97b65cd9117932454328230f46d96dd6_92769901.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b791670856403e6fdd45c213edc5546e_79160809.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/97b65cd9117932454328230f46d96dd6_2926242.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/b791670856403e6fdd45c213edc5546e_4455571.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/57bb2916ecb9a07a3fb292558ddcef8b_87723432.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/2207eb65a3fff434087e15003881954f_64795144.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6d51040a83986cd7e95eb8838c7eb176_29180821.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/baa09a1c9131ea2cfc2f22cb452ca202_52844560.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/90473ecc81b7f11f4fb5a8ab91bcefc4_72544016.png change filename to text .imagette216291311742795879/ imagette216291311742795879/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198452_0.png.png imagette216291311742795879/1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726198008_0.png.png imagette216291311742795879/1742795653_2602552_1346711799_639dc22f4cb6c6ae5253c95c1ea7f78c_rle_crop_3726198218_0.png.png imagette216291311742795879/1742795511_2601112_1346711630_55464d8f38ec1bad649c6cda7a2b6e39_rle_crop_3726197418_0.png.png imagette216291311742795879/1742795682_719721_1346711709_1c9b0a1d60666462094137107f0140b9_rle_crop_3726197987_0.png.png imagette216291311742795879/1742795792_2603650_1346711834_cff1b22ba23b2e1039a98cd4213a1ecf_rle_crop_3726208519_0.png.png imagette216291311742795879/1742795511_2601112_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197436_0.png.png imagette216291311742795879/1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198227_0.png.png imagette216291311742795879/1742795612_2602086_1346711630_55464d8f38ec1bad649c6cda7a2b6e39_rle_crop_3726197418_0.png.png imagette216291311742795879/1742795612_2602086_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197436_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fcdd9ac1c4860838f415121cde4f661d_43816248.png imagette216291311742795879 21629132 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=21629132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346711932: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198455_0.png', 1346712244: '1742795792_2603650_1346711832_7b162a59300669cbcb5ad543b5485864_rle_crop_3726208554_0.png', 1346712243: '1742795792_2603650_1346711833_1e4a0814aed4dedafd914397d2a19a58_rle_crop_3726208533_0.png', 1346712242: '1742795792_2603650_1346711833_1e4a0814aed4dedafd914397d2a19a58_rle_crop_3726208539_0.png', 1346712241: '1742795792_2603650_1346711901_2efd158018818fe7d00ded117cd6a62f_rle_crop_3726208456_0.png', 1346712229: '1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208468_0.png', 1346712228: '1742795802_723011_1346711897_8ac95e7ddb946094b79b397af5aedc69_rle_crop_3726208438_0.png', 1346712227: '1742795802_723011_1346711956_18defe7258d88ea6248c39afde7a425a_rle_crop_3726208422_0.png', 1346712128: '1742795774_2603481_1346711945_4efed4e19776acf193c038fe650162bb_rle_crop_3726208106_0.png', 1346711952: '1742795682_719721_1346711702_a012ea3cc67cb91d86df603e997ccdf2_rle_crop_3726198044_0.png', 1346711951: '1742795682_719721_1346711705_a33473544e9d08fd7240162beb45cae5_rle_crop_3726198025_0.png', 1346711950: '1742795682_719721_1346711705_a33473544e9d08fd7240162beb45cae5_rle_crop_3726198020_0.png', 1346711949: '1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726198010_0.png', 1346711948: '1742795682_719721_1346711709_1c9b0a1d60666462094137107f0140b9_rle_crop_3726197990_0.png', 1346711933: '1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198465_0.png', 1346711758: '1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197067_0.png', 1346711931: '1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198232_0.png', 1346711930: '1742795653_2602552_1346711799_639dc22f4cb6c6ae5253c95c1ea7f78c_rle_crop_3726198219_0.png', 1346711892: '1742795612_2602086_1346711578_6ccb188563b3d45f64bf2e94564f611a_rle_crop_3726197473_0.png', 1346711891: '1742795612_2602086_1346711580_83d96f2eef487eb4993a3c5f3d483ade_rle_crop_3726197461_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a8784df9305d29caf00f66431554792d_4685530.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/21bd6c4c1243425ff83a6b24eeb021e5_39579510.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/57ff8031010032f185092dea12e0e1c4_6573753.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c73f9586245e7c7f6e989d9c6890714a_27784997.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/67f504cf273635f24450a6fd88aa85da_44346611.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5bd1c3bcd5ae9c04873515eedc761313_65313753.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9eb6de3ffa3e3326d1f4f988eb4979d0_27684132.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4b86899b922dc4fc6114bf5abe61a99b_62971577.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d327370380c803b064c64eacc908bed4_76617319.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e2052f89acd156f1b811e0183c7d938f_22018415.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0759cd96a7e3d42b8ee0584187b6a800_93978287.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/25d9a95b4aaf6139325c32a05ea16c17_97702416.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cae3bad676ed8db5575931f26bc8df95_96992404.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9e651e73eaca7b9b394bf9e68c51e619_6660880.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/dd9a26a82af31bd5916bc41b00d0dad3_3594228.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cbf46c7656af9801eab4039fbca0aebe_33908568.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/717c1499f472c7e667dff9a93922d82b_31896648.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/02dd0bd13aa29b40db5c04cb35a04a25_6992048.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8e950f3fccf02e39db0ad84c3a5f3ffe_23449594.png change filename to text .imagette216291321742795879/ imagette216291321742795879/1742795612_2602086_1346711578_6ccb188563b3d45f64bf2e94564f611a_rle_crop_3726197473_0.png.png imagette216291321742795879/1742795682_719721_1346711702_a012ea3cc67cb91d86df603e997ccdf2_rle_crop_3726198044_0.png.png imagette216291321742795879/1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726198010_0.png.png imagette216291321742795879/1742795682_719721_1346711705_a33473544e9d08fd7240162beb45cae5_rle_crop_3726198025_0.png.png imagette216291321742795879/1742795802_723011_1346711897_8ac95e7ddb946094b79b397af5aedc69_rle_crop_3726208438_0.png.png imagette216291321742795879/1742795792_2603650_1346711833_1e4a0814aed4dedafd914397d2a19a58_rle_crop_3726208539_0.png.png imagette216291321742795879/1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197067_0.png.png imagette216291321742795879/1742795792_2603650_1346711901_2efd158018818fe7d00ded117cd6a62f_rle_crop_3726208456_0.png.png imagette216291321742795879/1742795792_2603650_1346711833_1e4a0814aed4dedafd914397d2a19a58_rle_crop_3726208533_0.png.png imagette216291321742795879/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198455_0.png.png imagette216291321742795879/1742795774_2603481_1346711945_4efed4e19776acf193c038fe650162bb_rle_crop_3726208106_0.png.png imagette216291321742795879/1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198232_0.png.png imagette216291321742795879/1742795802_723011_1346711956_18defe7258d88ea6248c39afde7a425a_rle_crop_3726208422_0.png.png imagette216291321742795879/1742795653_2602552_1346711799_639dc22f4cb6c6ae5253c95c1ea7f78c_rle_crop_3726198219_0.png.png imagette216291321742795879/1742795792_2603650_1346711832_7b162a59300669cbcb5ad543b5485864_rle_crop_3726208554_0.png.png imagette216291321742795879/1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198465_0.png.png imagette216291321742795879/1742795682_719721_1346711705_a33473544e9d08fd7240162beb45cae5_rle_crop_3726198020_0.png.png imagette216291321742795879/1742795612_2602086_1346711580_83d96f2eef487eb4993a3c5f3d483ade_rle_crop_3726197461_0.png.png imagette216291321742795879/1742795682_719721_1346711709_1c9b0a1d60666462094137107f0140b9_rle_crop_3726197990_0.png.png imagette216291321742795879/1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208468_0.png.png imagette216291341742795881/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/36f18a6bfa82880221c38aa9e5b73c46_95462113.png imagette216291321742795879 21629134 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=21629134 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216291341742795881 21629123 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=21629123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346711807: '1742795511_2601112_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197437_0.png', 1346712234: '1742795792_2603650_1346711835_5d22c773c74cd1360c42eceb18c95d4b_rle_crop_3726208511_0.png', 1346712232: '1742795792_2603650_1346711848_a8d100c80658d008c039d25e2214fc74_rle_crop_3726208476_0.png', 1346712225: '1742795802_723011_1346711889_40164191e8f083d0058a91a7d1fb07de_rle_crop_3726208485_0.png', 1346711929: '1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198466_0.png', 1346711928: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198447_0.png', 1346711927: '1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198229_0.png', 1346711890: '1742795612_2602086_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197437_0.png', 1346711836: '1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197586_0.png', 1346711751: '1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197063_0.png', 1346711779: '1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197247_0.png', 1346711778: '1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197239_0.png', 1346711756: '1742795452_2600393_1346711670_9420a369b509636ee39ad80453064229_rle_crop_3726197096_0.png', 1346711755: '1742795452_2600393_1346711670_9420a369b509636ee39ad80453064229_rle_crop_3726197104_0.png', 1346711754: '1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197081_0.png', 1346711753: '1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197084_0.png', 1346711752: '1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8347ae99e674a46e79e5cd60119b15a9_51238125.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c91881d11553a09cd6d7e0eed3df09d8_15649500.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3ee0e3537c8f4a761ddeece935ae5472_16072773.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/0271580b1d142d1e97242bd6a2fde462_87449475.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/522a4dc5be220023801292d8e3558d61_59503472.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/9ad777639e2f3100f12555ea17c5ac36_46073519.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/73b439438db88048422dcf4d3039205b_3450447.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8347ae99e674a46e79e5cd60119b15a9_8702507.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/7aa25bcd7394320ca96d8b712c7268b2_7850432.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ffa20b94d88b5f304c3da469eb1e4c46_53996275.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3a557bb5322b6df759ac74bec3580e1f_97965901.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a711c703e69339e096cde2be6ef1edb8_80309440.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ce281aedc3c07b30a55d4517213ec3c9_17863391.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/8f1c3008107fd2531811c0aad88cedcf_20074625.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ab99b4218c3be3e36932c22e73f24873_95639366.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d6b5e1fd844d4080b4df3f4e6299cf02_19223982.png change filename to text .imagette216291231742795881/ imagette216291231742795881/1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197081_0.png.png imagette216291231742795881/1742795511_2601112_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197437_0.png.png imagette216291231742795881/1742795452_2600393_1346711670_9420a369b509636ee39ad80453064229_rle_crop_3726197104_0.png.png imagette216291231742795881/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198447_0.png.png imagette216291231742795881/1742795452_2600393_1346711670_9420a369b509636ee39ad80453064229_rle_crop_3726197096_0.png.png imagette216291231742795881/1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197247_0.png.png imagette216291231742795881/1742795653_2602552_1346711797_12c228007405dd6970c5e361beac298a_rle_crop_3726198229_0.png.png imagette216291231742795881/1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197063_0.png.png imagette216291231742795881/1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197068_0.png.png imagette216291231742795881/1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198466_0.png.png imagette216291231742795881/1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197239_0.png.png imagette216291231742795881/1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197084_0.png.png imagette216291231742795881/1742795792_2603650_1346711848_a8d100c80658d008c039d25e2214fc74_rle_crop_3726208476_0.png.png imagette216291231742795881/1742795612_2602086_1346711584_1615578abf34ba7d838ef1602338568c_rle_crop_3726197437_0.png.png imagette216291231742795881/1742795802_723011_1346711889_40164191e8f083d0058a91a7d1fb07de_rle_crop_3726208485_0.png.png imagette216291231742795881/1742795792_2603650_1346711835_5d22c773c74cd1360c42eceb18c95d4b_rle_crop_3726208511_0.png.png imagette216291231742795881/1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197586_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/95034277f96e0cfff8bc2f8cdf9f8056_10276395.png imagette216291231742795881 21629130 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=21629130 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346711936: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198442_0.png', 1346712247: '1742795792_2603650_1346711835_5d22c773c74cd1360c42eceb18c95d4b_rle_crop_3726208505_0.png', 1346712230: '1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208469_0.png', 1346711955: '1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726197998_0.png', 1346711954: '1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197836_0.png', 1346711953: '1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197840_0.png', 1346711939: '1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198460_0.png', 1346711938: '1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198464_0.png', 1346711937: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198451_0.png', 1346711762: '1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197064_0.png', 1346711935: '1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198445_0.png', 1346711844: '1742795570_2601669_1346711739_61a75d7dd124427466642e5a3bf768c4_rle_crop_3726197614_0.png', 1346711843: '1742795570_2601669_1346711740_33ebe2c020533c9e5e03558a8b2021ee_rle_crop_3726197602_0.png', 1346711842: '1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197582_0.png', 1346711788: '1742795473_2600596_1346711623_6ea9514d6507631e96e4ea5499b0da50_rle_crop_3726197273_0.png', 1346711787: '1742795473_2600596_1346711625_391c3878b3e5c57656c6644d36eb65c5_rle_crop_3726197264_0.png', 1346711786: '1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197244_0.png', 1346711763: '1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197077_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/bf9500716b59e8636ec1908682a257b9_1293704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d216d13867132b71e24340c82945deab_75231759.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4226fa515471f2b58b9252430f48bcb3_24898693.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fe29b45ebe87f62409392c26ae2842b7_51762510.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c081962ba2dbd554191ec8c65e4f39c5_41762807.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/391fe9d5851d6d9a652be83f652a5d50_70538501.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/92e4bed706f8264222988080134371b0_77735059.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/e0d51320d24eac25aaede34ef97b1d50_75897187.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1af7b90ad69e3979dfee443e2b94f585_10418824.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/726156e1f2bebf13af7eabe2b556c3a9_42222462.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/35f07fa1b1db9549f49b35e19300cb73_86516936.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5fe24fd427fb521d03adc611d428f65f_63967685.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/734da99150f316afed682ee4fab2d14d_30980639.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/048807f6a0b5d855d7cc06d230e1c924_69429415.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cc68857be35cf05d828251d9d1e91b7e_67533850.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cc0008c8dea18e2767034af9dfe93c07_11605141.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/118afe080ec4fe18da2c6720add45b7c_3166908.png change filename to text .imagette216291301742795882/ imagette216291301742795882/1742795473_2600596_1346711623_6ea9514d6507631e96e4ea5499b0da50_rle_crop_3726197273_0.png.png imagette216291301742795882/1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197840_0.png.png imagette216291301742795882/1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197244_0.png.png imagette216291301742795882/1742795452_2600393_1346711674_076ff0fc11cfd161f4dea8602be56df8_rle_crop_3726197064_0.png.png imagette216291301742795882/1742795473_2600596_1346711625_391c3878b3e5c57656c6644d36eb65c5_rle_crop_3726197264_0.png.png imagette216291301742795882/1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208469_0.png.png imagette216291301742795882/1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197836_0.png.png imagette216291301742795882/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198445_0.png.png imagette216291301742795882/1742795682_719721_1346711707_238147093b39a2fc0d38a400c11804dd_rle_crop_3726197998_0.png.png imagette216291301742795882/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198451_0.png.png imagette216291301742795882/1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197582_0.png.png imagette216291301742795882/1742795452_2600393_1346711672_1a8af4f1745af7f7efb02326122d1bdf_rle_crop_3726197077_0.png.png imagette216291301742795882/1742795570_2601669_1346711739_61a75d7dd124427466642e5a3bf768c4_rle_crop_3726197614_0.png.png imagette216291301742795882/1742795792_2603650_1346711835_5d22c773c74cd1360c42eceb18c95d4b_rle_crop_3726208505_0.png.png imagette216291301742795882/1742795653_2602552_1346711795_545b3864ab640cc2966b508b6d26f4b3_rle_crop_3726198442_0.png.png imagette216291301742795882/1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198460_0.png.png imagette216291301742795882/1742795653_2602552_1346711793_b72cc0a31961449485c2cc86ff9696fc_rle_crop_3726198464_0.png.png imagette216291301742795882/1742795570_2601669_1346711740_33ebe2c020533c9e5e03558a8b2021ee_rle_crop_3726197602_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/a6683bd1ea552bbdb451f5fdc8183f25_94908964.png imagette216291301742795882 21629133 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=21629133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346711789: '1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197240_0.png', 1346711815: '1742795511_2601112_1346711586_ae768eae2199a5340bc278964a09320d_rle_crop_3726197428_0.png', 1346711846: '1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197588_0.png', 1346711847: '1742795570_2601669_1346711740_33ebe2c020533c9e5e03558a8b2021ee_rle_crop_3726197604_0.png', 1346711896: '1742795612_2602086_1346711586_ae768eae2199a5340bc278964a09320d_rle_crop_3726197428_0.png', 1346711959: '1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197841_0.png', 1346712231: '1742795802_723011_1346711897_8ac95e7ddb946094b79b397af5aedc69_rle_crop_3726208434_0.png', 1346712236: '1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208463_0.png', 1346712237: '1742795802_723011_1346711889_40164191e8f083d0058a91a7d1fb07de_rle_crop_3726208484_0.png', 1346712251: '1742795792_2603650_1346711832_7b162a59300669cbcb5ad543b5485864_rle_crop_3726208553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/d193e4c84c4906bdfa14549dda321c74_50543122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/df6f4378593dc71ab58d47b647f365dc_32962734.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/aa7b599922f61c8e3fbae216b5187d1d_53233357.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/34c454422943255a69c81958604323a8_45199598.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/df6f4378593dc71ab58d47b647f365dc_48455831.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/74aa8c257d9a169d61cca1356bec8044_69728791.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/61ac80a997d45738155faf4fffed9a64_55495147.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/c1f35b0f360a50fafda7c2f9f943da4e_22168078.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fc89eaad1c952bc32ac027fb61214287_69740776.png change filename to text .imagette216291331742795883/ imagette216291331742795883/1742795612_2602086_1346711586_ae768eae2199a5340bc278964a09320d_rle_crop_3726197428_0.png.png imagette216291331742795883/1742795682_719721_1346711742_3e2d94d45f56d263aeba341fd1d1b610_rle_crop_3726197841_0.png.png imagette216291331742795883/1742795570_2601669_1346711741_67cfe5dbeade7267defc821dcbf007f7_rle_crop_3726197588_0.png.png imagette216291331742795883/1742795792_2603650_1346711832_7b162a59300669cbcb5ad543b5485864_rle_crop_3726208553_0.png.png imagette216291331742795883/1742795473_2600596_1346711678_1b0abd129cdf7adca62a87bb337375d3_rle_crop_3726197240_0.png.png imagette216291331742795883/1742795570_2601669_1346711740_33ebe2c020533c9e5e03558a8b2021ee_rle_crop_3726197604_0.png.png imagette216291331742795883/1742795802_723011_1346711893_ce71823f90c143338b9f72bb64d4342a_rle_crop_3726208463_0.png.png imagette216291331742795883/1742795802_723011_1346711897_8ac95e7ddb946094b79b397af5aedc69_rle_crop_3726208434_0.png.png imagette216291331742795883/1742795511_2601112_1346711586_ae768eae2199a5340bc278964a09320d_rle_crop_3726197428_0.png.png imagette216291331742795883/1742795802_723011_1346711889_40164191e8f083d0058a91a7d1fb07de_rle_crop_3726208484_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/cfb3b3788ace77de07bd3203f50ea600_4592538.png imagette216291331742795883 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21629122 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21629135,21629136,21629137,21629138,21629139,21629140,21629141,21629142,21629143,21629144,21629145,21629146?tags=Teint_Dans_La_Masse,papier,environnement,kraft,mal_croppe,plastique,flou,Carton_gris,cartonnette,autre_refus,Carton_brun,metal your option no_mail is active, we will not send the real mail to your client args[1346712258] : ('0.06683011921983975',) no score found for photo 1346712258 We are sending mail with results at report@fotonower.com args[1346712254] : ('0.06683011921983975',) no score found for photo 1346712254 We are sending mail with results at report@fotonower.com args[1346712252] : ('0.06683011921983975',) no score found for photo 1346712252 We are sending mail with results at report@fotonower.com args[1346712246] : ('0.06683011921983975',) no score found for photo 1346712246 We are sending mail with results at report@fotonower.com args[1346712235] : ('0.06683011921983975',) no score found for photo 1346712235 We are sending mail with results at report@fotonower.com args[1346712213] : ('0.06683011921983975',) no score found for photo 1346712213 We are sending mail with results at report@fotonower.com args[1346712064] : ('0.06683011921983975',) no score found for photo 1346712064 We are sending mail with results at report@fotonower.com args[1346712033] : ('0.06683011921983975',) no score found for photo 1346712033 We are sending mail with results at report@fotonower.com args[1346712008] : ('0.06683011921983975',) no score found for photo 1346712008 We are sending mail with results at report@fotonower.com args[1346711990] : ('0.06683011921983975',) no score found for photo 1346711990 We are sending mail with results at report@fotonower.com args[1346711989] : ('0.06683011921983975',) no score found for photo 1346711989 We are sending mail with results at report@fotonower.com refus_total : 0.06683011921983975 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=21629122 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_P21629122_24-03-2025_06_57_59.pdf results_Auto_P21629122_24-03-2025_06_57_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21629122_24-03-2025_06_57_59.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','21629122','results_Auto_P21629122_24-03-2025_06_57_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21629122_24-03-2025_06_57_59.pdf','pdf','','0.36','0.06683011921983975') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21629122]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] map_info['map_portfolio_photo'] : {21629122: [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989, 1346711956, 1346711947, 1346711946, 1346711945, 1346711901, 1346711897, 1346711893, 1346711889, 1346711888, 1346711853, 1346711848, 1346711835, 1346711834, 1346711833, 1346711832, 1346711801, 1346711799, 1346711797, 1346711795, 1346711793, 1346711742, 1346711741, 1346711740, 1346711739, 1346711712, 1346711709, 1346711707, 1346711705, 1346711702, 1346711678, 1346711674, 1346711672, 1346711670, 1346711666, 1346711630, 1346711629, 1346711627, 1346711625, 1346711623, 1346711586, 1346711584, 1346711582, 1346711580, 1346711578]} final : False mtd_id 4302 list_pids : [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] 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, '2684053') ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21629122', '1346712258', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053')] time used for this insertion : 0.017830848693847656 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.1088807582855225 time spend to save output : 0.018080949783325195 total time spend for step 4 : 6.126961708068848 step5:split_time_score Mon Mar 24 06:58: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 : ['21629122'] 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 : [('21629122',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21629122) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346712254: {'path': 'temp/1742795878_3040344_1346712254_1bf029ff323a6f749c1dbb56350e746e.jpg', 'extension': 'jpg'}, 1346712258: {'path': 'temp/1742795878_3040344_1346712258_8ed10e6c2373ca5c086cb22b247f6ca6.jpg', 'extension': 'jpg'}, 1346712033: {'path': 'temp/1742795878_3040344_1346712033_a822385e38edd2a3761f91ed5de45efc.jpg', 'extension': 'jpg'}, 1346712064: {'path': 'temp/1742795878_3040344_1346712064_3a5daf46565defb75c86531bd2f9c4f7.jpg', 'extension': 'jpg'}, 1346712213: {'path': 'temp/1742795878_3040344_1346712213_d3fbeaf4683d1f5302bf61d80ab5f488.jpg', 'extension': 'jpg'}, 1346712235: {'path': 'temp/1742795878_3040344_1346712235_e2b2f0a7aab106e945a6207b46b19244.jpg', 'extension': 'jpg'}, 1346712246: {'path': 'temp/1742795878_3040344_1346712246_5923a8d8a3953b4bda47b644a795b333.jpg', 'extension': 'jpg'}, 1346712252: {'path': 'temp/1742795878_3040344_1346712252_a268e0f6544d8769027dd2e3921b4170.jpg', 'extension': 'jpg'}, 1346711989: {'path': 'temp/1742795878_3040344_1346711989_6e2843830c00108e39387775e826a8b6.jpg', 'extension': 'jpg'}, 1346711990: {'path': 'temp/1742795878_3040344_1346711990_9db59381d092601c91a9f8c6d056453f.jpg', 'extension': 'jpg'}, 1346712008: {'path': 'temp/1742795878_3040344_1346712008_64de34f28f04c5e0165c43c586a710ee.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 = 21629122; (('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 = 21629122 group by h (('06', 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=21629122 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 (21629122) 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 (21629122) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21629122 Nombre de photos uploadées : 55 / 23040 (0%) 24032025 21629122 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 24032025 21629122 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1346711586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/ae768eae2199a5340bc278964a09320d.jpg', 'username': None, 'uploaded_at': 1742795228, 'text': 'image_24032025_06_45_04_010158m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346711584, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1615578abf34ba7d838ef1602338568c.jpg', 'username': None, 'uploaded_at': 1742795228, 'text': 'image_24032025_06_45_14_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346711582, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5d5f29aaf54b24d8d9a9b70618e5b674.jpg', 'username': None, 'uploaded_at': 1742795228, 'text': 'image_24032025_06_45_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1346711580, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/83d96f2eef487eb4993a3c5f3d483ade.jpg', 'username': None, 'uploaded_at': 1742795228, 'text': 'image_24032025_06_45_34_010140m0.jpg 4e-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 7.62939453125e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002845287322998047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21629122, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0300750732421875 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690429, 'mtr_portfolio_id': 21627692, 'dashboard_result_id': 9566206, '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_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690429, 'mtr_portfolio_id': 21628109, 'dashboard_result_id': 9566208, '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_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690429, 'mtr_portfolio_id': 21628663, 'dashboard_result_id': 9566209, '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_P21628663_24-03-2025_06_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21628664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21628667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628675, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690429, 'mtr_portfolio_id': 21629122, 'dashboard_result_id': 9566211, '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_P21629122_24-03-2025_06_57_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21629123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21629124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21629125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21629126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21629127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21629128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21629129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21629130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21629131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21629132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21629133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21629134, '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 = 21627692 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': 2683943, 'mtr_portfolio_id': 21627692, 'created_at': datetime.datetime(2025, 3, 24, 6, 18, 59), 'result': '0.053208171598301206', 'result_long': None, 'result_double': None}] Qualite : 0.053208171598301206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21627692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627692_24-03-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21627692 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_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, 'pht': 3726}}" where mtr_portfolio_id = 21627692 and dashboard_run_id = 1690429 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`=21627692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9566206, 0.053208171598301206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, '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 = 21628109 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': 2683976, 'mtr_portfolio_id': 21628109, 'created_at': datetime.datetime(2025, 3, 24, 6, 34, 59), 'result': '0.068073349335327', 'result_long': None, 'result_double': None}] Qualite : 0.068073349335327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21628109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628109_24-03-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21628109 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_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, 'pht': 3726}}" where mtr_portfolio_id = 21628109 and dashboard_run_id = 1690429 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`=21628109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9566208, 0.068073349335327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, '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 = 21628663 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': 2684015, 'mtr_portfolio_id': 21628663, 'created_at': datetime.datetime(2025, 3, 24, 6, 48), 'result': '0.07189022878765079', 'result_long': None, 'result_double': None}] Qualite : 0.07189022878765079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21628663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_48_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21628663 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_P21628663_24-03-2025_06_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21628664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21628667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628675, 'pht': 3726}}" where mtr_portfolio_id = 21628663 and dashboard_run_id = 1690429 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`=21628663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9566209, 0.07189022878765079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_48_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21628664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21628667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628675, '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 = 21629122 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': 2684053, 'mtr_portfolio_id': 21629122, 'created_at': datetime.datetime(2025, 3, 24, 6, 57, 58), 'result': '0.06683011921983975', 'result_long': None, 'result_double': None}] Qualite : 0.06683011921983975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21629122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21629122_24-03-2025_06_57_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21629122 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_P21629122_24-03-2025_06_57_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21629123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21629124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21629125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21629126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21629127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21629128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21629129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21629130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21629131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21629132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21629133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21629134, 'pht': 3726}}" where mtr_portfolio_id = 21629122 and dashboard_run_id = 1690429 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`=21629122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9566211, 0.06683011921983975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21629122_24-03-2025_06_57_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21629123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21629124, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21629125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21629126, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21629127, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21629128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21629129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21629130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21629131, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21629132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21629133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21629134, '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 (21627692,21628109,21628663,21629122) result : ((1346709094,), (1346709135,), (1346709166,), (1346709369,), (1346709373,), (1346709378,), (1346709393,), (1346709401,), (1346709404,), (1346709423,), (1346709427,), (1346709430,), (1346709433,), (1346709466,), (1346709472,), (1346709482,), (1346709529,), (1346709532,), (1346709534,), (1346709537,), (1346709567,), (1346709571,), (1346709583,), (1346709598,), (1346709630,), (1346709634,), (1346709637,), (1346709640,), (1346709646,), (1346709669,), (1346709672,), (1346709675,), (1346709678,), (1346709728,), (1346709732,), (1346709737,), (1346709741,), (1346709746,), (1346709775,), (1346709778,), (1346709782,), (1346709789,), (1346709826,), (1346709829,), (1346709832,), (1346709835,), (1346709864,), (1346709868,), (1346709872,), (1346709876,), (1346709910,), (1346709913,), (1346709916,), (1346709919,), (1346709945,), (1346709959,), (1346709965,), (1346709969,), (1346709977,), (1346709986,), (1346710006,), (1346710009,), (1346710012,), (1346710015,), (1346710021,), (1346710081,), (1346710065,), (1346710073,), (1346710077,), (1346710117,), (1346710119,), (1346710121,), (1346710123,), (1346710128,), (1346710156,), (1346710159,), (1346710162,), (1346710210,), (1346710212,), (1346710214,), (1346710279,), (1346710282,), (1346710286,), (1346710296,), (1346710302,), (1346710356,), (1346710358,), (1346710360,), (1346710362,), (1346710367,), (1346710370,), (1346710394,), (1346710397,), (1346710400,), (1346710403,), (1346710407,), (1346710433,), (1346710435,), (1346710437,), (1346710439,), (1346710443,), (1346710446,), (1346710469,), (1346710472,), (1346710476,), (1346710479,), (1346710522,), (1346710528,), (1346710538,), (1346710542,), (1346710545,), (1346710547,), (1346710569,), (1346710572,), (1346710575,), (1346710578,), (1346710626,), (1346710635,), (1346710645,), (1346710671,), (1346710674,), (1346710676,), (1346710679,), (1346710725,), (1346710727,), (1346710728,), (1346710729,), (1346710732,), (1346710765,), (1346710767,), (1346710830,), (1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,), (1346710976,), (1346710979,), (1346710982,), (1346711037,), (1346711039,), (1346711041,), (1346711042,), (1346711045,), (1346711048,), (1346711077,), (1346711081,), (1346711084,), (1346711093,), (1346711096,), (1346711140,), (1346711142,), (1346711144,), (1346711146,), (1346711176,), (1346711178,), (1346711186,), (1346711195,), (1346711224,), (1346711226,), (1346711228,), (1346711269,), (1346711280,), (1346711283,), (1346711286,), (1346711290,), (1346711292,), (1346711331,), (1346711332,), (1346711333,), (1346711334,), (1346711338,), (1346711341,), (1346711373,), (1346711378,), (1346711381,), (1346711383,), (1346711387,), (1346711411,), (1346711413,), (1346711415,), (1346711446,), (1346711448,), (1346711450,), (1346711507,), (1346711509,), (1346711511,), (1346711513,), (1346711516,), (1346711593,), (1346711578,), (1346711580,), (1346711582,), (1346711584,), (1346711586,), (1346711623,), (1346711625,), (1346711627,), (1346711629,), (1346711630,), (1346711666,), (1346711670,), (1346711672,), (1346711674,), (1346711678,), (1346711702,), (1346711705,), (1346711707,), (1346711709,), (1346711712,), (1346711739,), (1346711740,), (1346711741,), (1346711742,), (1346711793,), (1346711795,), (1346711797,), (1346711799,), (1346711801,), (1346711832,), (1346711833,), (1346711834,), (1346711835,), (1346711848,), (1346711853,), (1346711888,), (1346711889,), (1346711893,), (1346711897,), (1346711901,), (1346711945,), (1346711946,), (1346711947,), (1346711956,), (1346711989,), (1346711990,), (1346712008,), (1346712033,), (1346712064,), (1346712213,), (1346712235,), (1346712246,), (1346712252,), (1346712254,), (1346712258,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'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([21629122]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] map_info['map_portfolio_photo'] : {21629122: [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989, 1346711956, 1346711947, 1346711946, 1346711945, 1346711901, 1346711897, 1346711893, 1346711889, 1346711888, 1346711853, 1346711848, 1346711835, 1346711834, 1346711833, 1346711832, 1346711801, 1346711799, 1346711797, 1346711795, 1346711793, 1346711742, 1346711741, 1346711740, 1346711739, 1346711712, 1346711709, 1346711707, 1346711705, 1346711702, 1346711678, 1346711674, 1346711672, 1346711670, 1346711666, 1346711630, 1346711629, 1346711627, 1346711625, 1346711623, 1346711586, 1346711584, 1346711582, 1346711580, 1346711578]} final : True mtd_id 4302 list_pids : [1346712258, 1346712254, 1346712252, 1346712246, 1346712235, 1346712213, 1346712064, 1346712033, 1346712008, 1346711990, 1346711989] Looping around the photos to save general results len do output : 1 /21629122Didn'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, '2684053') ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053') ('4302', None, None, None, None, None, None, None, '2684053') ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21629122', 'None', None, None, None, None, '2684053'), ('4302', '21629122', '1346712258', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712254', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712252', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712246', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712235', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712213', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712064', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712033', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346712008', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711990', None, None, None, None, None, '2684053'), ('4302', '21629122', '1346711989', None, None, None, None, None, '2684053')] time used for this insertion : 0.09883522987365723 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36089277267456055 time spend to save output : 0.09914159774780273 total time spend for step 5 : 0.4600343704223633 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 (2684053) 2.34user 2.50system 0:10.55elapsed 45%CPU (0avgtext+0avgdata 165428maxresident)k 272inputs+19552outputs (19major+76242minor)pagefaults 0swaps