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 : 3631935 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 (2703207) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2703207) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860849 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2703207'] with mtr_portfolio_ids : ['21860849'] and first list_photo_ids : [] new path : /proc/3631935/ Name: python3 Umask: 0002 State: R (running) Tgid: 3631935 Ngid: 0 Pid: 3631935 PPid: 3631934 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3631935 NSpid: 3631935 NSpgid: 3629300 NSsid: 3629300 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98244 kB VmRSS: 98244 kB RssAnon: 59768 kB RssFile: 38476 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3631935', 'Ngid': '0', 'Pid': '3631935', 'PPid': '3631934', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3631935', 'NSpid': '3631935', 'NSpgid': '3629300', 'NSsid': '3629300', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98244 kB', 'VmRSS': '98244 kB', 'RssAnon': '59768 kB', 'RssFile': '38476 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3631935', '1106928', '0', '1106928', '865676', '98244', b'', 'marlene', '2703207') 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 (21860849) 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 (2703207 ) ) 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 (21860849) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348355676, 'portfolio_id': 21860849}, {'photo_id': 1348355184, 'portfolio_id': 21860849}, {'photo_id': 1348355152, 'portfolio_id': 21860849}, {'photo_id': 1348355151, 'portfolio_id': 21860849}, {'photo_id': 1348355148, 'portfolio_id': 21860849}, {'photo_id': 1348355146, 'portfolio_id': 21860849}, {'photo_id': 1348355144, 'portfolio_id': 21860849}, {'photo_id': 1348355142, 'portfolio_id': 21860849}, {'photo_id': 1348355091, 'portfolio_id': 21860849}, {'photo_id': 1348355088, 'portfolio_id': 21860849}, {'photo_id': 1348355083, 'portfolio_id': 21860849}, {'photo_id': 1348355075, 'portfolio_id': 21860849}, {'photo_id': 1348355048, 'portfolio_id': 21860849}, {'photo_id': 1348355044, 'portfolio_id': 21860849}, {'photo_id': 1348355041, 'portfolio_id': 21860849}, {'photo_id': 1348355039, 'portfolio_id': 21860849}, {'photo_id': 1348355035, 'portfolio_id': 21860849}, {'photo_id': 1348355034, 'portfolio_id': 21860849}, {'photo_id': 1348354997, 'portfolio_id': 21860849}, {'photo_id': 1348354992, 'portfolio_id': 21860849}, {'photo_id': 1348354990, 'portfolio_id': 21860849}, {'photo_id': 1348354985, 'portfolio_id': 21860849}, {'photo_id': 1348354982, 'portfolio_id': 21860849}, {'photo_id': 1348354942, 'portfolio_id': 21860849}, {'photo_id': 1348354940, 'portfolio_id': 21860849}, {'photo_id': 1348354938, 'portfolio_id': 21860849}, {'photo_id': 1348354896, 'portfolio_id': 21860849}, {'photo_id': 1348354892, 'portfolio_id': 21860849}, {'photo_id': 1348354889, 'portfolio_id': 21860849}, {'photo_id': 1348354884, 'portfolio_id': 21860849}, {'photo_id': 1348354852, 'portfolio_id': 21860849}, {'photo_id': 1348354849, 'portfolio_id': 21860849}, {'photo_id': 1348354848, 'portfolio_id': 21860849}, {'photo_id': 1348354846, 'portfolio_id': 21860849}, {'photo_id': 1348354763, 'portfolio_id': 21860849}, {'photo_id': 1348354729, 'portfolio_id': 21860849}, {'photo_id': 1348354698, 'portfolio_id': 21860849}, {'photo_id': 1348354689, 'portfolio_id': 21860849}, {'photo_id': 1348354685, 'portfolio_id': 21860849}, {'photo_id': 1348354637, 'portfolio_id': 21860849}, {'photo_id': 1348354634, 'portfolio_id': 21860849}, {'photo_id': 1348354632, 'portfolio_id': 21860849}, {'photo_id': 1348354587, 'portfolio_id': 21860849}, {'photo_id': 1348354583, 'portfolio_id': 21860849}, {'photo_id': 1348354552, 'portfolio_id': 21860849}, {'photo_id': 1348354525, 'portfolio_id': 21860849}, {'photo_id': 1348354228, 'portfolio_id': 21860849}, {'photo_id': 1348354203, 'portfolio_id': 21860849}, {'photo_id': 1348354180, 'portfolio_id': 21860849}, {'photo_id': 1348354067, 'portfolio_id': 21860849}, {'photo_id': 1348354055, 'portfolio_id': 21860849}, {'photo_id': 1348354021, 'portfolio_id': 21860849}, {'photo_id': 1348354013, 'portfolio_id': 21860849}, {'photo_id': 1348353822, 'portfolio_id': 21860849}] map_portfolio_id_photo_id: {21860849: [1348355676, 1348355184, 1348355152, 1348355151, 1348355148, 1348355146, 1348355144, 1348355142, 1348355091, 1348355088, 1348355083, 1348355075, 1348355048, 1348355044, 1348355041, 1348355039, 1348355035, 1348355034, 1348354997, 1348354992, 1348354990, 1348354985, 1348354982, 1348354942, 1348354940, 1348354938, 1348354896, 1348354892, 1348354889, 1348354884, 1348354852, 1348354849, 1348354848, 1348354846, 1348354763, 1348354729, 1348354698, 1348354689, 1348354685, 1348354637, 1348354634, 1348354632, 1348354587, 1348354583, 1348354552, 1348354525, 1348354228, 1348354203, 1348354180, 1348354067, 1348354055, 1348354021, 1348354013, 1348353822]} ##### 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.014216899871826172 #### 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 Fri Mar 28 20:34:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21860849) 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 : 21860849 get user id for portfolio 21860849 get sub ptf for main ptf 21860849, type 3726 and hashtags ['metal', 'mal_croppe', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'papier', 'Carton_gris', 'environnement', 'flou', 'autre_refus', 'plastique', 'kraft'] 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`=21860849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris','environnement','flou','autre_refus','plastique','kraft')) 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`=21860849 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris','environnement','flou','autre_refus','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21860849, 'sub_port_id': 21860851, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374322, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'autre_refus': {'main_port_id': 21860849, 'sub_port_id': 21860852, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374323, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21860849, 'sub_port_id': 21860853, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374324, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'Carton_gris': {'main_port_id': 21860849, 'sub_port_id': 21860854, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374325, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'Carton_brun': {'main_port_id': 21860849, 'sub_port_id': 21860855, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374326, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'metal': {'main_port_id': 21860849, 'sub_port_id': 21860856, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374327, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'kraft': {'main_port_id': 21860849, 'sub_port_id': 21860857, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374328, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'environnement': {'main_port_id': 21860849, 'sub_port_id': 21860858, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374329, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'cartonnette': {'main_port_id': 21860849, 'sub_port_id': 21860859, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374330, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'plastique': {'main_port_id': 21860849, 'sub_port_id': 21860860, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374331, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'flou': {'main_port_id': 21860849, 'sub_port_id': 21860861, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374332, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}, 'mal_croppe': {'main_port_id': 21860849, 'sub_port_id': 21860862, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374333, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 22, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21860851 , 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=21860849 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 (21860851) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860852 , 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=21860849 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 (21860852) result : ((1348354437,), (1348354925,), (1348355078,), (1348355079,), (1348355112,), (1348355113,), (1348355199,), (1348355348,), (1348355392,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860853 , 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=21860849 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 (21860853) result : ((1348354422,), (1348354425,), (1348354935,), (1348354948,), (1348355076,), (1348355077,), (1348355096,), (1348355172,), (1348355190,), (1348355191,), (1348355192,), (1348355193,), (1348355194,), (1348355195,), (1348355196,), (1348355322,), (1348355323,), (1348355387,), (1348355388,), (1348355389,), (1348355391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860854 , 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=21860849 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 (21860854) result : ((1348354454,), (1348354456,), (1348354927,), (1348354928,), (1348355097,), (1348355098,), (1348355173,), (1348355174,), (1348355367,), (1348355368,), (1348355394,), (1348355395,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860855 , 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=21860849 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 (21860855) result : ((1348354356,), (1348354357,), (1348354358,), (1348354951,), (1348355105,), (1348355115,), (1348355369,), (1348355396,), (1348355397,), (1348355398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860856 , 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=21860849 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 (21860856) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860857 , 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=21860849 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 (21860857) result : ((1348355107,), (1348355202,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860858 , 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=21860849 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 (21860858) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860859 , 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=21860849 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 (21860859) result : ((1348354465,), (1348354467,), (1348354469,), (1348354931,), (1348354962,), (1348355080,), (1348355100,), (1348355101,), (1348355102,), (1348355103,), (1348355104,), (1348355114,), (1348355176,), (1348355188,), (1348355200,), (1348355201,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860860 , 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=21860849 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 (21860860) result : ((1348354952,), (1348355106,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860861 , 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=21860849 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 (21860861) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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 21860862 , 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=21860849 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 (21860862) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21860849) result : ((1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) 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`=21860849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris','environnement','flou','autre_refus','plastique','kraft')) 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`=21860849 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','mal_croppe','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris','environnement','flou','autre_refus','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21860849, 'sub_port_id': 21860863, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374334, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'autre_refus': {'main_port_id': 21860849, 'sub_port_id': 21860864, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374335, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'Teint_Dans_La_Masse': {'main_port_id': 21860849, 'sub_port_id': 21860865, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374336, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'Carton_gris': {'main_port_id': 21860849, 'sub_port_id': 21860866, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374337, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'Carton_brun': {'main_port_id': 21860849, 'sub_port_id': 21860867, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374338, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'metal': {'main_port_id': 21860849, 'sub_port_id': 21860868, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374339, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'kraft': {'main_port_id': 21860849, 'sub_port_id': 21860869, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374340, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'environnement': {'main_port_id': 21860849, 'sub_port_id': 21860870, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374341, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'cartonnette': {'main_port_id': 21860849, 'sub_port_id': 21860871, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374342, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'plastique': {'main_port_id': 21860849, 'sub_port_id': 21860872, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374343, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'flou': {'main_port_id': 21860849, 'sub_port_id': 21860873, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374344, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 23), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}, 'mal_croppe': {'main_port_id': 21860849, 'sub_port_id': 21860874, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14374345, 'last_updated_at': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 20, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 20, 23)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860856 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860857 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860858 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860859 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860860 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860861 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21860874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21860862 lien utilise dans velours : https://www.fotonower.com/velours/21860863,21860864,21860865,21860866,21860867,21860868,21860869,21860870,21860871,21860872,21860873,21860874?tags=papier,autre_refus,Teint_Dans_La_Masse,Carton_gris,Carton_brun,metal,kraft,environnement,cartonnette,plastique,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21860849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348355676] map_info['map_portfolio_photo'] : {21860849: [1348355676, 1348355184, 1348355152, 1348355151, 1348355148, 1348355146, 1348355144, 1348355142, 1348355091, 1348355088, 1348355083, 1348355075, 1348355048, 1348355044, 1348355041, 1348355039, 1348355035, 1348355034, 1348354997, 1348354992, 1348354990, 1348354985, 1348354982, 1348354942, 1348354940, 1348354938, 1348354896, 1348354892, 1348354889, 1348354884, 1348354852, 1348354849, 1348354848, 1348354846, 1348354763, 1348354729, 1348354698, 1348354689, 1348354685, 1348354637, 1348354634, 1348354632, 1348354587, 1348354583, 1348354552, 1348354525, 1348354228, 1348354203, 1348354180, 1348354067, 1348354055, 1348354021, 1348354013, 1348353822]} final : False mtd_id 4302 list_pids : [1348355676] Looping around the photos to save general results len do output : 1 /21860849. 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, '2703207') ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21860849', "{'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862}", None, None, None, None, '2703207'), ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207')] time used for this insertion : 0.015123844146728516 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.502915620803833 time spend to save output : 0.015336036682128906 total time spend for step 1 : 1.518251657485962 step2:final Fri Mar 28 20:34:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21860849) 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 21860849 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348353822,1348354067,1348354055,1348354021,1348354013,1348354228,1348354203,1348354180,1348354587,1348354583,1348354552,1348354525,1348354637,1348354634,1348354632,1348354763,1348354729,1348354698,1348354689,1348354685,1348354852,1348354849,1348354848,1348354846,1348354896,1348354892,1348354889,1348354884,1348354942,1348354940,1348354938,1348354997,1348354992,1348354990,1348354985,1348354982,1348355048,1348355044,1348355041,1348355039,1348355035,1348355034,1348355091,1348355088,1348355083,1348355075,1348355152,1348355151,1348355148,1348355146,1348355144,1348355142,1348355184,1348355676); 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([21860849]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348355676: ('0.04389208409636109',)} new output for save of step final : {1348355676: ('0.04389208409636109',)} [1348355676] map_info['map_portfolio_photo'] : {21860849: [1348355676, 1348355184, 1348355152, 1348355151, 1348355148, 1348355146, 1348355144, 1348355142, 1348355091, 1348355088, 1348355083, 1348355075, 1348355048, 1348355044, 1348355041, 1348355039, 1348355035, 1348355034, 1348354997, 1348354992, 1348354990, 1348354985, 1348354982, 1348354942, 1348354940, 1348354938, 1348354896, 1348354892, 1348354889, 1348354884, 1348354852, 1348354849, 1348354848, 1348354846, 1348354763, 1348354729, 1348354698, 1348354689, 1348354685, 1348354637, 1348354634, 1348354632, 1348354587, 1348354583, 1348354552, 1348354525, 1348354228, 1348354203, 1348354180, 1348354067, 1348354055, 1348354021, 1348354013, 1348353822]} final : False mtd_id 4302 list_pids : [1348355676] Looping around the photos to save general results len do output : 1 /1348355676.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, '2703207') ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21860849', '1348355676', '0.04389208409636109', None, None, None, None, '2703207')] time used for this insertion : 0.013953924179077148 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07551145553588867 time spend to save output : 0.014126300811767578 total time spend for step 2 : 0.08963775634765625 step3:velours_tree Fri Mar 28 20:34:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21860849: [{'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862}]} input_args_next_step : {21860849: ()} output_args : {21860849: [{'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862}]} args : 21860849 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21860849) 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([21860849]) 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.5529301166534424 time spend to save output : 0.00013256072998046875 total time spend for step 3 : 0.5530626773834229 step4:send_mail_cod Fri Mar 28 20:35:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348355676: ('0.04389208409636109',)} input_args_next_step : {1348355676: ()} output_args : {1348355676: ('0.04389208409636109',)} args : 1348355676 depend.output_id : 0 complete output_args for input 3 : {21860849: [{'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862}]} input_args_next_step : {1348355676: ('0.04389208409636109',), 21860849: ()} output_args : {21860849: [{'papier': 21860851, 'autre_refus': 21860852, 'Teint_Dans_La_Masse': 21860853, 'Carton_gris': 21860854, 'Carton_brun': 21860855, 'metal': 21860856, 'kraft': 21860857, 'environnement': 21860858, 'cartonnette': 21860859, 'plastique': 21860860, 'flou': 21860861, 'mal_croppe': 21860862}]} args : 21860849 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 :2, first value : ('0.04389208409636109',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21860849) 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 (1348355676) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348355676 download finish for photo 1348355676 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21860849_28-03-2025_20_35_00.pdf 21860852 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=21860852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348354437: '1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800874_0.png', 1348354925: '1743189865_1926925_1348354698_3cb6ce6476050ce9db4e69dd503484c9_rle_crop_3736801421_0.png', 1348355078: '1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803682_0.png', 1348355079: '1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803681_0.png', 1348355112: '1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803780_0.png', 1348355113: '1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803782_0.png', 1348355199: '1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804117_0.png', 1348355348: '1743190272_1693568_1348355144_82b724ba4ad28acb44c9c65e661a8ef2_rle_crop_3736806510_0.png', 1348355392: '1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bd31af2947a316169becc6ade9f0c3bc_43746978.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a2626e086b2100ce78e7ddc3e0849529_23332472.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7da19a3ff2850b49218a10ced5a0984a_72298367.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/dbc0617e06212290d47dc9d3197d00d3_82012141.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e2cf56a55c68dcf7f74ced6c31b91155_28780364.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/61ff156dca1653222d45d689fdf9b804_88685244.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3f1fa316545c6a793ce7448d45b99ba7_54204017.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b8bd963d95eac7f4db3daabed453b549_57628533.png change filename to text .imagette218608521743190500/ imagette218608521743190500/1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800874_0.png.png imagette218608521743190500/1743190272_1693568_1348355144_82b724ba4ad28acb44c9c65e661a8ef2_rle_crop_3736806510_0.png.png imagette218608521743190500/1743189865_1926925_1348354698_3cb6ce6476050ce9db4e69dd503484c9_rle_crop_3736801421_0.png.png imagette218608521743190500/1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803681_0.png.png imagette218608521743190500/1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803682_0.png.png imagette218608521743190500/1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803780_0.png.png imagette218608521743190500/1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804763_0.png.png imagette218608521743190500/1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804117_0.png.png imagette218608521743190500/1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803782_0.png.png imagette218608561743190501/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/88e86c8b1857963af13a08a85277b4dc_1468446.png imagette218608521743190500 21860856 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=21860856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218608561743190501 21860857 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=21860857 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348355107: '1743190070_1690753_1348354849_d8c08d23fb24e30ad5db66fe6c6eb253_rle_crop_3736803706_0.png', 1348355202: '1743190170_1691867_1348355091_151e8aeb29d78ed993352eb0383d73de_rle_crop_3736804071_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/547c1d66481a5fc8bc19e83e4694964d_50373940.png change filename to text .imagette218608571743190501/ imagette218608571743190501/1743190170_1691867_1348355091_151e8aeb29d78ed993352eb0383d73de_rle_crop_3736804071_0.png.png imagette218608571743190501/1743190070_1690753_1348354849_d8c08d23fb24e30ad5db66fe6c6eb253_rle_crop_3736803706_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/30f87bbd40126766ae4c193d446089ed_97689927.png imagette218608571743190501 21860859 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=21860859 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348354465: '1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800876_0.png', 1348354467: '1743189566_1921805_1348354013_a468df50c603c261dae1f790f813cbf7_rle_crop_3736800887_0.png', 1348354469: '1743189566_1921805_1348354013_a468df50c603c261dae1f790f813cbf7_rle_crop_3736800888_0.png', 1348354931: '1743189865_1926925_1348354685_adf6f0f30f073d535f38b837199006f0_rle_crop_3736801446_0.png', 1348354962: '1743189913_1689114_1348354228_a153858469cca48f95d847923717d731_rle_crop_3736803048_0.png', 1348355080: '1743190051_1690498_1348354942_c2a2b77216486f6863aa68455634531a_rle_crop_3736803539_0.png', 1348355100: '1743190070_1690753_1348354896_50dcd5dc6ad696c5681cdff5638e62b7_rle_crop_3736803693_0.png', 1348355101: '1743190070_1690753_1348354896_50dcd5dc6ad696c5681cdff5638e62b7_rle_crop_3736803691_0.png', 1348355102: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803717_0.png', 1348355103: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803719_0.png', 1348355104: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803715_0.png', 1348355114: '1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803781_0.png', 1348355176: '1743190166_1930073_1348355088_e466fc2eb48e167ed16279dd8ad2c5a0_rle_crop_3736804022_0.png', 1348355188: '1743190192_1692053_1348354997_2a5ac7cc436b31895ad94895cbec1760_rle_crop_3736804128_0.png', 1348355200: '1743190170_1691867_1348355044_0aeb3e61acb37199abdda11013425e19_rle_crop_3736804079_0.png', 1348355201: '1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804137_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/04af4c0faece5641f02b0c1423babe38_11842175.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/68f8ee4f3ac0b641ca5675dadd095151_55716593.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6911909bbee0ffd762ae39165194b586_99773865.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0b6c4e7a3e1e1d13884a4b456f655fbd_37882322.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/daf95fd57c5131883b6ba791fc5dd9cb_82048272.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ed96643cc4b506da7af614921ec1f98c_77319910.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ea1e16783e54c891e1f0d3c94c203769_57287791.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/917c7b2675d7f993a69a3af6e4eaf0f6_24751740.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/33695fcb9c3ef85f5e904a6d97608719_59896058.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b12dc873c92d80537630e552fdf7c9c5_55926059.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b6869a99e8e2fcf516006843d72df46e_15805179.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fbba5587671c7c66adc1f2a499d4ec0e_8983617.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ddb965dcb35788ccf05047320ce7a493_21398202.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/faebac0f9ba8ed07518e7c65a7a1a8d0_34662186.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/158a94a68fb8f13c9918b5e1989d6b1c_39771632.png change filename to text .imagette218608591743190501/ imagette218608591743190501/1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803781_0.png.png imagette218608591743190501/1743189566_1921805_1348354013_a468df50c603c261dae1f790f813cbf7_rle_crop_3736800888_0.png.png imagette218608591743190501/1743190170_1691867_1348355044_0aeb3e61acb37199abdda11013425e19_rle_crop_3736804079_0.png.png imagette218608591743190501/1743190070_1690753_1348354896_50dcd5dc6ad696c5681cdff5638e62b7_rle_crop_3736803693_0.png.png imagette218608591743190501/1743190192_1692053_1348354997_2a5ac7cc436b31895ad94895cbec1760_rle_crop_3736804128_0.png.png imagette218608591743190501/1743189566_1921805_1348354013_a468df50c603c261dae1f790f813cbf7_rle_crop_3736800887_0.png.png imagette218608591743190501/1743190166_1930073_1348355088_e466fc2eb48e167ed16279dd8ad2c5a0_rle_crop_3736804022_0.png.png imagette218608591743190501/1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804137_0.png.png imagette218608591743190501/1743190070_1690753_1348354896_50dcd5dc6ad696c5681cdff5638e62b7_rle_crop_3736803691_0.png.png imagette218608591743190501/1743189865_1926925_1348354685_adf6f0f30f073d535f38b837199006f0_rle_crop_3736801446_0.png.png imagette218608591743190501/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803719_0.png.png imagette218608591743190501/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803717_0.png.png imagette218608591743190501/1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800876_0.png.png imagette218608591743190501/1743190051_1690498_1348354942_c2a2b77216486f6863aa68455634531a_rle_crop_3736803539_0.png.png imagette218608591743190501/1743189913_1689114_1348354228_a153858469cca48f95d847923717d731_rle_crop_3736803048_0.png.png imagette218608591743190501/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803715_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ddeea0a682875eb0ab38bc85c0209c9f_89706799.png imagette218608591743190501 21860860 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=21860860 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348354952: '1743189901_1688897_1348354180_b02964fec895524ad827750fa0998566_rle_crop_3736803039_0.png', 1348355106: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f30d9ac7fc47ce81139b192552283925_75065025.png change filename to text .imagette218608601743190502/ imagette218608601743190502/1743189901_1688897_1348354180_b02964fec895524ad827750fa0998566_rle_crop_3736803039_0.png.png imagette218608601743190502/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803724_0.png.png imagette218608611743190502/ imagette218608621743190502/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2e389031592bf09e1209e52dfd4ff31c_47406739.png imagette218608601743190502 21860861 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=21860861 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218608611743190502 21860862 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=21860862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218608621743190502 21860853 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=21860853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348355192: '1743190170_1691867_1348355039_c4cd35e0ba310408e1d90eb994e57642_rle_crop_3736804107_0.png', 1348355391: '1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804773_0.png', 1348355389: '1743190313_1694241_1348354985_ed918b9e254a4772c4bc927a6f7a955c_rle_crop_3736804758_0.png', 1348355388: '1743190313_1694241_1348354990_182b9bec277093750f359c3d4f025c88_rle_crop_3736804733_0.png', 1348355387: '1743190313_1694241_1348354992_0e5962677a3f63a9f72df4f8772b42fa_rle_crop_3736804724_0.png', 1348355323: '1743190272_1693568_1348355142_9c7b759265893585e297263928d8a76c_rle_crop_3736806528_0.png', 1348355322: '1743190272_1693568_1348355184_7daac3250d47a9dba7ce393c11cfc8f4_rle_crop_3736806176_0.png', 1348355196: '1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804134_0.png', 1348355195: '1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804138_0.png', 1348355194: '1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804119_0.png', 1348355193: '1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804116_0.png', 1348354422: '1743189566_1921805_1348354055_7d81dfb87bf5e115665903fc28e4dfbe_rle_crop_3736800859_0.png', 1348355191: '1743190170_1691867_1348355041_54ad635a03d522b5125a3c4be6e8f71e_rle_crop_3736804092_0.png', 1348355190: '1743190170_1691867_1348355044_0aeb3e61acb37199abdda11013425e19_rle_crop_3736804083_0.png', 1348355172: '1743190166_1930073_1348355075_ce9e5147bd8fead6be35f8e4d9d7dc65_rle_crop_3736804051_0.png', 1348355096: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803721_0.png', 1348355077: '1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803683_0.png', 1348355076: '1743190051_1690498_1348354892_e3ce077faac49a23abdea08fe57dd749_rle_crop_3736803551_0.png', 1348354948: '1743189891_1688742_1348354634_a9cd99ac469c47245ef84edf0f9401cf_rle_crop_3736802993_0.png', 1348354935: '1743189871_1688556_1348354583_6fc14e21e15027694366e27ac8b4becd_rle_crop_3736802866_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ea393f4e8a75a92608f011d1d75ccdf4_62114008.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/231b0628f0c585766f7cb8cf9f5ccd39_48131743.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8c161c3ce2d5ffb8f114674596a32957_53712860.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0dd870637bb17941f15f821cf17bcd78_13236258.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/715866291c299ab35fff29f2d4f63473_80830941.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/248c45df76ef12e1d37fa92f7c434a59_29591800.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d658b3172ccbab98bfbe7de9abe61efe_2805146.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/909bde395ba567bc9488ecbad3f025f9_75909796.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/758cdfc2fa172771598b8db39bc63b35_46578416.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8ceee7c6b5d5372fa0b6fccadb3d266e_3299928.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b7a472ef187287aef929267aa7b10a48_93230856.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/794c6d8da0b53e04a6c059aa57b5b212_26237289.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/4a353703c5c231ae633415ef4c41d954_41346307.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0b2818e6f65399663f268a06fc723e32_25896502.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1107732d87918e4aa7540aba5dad1c43_88253117.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/628d28b80c8ead2798a3302c2004ce8a_99328229.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6bd9d7961951ba89d196d98d7b8230e2_32187580.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e06ae71f200cafc800706f7cd9dc37be_15952583.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5f2a3172eadad58eb08f116907d64ac8_77542665.png change filename to text .imagette218608531743190502/ imagette218608531743190502/1743190051_1690498_1348354892_e3ce077faac49a23abdea08fe57dd749_rle_crop_3736803551_0.png.png imagette218608531743190502/1743190170_1691867_1348355044_0aeb3e61acb37199abdda11013425e19_rle_crop_3736804083_0.png.png imagette218608531743190502/1743190170_1691867_1348355041_54ad635a03d522b5125a3c4be6e8f71e_rle_crop_3736804092_0.png.png imagette218608531743190502/1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804134_0.png.png imagette218608531743190502/1743189566_1921805_1348354055_7d81dfb87bf5e115665903fc28e4dfbe_rle_crop_3736800859_0.png.png imagette218608531743190502/1743189891_1688742_1348354634_a9cd99ac469c47245ef84edf0f9401cf_rle_crop_3736802993_0.png.png imagette218608531743190502/1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804119_0.png.png imagette218608531743190502/1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804773_0.png.png imagette218608531743190502/1743190313_1694241_1348354992_0e5962677a3f63a9f72df4f8772b42fa_rle_crop_3736804724_0.png.png imagette218608531743190502/1743190272_1693568_1348355142_9c7b759265893585e297263928d8a76c_rle_crop_3736806528_0.png.png imagette218608531743190502/1743190313_1694241_1348354985_ed918b9e254a4772c4bc927a6f7a955c_rle_crop_3736804758_0.png.png imagette218608531743190502/1743190170_1691867_1348355039_c4cd35e0ba310408e1d90eb994e57642_rle_crop_3736804107_0.png.png imagette218608531743190502/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803721_0.png.png imagette218608531743190502/1743190170_1691867_1348355034_ff46717cb74d1d67ad9016545ffba2cc_rle_crop_3736804138_0.png.png imagette218608531743190502/1743190166_1930073_1348355075_ce9e5147bd8fead6be35f8e4d9d7dc65_rle_crop_3736804051_0.png.png imagette218608531743190502/1743190170_1691867_1348355035_a27a6a1df076dc8effb82cdc27694851_rle_crop_3736804116_0.png.png imagette218608531743190502/1743190313_1694241_1348354990_182b9bec277093750f359c3d4f025c88_rle_crop_3736804733_0.png.png imagette218608531743190502/1743190272_1693568_1348355184_7daac3250d47a9dba7ce393c11cfc8f4_rle_crop_3736806176_0.png.png imagette218608531743190502/1743189871_1688556_1348354583_6fc14e21e15027694366e27ac8b4becd_rle_crop_3736802866_0.png.png imagette218608531743190502/1743190051_1690498_1348354884_ca40ebdabf8899ffd8ccbf57e86f59fc_rle_crop_3736803683_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/65e445e13670f4cedc391c6c3ccd367b_94172056.png imagette218608531743190502 21860854 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=21860854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348354454: '1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800875_0.png', 1348354456: '1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800881_0.png', 1348354927: '1743189865_1926925_1348354729_52a8b8a0ee81f9d926c4ffcf02cedf7e_rle_crop_3736801411_0.png', 1348354928: '1743189865_1926925_1348354689_618b2044a13d75f31deda2a6aa8486bc_rle_crop_3736801430_0.png', 1348355097: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803716_0.png', 1348355098: '1743190070_1690753_1348354846_ec521339adb10af0ffd11c2a99b2fdca_rle_crop_3736803763_0.png', 1348355173: '1743190166_1930073_1348355083_438e7114ad61a80599bbcc539299cc6f_rle_crop_3736804041_0.png', 1348355174: '1743190166_1930073_1348355083_438e7114ad61a80599bbcc539299cc6f_rle_crop_3736804034_0.png', 1348355367: '1743190272_1693568_1348355184_7daac3250d47a9dba7ce393c11cfc8f4_rle_crop_3736806177_0.png', 1348355368: '1743190272_1693568_1348355144_82b724ba4ad28acb44c9c65e661a8ef2_rle_crop_3736806511_0.png', 1348355394: '1743190313_1694241_1348355048_4e143245e26e2fcd493225a4b3bceb66_rle_crop_3736804711_0.png', 1348355395: '1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804772_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d86635f3af8c72dc25d4f8ac9eba0926_62620496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f73b233d879f9624307d854cd8f55f19_23477248.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5c2b59787094b0c974c4095c6ffec0f5_40818092.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d0c7b27ce7d45bb6e76c93f8f578034a_96976092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/888cc4697c309eaec91183deb6d6d387_82898550.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/431549456127c5c67bd58fc6c466c563_40465623.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2ed148d10a98e42837c4ad99bf047e1e_60682339.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8f1b8bef4716a9de767bf9bc5670c3e1_81434982.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b6d75af13ccb6639e0dbeb1e0100054f_93429090.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b708724bcaed17e6dbd6ffd627b8f2f4_58640594.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d2dc5020edad757de0d61dc4d6b4c292_13714382.png change filename to text .imagette218608541743190503/ imagette218608541743190503/1743189865_1926925_1348354689_618b2044a13d75f31deda2a6aa8486bc_rle_crop_3736801430_0.png.png imagette218608541743190503/1743190070_1690753_1348354846_ec521339adb10af0ffd11c2a99b2fdca_rle_crop_3736803763_0.png.png imagette218608541743190503/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803716_0.png.png imagette218608541743190503/1743190166_1930073_1348355083_438e7114ad61a80599bbcc539299cc6f_rle_crop_3736804034_0.png.png imagette218608541743190503/1743190166_1930073_1348355083_438e7114ad61a80599bbcc539299cc6f_rle_crop_3736804041_0.png.png imagette218608541743190503/1743190313_1694241_1348355048_4e143245e26e2fcd493225a4b3bceb66_rle_crop_3736804711_0.png.png imagette218608541743190503/1743190272_1693568_1348355144_82b724ba4ad28acb44c9c65e661a8ef2_rle_crop_3736806511_0.png.png imagette218608541743190503/1743190272_1693568_1348355184_7daac3250d47a9dba7ce393c11cfc8f4_rle_crop_3736806177_0.png.png imagette218608541743190503/1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804772_0.png.png imagette218608541743190503/1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800875_0.png.png imagette218608541743190503/1743189566_1921805_1348354021_5a31430d24524fa17c3f2caf15564c37_rle_crop_3736800881_0.png.png imagette218608541743190503/1743189865_1926925_1348354729_52a8b8a0ee81f9d926c4ffcf02cedf7e_rle_crop_3736801411_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9e9f4b38607bb80eb141960154b6c237_89789085.png imagette218608541743190503 21860855 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=21860855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348354356: '1743189552_1686307_1348354067_8d1eaf53635007e3c4039d406b51a41a_rle_crop_3736800806_0.png', 1348354357: '1743189552_1686307_1348354067_8d1eaf53635007e3c4039d406b51a41a_rle_crop_3736800811_0.png', 1348354358: '1743189552_1686307_1348353822_fecf870205ab532f63f0d7d3251c211f_rle_crop_3736800852_0.png', 1348354951: '1743189891_1688742_1348354634_a9cd99ac469c47245ef84edf0f9401cf_rle_crop_3736802992_0.png', 1348355105: '1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803726_0.png', 1348355115: '1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803783_0.png', 1348355369: '1743190272_1693568_1348355146_34da4d7fcef199a93d7dee70926d522d_rle_crop_3736806494_0.png', 1348355396: '1743190313_1694241_1348354985_ed918b9e254a4772c4bc927a6f7a955c_rle_crop_3736804752_0.png', 1348355397: '1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804768_0.png', 1348355398: '1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7bec1f515583b21b0ef85ad267f07a5c_2787151.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b7830f3108f20fdd4988b7fd800c5ce9_42035186.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d5756e07bc3a081d64e227889180d67c_63103833.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/78790ac57cd25729127a7a8da5ff49cc_56637565.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/807eca27267ab004d15480d54ec2fd96_41679464.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ea4962a06db06173a35165768bd912f8_34853482.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7a89a351dfef0f07c6b7c9834eea1d3e_93701055.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/eae0a6f9d8c18e4d8d8fc81153b7dc0c_69772727.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/15aaa9b23ef42ae5c2928bed757e50d9_49197039.png change filename to text .imagette218608551743190504/ imagette218608551743190504/1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804767_0.png.png imagette218608551743190504/1743190092_1691032_1348354852_3a3152946653a3f424d85184262fc1ad_rle_crop_3736803783_0.png.png imagette218608551743190504/1743189552_1686307_1348353822_fecf870205ab532f63f0d7d3251c211f_rle_crop_3736800852_0.png.png imagette218608551743190504/1743190313_1694241_1348354985_ed918b9e254a4772c4bc927a6f7a955c_rle_crop_3736804752_0.png.png imagette218608551743190504/1743189552_1686307_1348354067_8d1eaf53635007e3c4039d406b51a41a_rle_crop_3736800806_0.png.png imagette218608551743190504/1743189552_1686307_1348354067_8d1eaf53635007e3c4039d406b51a41a_rle_crop_3736800811_0.png.png imagette218608551743190504/1743190313_1694241_1348354982_62c59be59634e56b52cba9fa9fc8fcf9_rle_crop_3736804768_0.png.png imagette218608551743190504/1743189891_1688742_1348354634_a9cd99ac469c47245ef84edf0f9401cf_rle_crop_3736802992_0.png.png imagette218608551743190504/1743190070_1690753_1348354848_9cbf20d08a220d34527323eab2830a64_rle_crop_3736803726_0.png.png imagette218608551743190504/1743190272_1693568_1348355146_34da4d7fcef199a93d7dee70926d522d_rle_crop_3736806494_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5f8f196af7f834a16e1db10cbbec92fc_57558996.png imagette218608551743190504 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21860849 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21860863,21860864,21860865,21860866,21860867,21860868,21860869,21860870,21860871,21860872,21860873,21860874?tags=papier,autre_refus,Teint_Dans_La_Masse,Carton_gris,Carton_brun,metal,kraft,environnement,cartonnette,plastique,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1348355676] : ('0.04389208409636109',) no score found for photo 1348355676 We are sending mail with results at report@fotonower.com refus_total : 0.04389208409636109 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=21860849 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_P21860849_28-03-2025_20_35_00.pdf results_Auto_P21860849_28-03-2025_20_35_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860849_28-03-2025_20_35_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21860849','results_Auto_P21860849_28-03-2025_20_35_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860849_28-03-2025_20_35_00.pdf','pdf','','0.21','0.04389208409636109') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21860849]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348355676] map_info['map_portfolio_photo'] : {21860849: [1348355676, 1348355184, 1348355152, 1348355151, 1348355148, 1348355146, 1348355144, 1348355142, 1348355091, 1348355088, 1348355083, 1348355075, 1348355048, 1348355044, 1348355041, 1348355039, 1348355035, 1348355034, 1348354997, 1348354992, 1348354990, 1348354985, 1348354982, 1348354942, 1348354940, 1348354938, 1348354896, 1348354892, 1348354889, 1348354884, 1348354852, 1348354849, 1348354848, 1348354846, 1348354763, 1348354729, 1348354698, 1348354689, 1348354685, 1348354637, 1348354634, 1348354632, 1348354587, 1348354583, 1348354552, 1348354525, 1348354228, 1348354203, 1348354180, 1348354067, 1348354055, 1348354021, 1348354013, 1348353822]} final : False mtd_id 4302 list_pids : [1348355676] 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, '2703207') ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21860849', '1348355676', None, None, None, None, None, '2703207')] time used for this insertion : 0.018618345260620117 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.07440447807312 time spend to save output : 0.01893138885498047 total time spend for step 4 : 5.093335866928101 step5:split_time_score Fri Mar 28 20:35:05 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 : ['21860849'] 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 : [('21860849',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21860849) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348355676: {'path': 'temp/1743190500_3631935_1348355676_85bdedb5d2d488467b3ad09b437f0dbc.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 = 21860849; (('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 = 21860849 group by h (('20', 54),) 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=21860849 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 (21860849) 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 (21860849) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21860849 Nombre de photos uploadées : 54 / 23040 (0%) 28032025 21860849 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 28032025 21860849 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1348353822, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fecf870205ab532f63f0d7d3251c211f.jpg', 'username': None, 'uploaded_at': 1743189427, 'text': 'image_28032025_20_16_37_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348354067, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/8d1eaf53635007e3c4039d406b51a41a.jpg', 'username': None, 'uploaded_at': 1743189487, 'text': 'image_28032025_20_16_56_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348354055, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7d81dfb87bf5e115665903fc28e4dfbe.jpg', 'username': None, 'uploaded_at': 1743189487, 'text': 'image_28032025_20_17_06_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348354021, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5a31430d24524fa17c3f2caf15564c37.jpg', 'username': None, 'uploaded_at': 1743189487, 'text': 'image_28032025_20_17_17_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022644996643066406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21860849, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02874612808227539 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706548, 'mtr_portfolio_id': 21859760, 'dashboard_result_id': 9732202, '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_P21859760_28-03-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21859821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21859822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21859823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21859824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21859825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21859826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21859827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21859828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21859829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21859830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21859831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21859832, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706548, 'mtr_portfolio_id': 21860213, 'dashboard_result_id': 9732204, '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_P21860213_28-03-2025_20_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21860275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860277, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1706548, 'mtr_portfolio_id': 21860849, 'dashboard_result_id': 9732205, '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_P21860849_28-03-2025_20_31_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21860851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860862, '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 = 21859760 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': 2703108, 'mtr_portfolio_id': 21859760, 'created_at': datetime.datetime(2025, 3, 28, 20, 4, 59), 'result': '0.037431021832630154', 'result_long': None, 'result_double': None}] Qualite : 0.037431021832630154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21859760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21859760_28-03-2025_20_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21859760 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_P21859760_28-03-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21859821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21859822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21859823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21859824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21859825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21859826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21859827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21859828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21859829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21859830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21859831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21859832, 'pht': 3726}}" where mtr_portfolio_id = 21859760 and dashboard_run_id = 1706548 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`=21859760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9732202, 0.037431021832630154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21859760_28-03-2025_20_04_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21859821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21859822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21859823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21859824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21859825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21859826, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21859827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21859828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21859829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21859830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21859831, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21859832, '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 = 21860213 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': 2703158, 'mtr_portfolio_id': 21860213, 'created_at': datetime.datetime(2025, 3, 28, 20, 18, 57), 'result': '0.028516359320304316', 'result_long': None, 'result_double': None}] Qualite : 0.028516359320304316 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21860213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860213_28-03-2025_20_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21860213 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_P21860213_28-03-2025_20_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21860275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860277, 'pht': 3726}}" where mtr_portfolio_id = 21860213 and dashboard_run_id = 1706548 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`=21860213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9732204, 0.028516359320304316, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860213_28-03-2025_20_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860269, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21860275, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860277, '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 = 21860849 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': 2703207, 'mtr_portfolio_id': 21860849, 'created_at': datetime.datetime(2025, 3, 28, 20, 34, 59), 'result': '0.04389208409636109', 'result_long': None, 'result_double': None}] Qualite : 0.04389208409636109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21860849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860849_28-03-2025_20_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21860849 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_P21860849_28-03-2025_20_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21860851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860862, 'pht': 3726}}" where mtr_portfolio_id = 21860849 and dashboard_run_id = 1706548 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`=21860849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9732205, 0.04389208409636109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21860849_28-03-2025_20_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21860851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21860852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21860853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21860854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21860855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21860856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21860857, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21860858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21860859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21860860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21860861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21860862, '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 (21859760,21860213,21860849) result : ((1348348247,), (1348348514,), (1348348581,), (1348348637,), (1348348717,), (1348348797,), (1348348899,), (1348348969,), (1348348976,), (1348349070,), (1348349087,), (1348349092,), (1348349113,), (1348349136,), (1348349165,), (1348349222,), (1348349225,), (1348349228,), (1348349235,), (1348349262,), (1348349267,), (1348349271,), (1348349276,), (1348349281,), (1348349284,), (1348349318,), (1348349321,), (1348349326,), (1348349363,), (1348349366,), (1348349372,), (1348349464,), (1348349468,), (1348349472,), (1348349516,), (1348349520,), (1348349523,), (1348349569,), (1348349574,), (1348349579,), (1348349586,), (1348349593,), (1348349619,), (1348349624,), (1348349628,), (1348349632,), (1348349657,), (1348349661,), (1348349665,), (1348349668,), (1348349673,), (1348349704,), (1348349705,), (1348349707,), (1348349709,), (1348350192,), (1348350219,), (1348350247,), (1348350279,), (1348350302,), (1348350711,), (1348350568,), (1348350607,), (1348350635,), (1348350679,), (1348350826,), (1348350864,), (1348350909,), (1348351079,), (1348351524,), (1348351544,), (1348351572,), (1348351600,), (1348351771,), (1348351780,), (1348351789,), (1348351796,), (1348351804,), (1348351811,), (1348352008,), (1348352025,), (1348352037,), (1348352065,), (1348352197,), (1348352202,), (1348352208,), (1348352223,), (1348352276,), (1348352337,), (1348352342,), (1348352348,), (1348352354,), (1348352410,), (1348352414,), (1348352420,), (1348352426,), (1348352501,), (1348352513,), (1348352519,), (1348352522,), (1348352583,), (1348353825,), (1348353822,), (1348354013,), (1348354021,), (1348354055,), (1348354067,), (1348354180,), (1348354203,), (1348354228,), (1348354525,), (1348354552,), (1348354583,), (1348354587,), (1348354632,), (1348354634,), (1348354637,), (1348354685,), (1348354689,), (1348354698,), (1348354729,), (1348354763,), (1348354846,), (1348354848,), (1348354849,), (1348354852,), (1348354884,), (1348354889,), (1348354892,), (1348354896,), (1348354938,), (1348354940,), (1348354942,), (1348354982,), (1348354985,), (1348354990,), (1348354992,), (1348354997,), (1348355034,), (1348355035,), (1348355039,), (1348355041,), (1348355044,), (1348355048,), (1348355075,), (1348355083,), (1348355088,), (1348355091,), (1348355142,), (1348355144,), (1348355146,), (1348355148,), (1348355151,), (1348355152,), (1348355184,), (1348355676,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21860849]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348355676] map_info['map_portfolio_photo'] : {21860849: [1348355676, 1348355184, 1348355152, 1348355151, 1348355148, 1348355146, 1348355144, 1348355142, 1348355091, 1348355088, 1348355083, 1348355075, 1348355048, 1348355044, 1348355041, 1348355039, 1348355035, 1348355034, 1348354997, 1348354992, 1348354990, 1348354985, 1348354982, 1348354942, 1348354940, 1348354938, 1348354896, 1348354892, 1348354889, 1348354884, 1348354852, 1348354849, 1348354848, 1348354846, 1348354763, 1348354729, 1348354698, 1348354689, 1348354685, 1348354637, 1348354634, 1348354632, 1348354587, 1348354583, 1348354552, 1348354525, 1348354228, 1348354203, 1348354180, 1348354067, 1348354055, 1348354021, 1348354013, 1348353822]} final : True mtd_id 4302 list_pids : [1348355676] Looping around the photos to save general results len do output : 1 /21860849Didn'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, '2703207') ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21860849', 'None', None, None, None, None, '2703207'), ('4302', '21860849', '1348355676', None, None, None, None, None, '2703207')] time used for this insertion : 0.012725114822387695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3042151927947998 time spend to save output : 0.013007164001464844 total time spend for step 5 : 0.31722235679626465 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 (2703207) 2.05user 2.41system 0:11.00elapsed 40%CPU (0avgtext+0avgdata 155772maxresident)k 45704inputs+9048outputs (289major+65082minor)pagefaults 0swaps