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 : 2989426 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 (2635210) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2635210) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039790 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2635210'] with mtr_portfolio_ids : ['21039790'] and first list_photo_ids : [] new path : /proc/2989426/ Name: python3 Umask: 0002 State: R (running) Tgid: 2989426 Ngid: 0 Pid: 2989426 PPid: 2989425 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2989426 NSpid: 2989426 NSpgid: 2984426 NSsid: 2984426 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98532 kB VmRSS: 98532 kB RssAnon: 59760 kB RssFile: 38772 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 49 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2989426', 'Ngid': '0', 'Pid': '2989426', 'PPid': '2989425', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2989426', 'NSpid': '2989426', 'NSpgid': '2984426', 'NSsid': '2984426', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98532 kB', 'VmRSS': '98532 kB', 'RssAnon': '59760 kB', 'RssFile': '38772 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '49', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '2989426', '1106844', '0', '1106844', '865592', '98532', b'', 'marlene', '2635210') 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 (21039790) 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 (2635210 ) ) 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 (21039790) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340921899, 'portfolio_id': 21039790}, {'photo_id': 1340921888, 'portfolio_id': 21039790}, {'photo_id': 1340921877, 'portfolio_id': 21039790}, {'photo_id': 1340921867, 'portfolio_id': 21039790}, {'photo_id': 1340921846, 'portfolio_id': 21039790}, {'photo_id': 1340921844, 'portfolio_id': 21039790}, {'photo_id': 1340921841, 'portfolio_id': 21039790}, {'photo_id': 1340921838, 'portfolio_id': 21039790}, {'photo_id': 1340921834, 'portfolio_id': 21039790}, {'photo_id': 1340921826, 'portfolio_id': 21039790}, {'photo_id': 1340921754, 'portfolio_id': 21039790}, {'photo_id': 1340921751, 'portfolio_id': 21039790}, {'photo_id': 1340921737, 'portfolio_id': 21039790}, {'photo_id': 1340921726, 'portfolio_id': 21039790}, {'photo_id': 1340921714, 'portfolio_id': 21039790}, {'photo_id': 1340921674, 'portfolio_id': 21039790}, {'photo_id': 1340921659, 'portfolio_id': 21039790}, {'photo_id': 1340921649, 'portfolio_id': 21039790}, {'photo_id': 1340921646, 'portfolio_id': 21039790}, {'photo_id': 1340921616, 'portfolio_id': 21039790}, {'photo_id': 1340921611, 'portfolio_id': 21039790}, {'photo_id': 1340921605, 'portfolio_id': 21039790}, {'photo_id': 1340921590, 'portfolio_id': 21039790}, {'photo_id': 1340921484, 'portfolio_id': 21039790}, {'photo_id': 1340921481, 'portfolio_id': 21039790}, {'photo_id': 1340921461, 'portfolio_id': 21039790}, {'photo_id': 1340921457, 'portfolio_id': 21039790}, {'photo_id': 1340921453, 'portfolio_id': 21039790}, {'photo_id': 1340921415, 'portfolio_id': 21039790}, {'photo_id': 1340921382, 'portfolio_id': 21039790}, {'photo_id': 1340921379, 'portfolio_id': 21039790}, {'photo_id': 1340921377, 'portfolio_id': 21039790}, {'photo_id': 1340921372, 'portfolio_id': 21039790}, {'photo_id': 1340921352, 'portfolio_id': 21039790}, {'photo_id': 1340921350, 'portfolio_id': 21039790}, {'photo_id': 1340921346, 'portfolio_id': 21039790}, {'photo_id': 1340921343, 'portfolio_id': 21039790}, {'photo_id': 1340921332, 'portfolio_id': 21039790}, {'photo_id': 1340921315, 'portfolio_id': 21039790}, {'photo_id': 1340921288, 'portfolio_id': 21039790}, {'photo_id': 1340921286, 'portfolio_id': 21039790}, {'photo_id': 1340921282, 'portfolio_id': 21039790}, {'photo_id': 1340921268, 'portfolio_id': 21039790}, {'photo_id': 1340921266, 'portfolio_id': 21039790}, {'photo_id': 1340921263, 'portfolio_id': 21039790}, {'photo_id': 1340921182, 'portfolio_id': 21039790}, {'photo_id': 1340921177, 'portfolio_id': 21039790}, {'photo_id': 1340921170, 'portfolio_id': 21039790}, {'photo_id': 1340921166, 'portfolio_id': 21039790}, {'photo_id': 1340921018, 'portfolio_id': 21039790}, {'photo_id': 1340921015, 'portfolio_id': 21039790}, {'photo_id': 1340921012, 'portfolio_id': 21039790}, {'photo_id': 1340920989, 'portfolio_id': 21039790}] map_portfolio_id_photo_id: {21039790: [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834, 1340921826, 1340921754, 1340921751, 1340921737, 1340921726, 1340921714, 1340921674, 1340921659, 1340921649, 1340921646, 1340921616, 1340921611, 1340921605, 1340921590, 1340921484, 1340921481, 1340921461, 1340921457, 1340921453, 1340921415, 1340921382, 1340921379, 1340921377, 1340921372, 1340921352, 1340921350, 1340921346, 1340921343, 1340921332, 1340921315, 1340921288, 1340921286, 1340921282, 1340921268, 1340921266, 1340921263, 1340921182, 1340921177, 1340921170, 1340921166, 1340921018, 1340921015, 1340921012, 1340920989]} ##### 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.015691518783569336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 5 03:12:57 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 (21039790) 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 : 21039790 get user id for portfolio 21039790 get sub ptf for main ptf 21039790, type 3726 and hashtags ['Carton_gris', 'papier', 'mal_croppe', 'cartonnette', 'autre_refus', 'plastique', 'flou', 'environnement', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'Carton_brun'] 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`=21039790 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','cartonnette','autre_refus','plastique','flou','environnement','kraft','metal','Teint_Dans_La_Masse','Carton_brun')) 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`=21039790 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','cartonnette','autre_refus','plastique','flou','environnement','kraft','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21039790, 'sub_port_id': 21039845, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653985, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'papier': {'main_port_id': 21039790, 'sub_port_id': 21039846, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653986, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'environnement': {'main_port_id': 21039790, 'sub_port_id': 21039847, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653987, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'cartonnette': {'main_port_id': 21039790, 'sub_port_id': 21039848, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653988, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'mal_croppe': {'main_port_id': 21039790, 'sub_port_id': 21039849, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653989, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'flou': {'main_port_id': 21039790, 'sub_port_id': 21039850, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653990, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'Carton_brun': {'main_port_id': 21039790, 'sub_port_id': 21039851, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653991, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'metal': {'main_port_id': 21039790, 'sub_port_id': 21039852, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653992, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'Carton_gris': {'main_port_id': 21039790, 'sub_port_id': 21039853, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653993, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'kraft': {'main_port_id': 21039790, 'sub_port_id': 21039854, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653994, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'autre_refus': {'main_port_id': 21039790, 'sub_port_id': 21039855, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653995, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}, 'plastique': {'main_port_id': 21039790, 'sub_port_id': 21039856, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653996, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21039845 , 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=21039790 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 (21039845) result : ((1340921562,), (1340921713,), (1340921728,), (1340921813,), (1340921854,), (1340921868,), (1340921869,), (1340921870,), (1340921871,), (1340921872,), (1340921902,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039846 , 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=21039790 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 (21039846) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039847 , 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=21039790 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 (21039847) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039848 , 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=21039790 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 (21039848) result : ((1340921729,), (1340921730,), (1340921738,), (1340921860,), (1340921886,), (1340921913,), (1340921914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039849 , 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=21039790 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 (21039849) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039850 , 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=21039790 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 (21039850) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039851 , 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=21039790 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 (21039851) result : ((1340921732,), (1340921733,), (1340921890,), (1340921891,), (1340921892,), (1340921893,), (1340921894,), (1340921895,), (1340921896,), (1340921897,), (1340921915,), (1340921916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039852 , 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=21039790 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 (21039852) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039853 , 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=21039790 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 (21039853) result : ((1340921734,), (1340921819,), (1340921820,), (1340921821,), (1340921822,), (1340921858,), (1340921859,), (1340921884,), (1340921885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039854 , 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=21039790 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 (21039854) result : ((1340921740,), (1340921824,), (1340921919,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039855 , 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=21039790 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 (21039855) result : ((1340921572,), (1340921573,), (1340921575,), (1340921576,), (1340921717,), (1340921718,), (1340921719,), (1340921720,), (1340921721,), (1340921722,), (1340921723,), (1340921724,), (1340921725,), (1340921731,), (1340921815,), (1340921816,), (1340921817,), (1340921818,), (1340921855,), (1340921856,), (1340921875,), (1340921876,), (1340921878,), (1340921879,), (1340921880,), (1340921881,), (1340921904,), (1340921905,), (1340921906,), (1340921907,), (1340921908,), (1340921909,), (1340921910,), (1340921911,), (1340921912,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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 21039856 , 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=21039790 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 (21039856) result : ((1340921577,), (1340921735,), (1340921736,), (1340921917,), (1340921918,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21039790) result : ((1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) 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`=21039790 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','cartonnette','autre_refus','plastique','flou','environnement','kraft','metal','Teint_Dans_La_Masse','Carton_brun')) 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`=21039790 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','mal_croppe','cartonnette','autre_refus','plastique','flou','environnement','kraft','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21039790, 'sub_port_id': 21039857, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653997, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'papier': {'main_port_id': 21039790, 'sub_port_id': 21039858, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653998, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'environnement': {'main_port_id': 21039790, 'sub_port_id': 21039859, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13653999, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'cartonnette': {'main_port_id': 21039790, 'sub_port_id': 21039860, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654000, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'mal_croppe': {'main_port_id': 21039790, 'sub_port_id': 21039861, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654001, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'flou': {'main_port_id': 21039790, 'sub_port_id': 21039862, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654002, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'Carton_brun': {'main_port_id': 21039790, 'sub_port_id': 21039863, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654003, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'metal': {'main_port_id': 21039790, 'sub_port_id': 21039864, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654004, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'Carton_gris': {'main_port_id': 21039790, 'sub_port_id': 21039865, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654005, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'kraft': {'main_port_id': 21039790, 'sub_port_id': 21039866, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654006, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'autre_refus': {'main_port_id': 21039790, 'sub_port_id': 21039867, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654007, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 4, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}, 'plastique': {'main_port_id': 21039790, 'sub_port_id': 21039868, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13654008, 'last_updated_at': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 5, 3, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 5, 3, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039845 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039858,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039846 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039859,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039847 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039852 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039853 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039854 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039855 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21039868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21039856 lien utilise dans velours : https://www.fotonower.com/velours/21039857,21039858,21039859,21039860,21039861,21039862,21039863,21039864,21039865,21039866,21039867,21039868?tags=Teint_Dans_La_Masse,papier,environnement,cartonnette,mal_croppe,flou,Carton_brun,metal,Carton_gris,kraft,autre_refus,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21039790]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] map_info['map_portfolio_photo'] : {21039790: [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834, 1340921826, 1340921754, 1340921751, 1340921737, 1340921726, 1340921714, 1340921674, 1340921659, 1340921649, 1340921646, 1340921616, 1340921611, 1340921605, 1340921590, 1340921484, 1340921481, 1340921461, 1340921457, 1340921453, 1340921415, 1340921382, 1340921379, 1340921377, 1340921372, 1340921352, 1340921350, 1340921346, 1340921343, 1340921332, 1340921315, 1340921288, 1340921286, 1340921282, 1340921268, 1340921266, 1340921263, 1340921182, 1340921177, 1340921170, 1340921166, 1340921018, 1340921015, 1340921012, 1340920989]} final : False mtd_id 4302 list_pids : [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] Looping around the photos to save general results len do output : 1 /21039790. 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, '2635210') ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21039790', "{'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856}", None, None, None, None, '2635210'), ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210')] time used for this insertion : 0.19628643989562988 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1628329753875732 time spend to save output : 0.1965770721435547 total time spend for step 1 : 2.359410047531128 step2:final Wed Mar 5 03:12: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 (21039790) 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 21039790 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340921018,1340921015,1340920989,1340921012,1340921182,1340921177,1340921170,1340921166,1340921288,1340921286,1340921282,1340921268,1340921266,1340921263,1340921352,1340921350,1340921346,1340921343,1340921332,1340921315,1340921382,1340921379,1340921377,1340921372,1340921484,1340921481,1340921461,1340921457,1340921453,1340921415,1340921616,1340921611,1340921605,1340921590,1340921674,1340921659,1340921649,1340921646,1340921754,1340921751,1340921737,1340921726,1340921714,1340921846,1340921844,1340921841,1340921838,1340921834,1340921899,1340921826,1340921888,1340921877,1340921867); 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([21039790]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} new output for save of step final : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] map_info['map_portfolio_photo'] : {21039790: [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834, 1340921826, 1340921754, 1340921751, 1340921737, 1340921726, 1340921714, 1340921674, 1340921659, 1340921649, 1340921646, 1340921616, 1340921611, 1340921605, 1340921590, 1340921484, 1340921481, 1340921461, 1340921457, 1340921453, 1340921415, 1340921382, 1340921379, 1340921377, 1340921372, 1340921352, 1340921350, 1340921346, 1340921343, 1340921332, 1340921315, 1340921288, 1340921286, 1340921282, 1340921268, 1340921266, 1340921263, 1340921182, 1340921177, 1340921170, 1340921166, 1340921018, 1340921015, 1340921012, 1340920989]} final : False mtd_id 4302 list_pids : [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] Looping around the photos to save general results len do output : 9 /1340921899.Didn't retrieve data . /1340921888.Didn't retrieve data . /1340921877.Didn't retrieve data . /1340921867.Didn't retrieve data . /1340921846.Didn't retrieve data . /1340921844.Didn't retrieve data . /1340921841.Didn't retrieve data . /1340921838.Didn't retrieve data . /1340921834.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, '2635210') ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21039790', '1340921899', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921888', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921877', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921867', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921846', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921844', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921841', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921838', '0.08275122019020134', None, None, None, None, '2635210'), ('4302', '21039790', '1340921834', '0.08275122019020134', None, None, None, None, '2635210')] time used for this insertion : 0.7950987815856934 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1908431053161621 time spend to save output : 0.7956750392913818 total time spend for step 2 : 0.986518144607544 step3:velours_tree Wed Mar 5 03:13:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21039790: [{'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856}]} input_args_next_step : {21039790: ()} output_args : {21039790: [{'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856}]} args : 21039790 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21039790) 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([21039790]) 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.3361849784851074 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3362407684326172 step4:send_mail_cod Wed Mar 5 03:13:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} input_args_next_step : {1340921899: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921899 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921888 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921877 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921867 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921846 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921844 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921841 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921838 depend.output_id : 0 input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ()} output_args : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',)} args : 1340921834 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21039790: [{'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856}]} input_args_next_step : {1340921899: ('0.08275122019020134',), 1340921888: ('0.08275122019020134',), 1340921877: ('0.08275122019020134',), 1340921867: ('0.08275122019020134',), 1340921846: ('0.08275122019020134',), 1340921844: ('0.08275122019020134',), 1340921841: ('0.08275122019020134',), 1340921838: ('0.08275122019020134',), 1340921834: ('0.08275122019020134',), 21039790: ()} output_args : {21039790: [{'Teint_Dans_La_Masse': 21039845, 'papier': 21039846, 'environnement': 21039847, 'cartonnette': 21039848, 'mal_croppe': 21039849, 'flou': 21039850, 'Carton_brun': 21039851, 'metal': 21039852, 'Carton_gris': 21039853, 'kraft': 21039854, 'autre_refus': 21039855, 'plastique': 21039856}]} args : 21039790 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 :10, first value : ('0.08275122019020134',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21039790) 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 (1340921899,1340921888,1340921877,1340921867,1340921846,1340921844,1340921841,1340921838,1340921834) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340921834 begin to download photo : 1340921841 begin to download photo : 1340921846 begin to download photo : 1340921877 begin to download photo : 1340921899 download finish for photo 1340921899 download finish for photo 1340921834 begin to download photo : 1340921838 download finish for photo 1340921877 begin to download photo : 1340921888 download finish for photo 1340921841 begin to download photo : 1340921844 download finish for photo 1340921846 begin to download photo : 1340921867 download finish for photo 1340921838 download finish for photo 1340921844 download finish for photo 1340921867 download finish for photo 1340921888 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21039790_05-03-2025_03_13_01.pdf 21039848 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=21039848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921729: '1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938256_0.png', 1340921730: '1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938248_0.png', 1340921738: '1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938309_0.png', 1340921860: '1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938309_0.png', 1340921886: '1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939487_0.png', 1340921913: '1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938256_0.png', 1340921914: '1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9f8935ee40e8cc211e846b3c6a2d095f_75900312.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0821f585df117c42428817f64c3a25c8_563739.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8b5a7ffa46ffa0634ebf3d07a473672e_61484763.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8b5a7ffa46ffa0634ebf3d07a473672e_8343615.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/789e62ff24737f373abeb73a74ebb265_65837742.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/9f8935ee40e8cc211e846b3c6a2d095f_73967337.png change filename to text .imagette210398481741140781/ imagette210398481741140781/1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938256_0.png.png imagette210398481741140781/1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938248_0.png.png imagette210398481741140781/1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938256_0.png.png imagette210398481741140781/1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938309_0.png.png imagette210398481741140781/1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939487_0.png.png imagette210398481741140781/1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938248_0.png.png imagette210398481741140781/1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938309_0.png.png imagette210398491741140781/ imagette210398501741140781/ imagette210398521741140781/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0821f585df117c42428817f64c3a25c8_95461775.png imagette210398481741140781 21039849 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=21039849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210398491741140781 21039850 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=21039850 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210398501741140781 21039852 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=21039852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210398521741140781 21039854 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=21039854 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921740: '1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938268_0.png', 1340921824: '1741140551_1205416_1340921611_84e31a894c2c052f37dd714b0c20caab_rle_crop_3693938801_0.png', 1340921919: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938268_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/78d363e1d216c2b9525d1cdfb5a41b7f_95441172.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6aa694b038c91eedba23643fa044f307_202785.png change filename to text .imagette210398541741140781/ imagette210398541741140781/1741140551_1205416_1340921611_84e31a894c2c052f37dd714b0c20caab_rle_crop_3693938801_0.png.png imagette210398541741140781/1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938268_0.png.png imagette210398541741140781/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938268_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/78d363e1d216c2b9525d1cdfb5a41b7f_73801562.png imagette210398541741140781 21039855 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=21039855 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921904: '1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938151_0.png', 1340921855: '1741140593_1206078_1340921484_b0df6fbf150e4b5f0341a0ee66adb657_rle_crop_3693939430_0.png', 1340921856: '1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938319_0.png', 1340921875: '1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939226_0.png', 1340921876: '1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939456_0.png', 1340921878: '1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939496_0.png', 1340921879: '1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939529_0.png', 1340921880: '1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939993_0.png', 1340921881: '1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940018_0.png', 1340921818: '1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938838_0.png', 1340921905: '1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938260_0.png', 1340921906: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938269_0.png', 1340921907: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938266_0.png', 1340921908: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938278_0.png', 1340921909: '1741140613_1206507_1340921343_699e7a316beff630df91f6d79d84b0a4_rle_crop_3693938301_0.png', 1340921910: '1741140613_1206507_1340921332_daab0831c2b3b4c059e2b9c2838d8070_rle_crop_3693938328_0.png', 1340921911: '1741140613_1206507_1340921315_c63349419919f2aa0d4c73fa3ea1c3a6_rle_crop_3693938391_0.png', 1340921912: '1741140613_1206507_1340921315_c63349419919f2aa0d4c73fa3ea1c3a6_rle_crop_3693938393_0.png', 1340921722: '1741140472_1203248_1340921343_699e7a316beff630df91f6d79d84b0a4_rle_crop_3693938301_0.png', 1340921573: '1741140354_1199307_1340921177_25785d1470968966eda3521127e14f68_rle_crop_3693937295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0194ccc20dbf4590ca59a6a13d39f1b6_12884622.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d6e9e645c83b2356b915f003961883ac_23017500.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0d1ab258e3acde2e8bc7fdee89492815_18531985.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6a73feaaa7ea903e606df39304a327b9_12126743.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/eb185081b49fb85f9dbd2b21535018e6_13083211.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/782807576b4172d35e6c06a3767004fb_49883648.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8ce936c683067d20d1b69d844c53ccf4_84653604.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/3d92ffbe5b4c92a969319fa8bbd5ea2f_78170901.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b416df695d5020e341203281602c1b5f_77113510.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/474031cdc81dfa449667eb5a3b056014_54138896.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/37ecc4b7d75fd2f94f5d14bd886f6e6d_1992346.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ea106eca11a087a076f2596a44902002_89342660.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/66e87a8703fa2b86a4aa06829a3e191e_22609196.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c0ab495d76c316a3c33515de54340fd0_2973197.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/349c2dc033af8630c3c0b3dc145d8d23_40081610.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b508a5e62a0059e80b3a71004f4832fa_94376509.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b2bb8c7672b9388bed9414cc8d1c186b_14102395.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/738160f110c3e765d82fd40611dea80b_74430698.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/349c2dc033af8630c3c0b3dc145d8d23_74962329.png change filename to text .imagette210398551741140782/ imagette210398551741140782/1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938319_0.png.png imagette210398551741140782/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938269_0.png.png imagette210398551741140782/1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939226_0.png.png imagette210398551741140782/1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939456_0.png.png imagette210398551741140782/1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938838_0.png.png imagette210398551741140782/1741140354_1199307_1340921177_25785d1470968966eda3521127e14f68_rle_crop_3693937295_0.png.png imagette210398551741140782/1741140613_1206507_1340921315_c63349419919f2aa0d4c73fa3ea1c3a6_rle_crop_3693938393_0.png.png imagette210398551741140782/1741140593_1206078_1340921484_b0df6fbf150e4b5f0341a0ee66adb657_rle_crop_3693939430_0.png.png imagette210398551741140782/1741140613_1206507_1340921332_daab0831c2b3b4c059e2b9c2838d8070_rle_crop_3693938328_0.png.png imagette210398551741140782/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938266_0.png.png imagette210398551741140782/1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939993_0.png.png imagette210398551741140782/1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938151_0.png.png imagette210398551741140782/1741140613_1206507_1340921343_699e7a316beff630df91f6d79d84b0a4_rle_crop_3693938301_0.png.png imagette210398551741140782/1741140613_1206507_1340921315_c63349419919f2aa0d4c73fa3ea1c3a6_rle_crop_3693938391_0.png.png imagette210398551741140782/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938278_0.png.png imagette210398551741140782/1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938260_0.png.png imagette210398551741140782/1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939529_0.png.png imagette210398551741140782/1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940018_0.png.png imagette210398551741140782/1741140472_1203248_1340921343_699e7a316beff630df91f6d79d84b0a4_rle_crop_3693938301_0.png.png imagette210398551741140782/1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939496_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/30801b20ab3ec855760cf539e7f2555b_45943916.png imagette210398551741140782 21039856 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=21039856 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921577: '1741140354_1199307_1340921288_82ee84604e8e3d1ae3d519b99a5f6ee8_rle_crop_3693937072_0.png', 1340921735: '1741140472_1203248_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938143_0.png', 1340921736: '1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938265_0.png', 1340921917: '1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938143_0.png', 1340921918: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/46862e867d522433e96fbda7a8ca15ff_95330860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7f8a3625000112c8d959242830bc9687_12851514.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0826a43bb60e02d1b1957209a800ab8c_39905611.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7f8a3625000112c8d959242830bc9687_46815738.png change filename to text .imagette210398561741140783/ imagette210398561741140783/1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938265_0.png.png imagette210398561741140783/1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938143_0.png.png imagette210398561741140783/1741140354_1199307_1340921288_82ee84604e8e3d1ae3d519b99a5f6ee8_rle_crop_3693937072_0.png.png imagette210398561741140783/1741140472_1203248_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938143_0.png.png imagette210398561741140783/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938265_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0c69c690b23a43ca36faa24225a57025_78418631.png imagette210398561741140783 21039845 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=21039845 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921562: '1741140354_1199307_1340921170_0759c50d68e6231024b72ea5c8536aeb_rle_crop_3693937316_0.png', 1340921713: '1741140472_1203248_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938153_0.png', 1340921728: '1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938320_0.png', 1340921813: '1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938837_0.png', 1340921854: '1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938320_0.png', 1340921868: '1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939220_0.png', 1340921869: '1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939223_0.png', 1340921870: '1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939987_0.png', 1340921871: '1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940017_0.png', 1340921872: '1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940014_0.png', 1340921902: '1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/c3c284de6e48f9fca563dd9d66ea1f1b_454931.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4f7bef84bc2829a653722ae07e5b89f8_8719143.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/71337b9a6800c2ff81db4e8ecf2e99b1_32727837.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/579ff3293cdb4cf37f22e39b03157519_67200283.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/71337b9a6800c2ff81db4e8ecf2e99b1_5216168.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/f52fb2ef18231e3d0e8cadcdf8bc5e71_43497741.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/0c7b4dcd81d77c759c72ea4c07761958_48337901.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d3aac65d0e93b8700dfaa77c2ff0d3a3_81870812.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d025a5bc8003a71708f7b8ae7d4c476b_34203786.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/bed7cc5837e69054385fe0977d0b658b_76659209.png change filename to text .imagette210398451741140783/ imagette210398451741140783/1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938320_0.png.png imagette210398451741140783/1741140354_1199307_1340921170_0759c50d68e6231024b72ea5c8536aeb_rle_crop_3693937316_0.png.png imagette210398451741140783/1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940017_0.png.png imagette210398451741140783/1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939223_0.png.png imagette210398451741140783/1741140613_1206507_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938153_0.png.png imagette210398451741140783/1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938320_0.png.png imagette210398451741140783/1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940014_0.png.png imagette210398451741140783/1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938837_0.png.png imagette210398451741140783/1741140570_1205727_1340921616_276d9d1d4185ddf9ce51e53f1b2b969c_rle_crop_3693939220_0.png.png imagette210398451741140783/1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939987_0.png.png imagette210398451741140783/1741140472_1203248_1340921382_b939b8248ef575f287c691c16d6aa54b_rle_crop_3693938153_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4f7bef84bc2829a653722ae07e5b89f8_97271631.png imagette210398451741140783 21039851 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=21039851 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921732: '1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938258_0.png', 1340921733: '1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938274_0.png', 1340921890: '1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939452_0.png', 1340921891: '1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939530_0.png', 1340921892: '1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939524_0.png', 1340921893: '1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939523_0.png', 1340921894: '1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939982_0.png', 1340921895: '1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939991_0.png', 1340921896: '1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940011_0.png', 1340921897: '1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940009_0.png', 1340921915: '1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938258_0.png', 1340921916: '1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/03efdf259c9055c730173ffa45a1fadd_51415870.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e2d9c1b9808d7688f54cfedb3da66cff_94587813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/6c5ceb1b44f1e2e977bae8a4d7cc89d0_83190325.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8d37fd696246e5fafeaaa743c18c288a_55308176.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/180f2a05b180d5fc76cccbdeabf3e34f_1246716.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/32d1369bffb89dd58f9eb9f33d08d4a0_43334078.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ca2390b6f41cf3f9af66838ccbb7ddcd_2397826.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/fcf34f0f68a79852119c68098de655e1_71687993.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/7d9fd537d2d9a6246349de6560bcf80e_3670058.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/727ba6d376d8f303fb57eead621f6f27_78928078.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/03efdf259c9055c730173ffa45a1fadd_74859586.png change filename to text .imagette210398511741140784/ imagette210398511741140784/1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939982_0.png.png imagette210398511741140784/1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940009_0.png.png imagette210398511741140784/1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939524_0.png.png imagette210398511741140784/1741140472_1203248_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938258_0.png.png imagette210398511741140784/1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939452_0.png.png imagette210398511741140784/1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939530_0.png.png imagette210398511741140784/1741140570_1205727_1340921415_68a91f871fec134d7171352ec282bfb0_rle_crop_3693940011_0.png.png imagette210398511741140784/1741140613_1206507_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938274_0.png.png imagette210398511741140784/1741140472_1203248_1340921346_7e77a65fdbef167177a8d07280249125_rle_crop_3693938274_0.png.png imagette210398511741140784/1741140570_1205727_1340921457_ff3521c68d002626deca6797dc8f89f9_rle_crop_3693939523_0.png.png imagette210398511741140784/1741140570_1205727_1340921453_a6f39f45da3b7407885e969ae25c2728_rle_crop_3693939991_0.png.png imagette210398511741140784/1741140613_1206507_1340921350_391f0bedd31b53fbfbeb51f0e0dd0568_rle_crop_3693938258_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e2d9c1b9808d7688f54cfedb3da66cff_97922072.png imagette210398511741140784 21039853 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=21039853 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340921734: '1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938307_0.png', 1340921819: '1741140551_1205416_1340921611_84e31a894c2c052f37dd714b0c20caab_rle_crop_3693938798_0.png', 1340921820: '1741140551_1205416_1340921605_de3fd397a46a416125b110b9b6ff11c7_rle_crop_3693938816_0.png', 1340921821: '1741140551_1205416_1340921605_de3fd397a46a416125b110b9b6ff11c7_rle_crop_3693938823_0.png', 1340921822: '1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938834_0.png', 1340921858: '1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693939459_0.png', 1340921859: '1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_bib_crop_3693938307_0.jpg', 1340921884: '1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939446_0.png', 1340921885: '1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939484_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5262ede60c2c86b49068e0c3718deb58_61545445.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/4e8b6125b33ffc0b01322f817db4d7fc_23014368.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/e62221cce054933c315b0e877a9010e8_43966683.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/ff840028e0b44e959c90941759c94fe1_37994129.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/21b4fd53667101bf9a2d299b7406a38f_52176377.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5d53dd255818611e6c549deae942b89f_4928696.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/b505a3237373fda905364435589de862_89086447.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/1e1d74eafc700b7db1461f54d9009a95_77110072.png change filename to text .imagette210398531741140784/ imagette210398531741140784/1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_bib_crop_3693938307_0.jpg.jpg imagette210398531741140784/1741140570_1205727_1340921461_3258e3ef2b6b137d8e952c9c3281ef4c_rle_crop_3693939484_0.png.png imagette210398531741140784/1741140570_1205727_1340921481_694868faec60bc6f758a1dc656407021_rle_crop_3693939446_0.png.png imagette210398531741140784/1741140593_1206078_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693939459_0.png.png imagette210398531741140784/1741140551_1205416_1340921611_84e31a894c2c052f37dd714b0c20caab_rle_crop_3693938798_0.png.png imagette210398531741140784/1741140551_1205416_1340921590_5e1260f08d0da0de41a8015ed9e5df5d_rle_crop_3693938834_0.png.png imagette210398531741140784/1741140551_1205416_1340921605_de3fd397a46a416125b110b9b6ff11c7_rle_crop_3693938823_0.png.png imagette210398531741140784/1741140493_1203515_1340921379_e704f5232c0284ba85f5370aff4194b9_rle_crop_3693938307_0.png.png imagette210398531741140784/1741140551_1205416_1340921605_de3fd397a46a416125b110b9b6ff11c7_rle_crop_3693938816_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/d3f024c43e8119044c32954b3353c159_52442713.png imagette210398531741140784 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21039790 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21039857,21039858,21039859,21039860,21039861,21039862,21039863,21039864,21039865,21039866,21039867,21039868?tags=Teint_Dans_La_Masse,papier,environnement,cartonnette,mal_croppe,flou,Carton_brun,metal,Carton_gris,kraft,autre_refus,plastique your option no_mail is active, we will not send the real mail to your client args[1340921899] : ('0.08275122019020134',) no score found for photo 1340921899 We are sending mail with results at report@fotonower.com args[1340921888] : ('0.08275122019020134',) no score found for photo 1340921888 We are sending mail with results at report@fotonower.com args[1340921877] : ('0.08275122019020134',) no score found for photo 1340921877 We are sending mail with results at report@fotonower.com args[1340921867] : ('0.08275122019020134',) no score found for photo 1340921867 We are sending mail with results at report@fotonower.com args[1340921846] : ('0.08275122019020134',) no score found for photo 1340921846 We are sending mail with results at report@fotonower.com args[1340921844] : ('0.08275122019020134',) no score found for photo 1340921844 We are sending mail with results at report@fotonower.com args[1340921841] : ('0.08275122019020134',) no score found for photo 1340921841 We are sending mail with results at report@fotonower.com args[1340921838] : ('0.08275122019020134',) no score found for photo 1340921838 We are sending mail with results at report@fotonower.com args[1340921834] : ('0.08275122019020134',) no score found for photo 1340921834 We are sending mail with results at report@fotonower.com refus_total : 0.08275122019020134 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=21039790 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_P21039790_05-03-2025_03_13_01.pdf results_Auto_P21039790_05-03-2025_03_13_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21039790_05-03-2025_03_13_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21039790','results_Auto_P21039790_05-03-2025_03_13_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21039790_05-03-2025_03_13_01.pdf','pdf','','0.25','0.08275122019020134') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21039790]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] map_info['map_portfolio_photo'] : {21039790: [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834, 1340921826, 1340921754, 1340921751, 1340921737, 1340921726, 1340921714, 1340921674, 1340921659, 1340921649, 1340921646, 1340921616, 1340921611, 1340921605, 1340921590, 1340921484, 1340921481, 1340921461, 1340921457, 1340921453, 1340921415, 1340921382, 1340921379, 1340921377, 1340921372, 1340921352, 1340921350, 1340921346, 1340921343, 1340921332, 1340921315, 1340921288, 1340921286, 1340921282, 1340921268, 1340921266, 1340921263, 1340921182, 1340921177, 1340921170, 1340921166, 1340921018, 1340921015, 1340921012, 1340920989]} final : False mtd_id 4302 list_pids : [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] 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, '2635210') ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21039790', '1340921899', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210')] time used for this insertion : 0.17078900337219238 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.198044300079346 time spend to save output : 0.1710796356201172 total time spend for step 4 : 5.369123935699463 step5:split_time_score Wed Mar 5 03:13:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21039790'] 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 : [('21039790',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21039790) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340921899: {'path': 'temp/1741140781_2989426_1340921899_7f780002a333ab3fe86647a2f5d94e64.jpg', 'extension': 'jpg'}, 1340921834: {'path': 'temp/1741140781_2989426_1340921834_2f6ebbe46f6e1b7673465f220e663474.jpg', 'extension': 'jpg'}, 1340921838: {'path': 'temp/1741140781_2989426_1340921838_5299dcf28767c607150c722ea740080d.jpg', 'extension': 'jpg'}, 1340921841: {'path': 'temp/1741140781_2989426_1340921841_52093ef6df5d4a5e8991b891a9e2a3b6.jpg', 'extension': 'jpg'}, 1340921844: {'path': 'temp/1741140781_2989426_1340921844_bb55aded19dd1b4aeef43b40a93d9157.jpg', 'extension': 'jpg'}, 1340921846: {'path': 'temp/1741140781_2989426_1340921846_07e452f24433474d401e3e7d5e3ceea6.jpg', 'extension': 'jpg'}, 1340921867: {'path': 'temp/1741140781_2989426_1340921867_90a4a10eeb2a6b99195925e3eed923bb.jpg', 'extension': 'jpg'}, 1340921877: {'path': 'temp/1741140781_2989426_1340921877_8a46e6ebf768b9b635f56cd8ebee97c4.jpg', 'extension': 'jpg'}, 1340921888: {'path': 'temp/1741140781_2989426_1340921888_54a29f440acc528db6bd3c9e6e61aa94.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 = 21039790; (('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 = 21039790 group by h (('03', 53),) 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=21039790 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 (21039790) 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 (21039790) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05032025 21039790 Nombre de photos uploadées : 53 / 23040 (0%) 05032025 21039790 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 05032025 21039790 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1340921018, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/8a6bc0c67a78f5712ed22f3fd0ede2af.jpg', 'username': None, 'uploaded_at': 1741140092, 'text': 'image_05032025_03_00_14_10138.jpg'}, {'photo_id': 1340921015, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/86a1c12dd8ef59e96b774e99aef92457.jpg', 'username': None, 'uploaded_at': 1741140092, 'text': 'image_05032025_03_00_25_10139.jpg'}, {'photo_id': 1340920989, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/5cd404fa009ae4bd1adc73428550f3be.jpg', 'username': None, 'uploaded_at': 1741140078, 'text': 'image_05032025_03_00_34_9123.jpg'}, {'photo_id': 1340921012, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/5/2a2603478ff05a12d22c21f8554ac6de.jpg', 'username': None, 'uploaded_at': 1741140092, 'text': 'image_05032025_03_00_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002388477325439453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21039790, '2025-03-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1639483,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028516292572021484 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= 1639483 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647384, 'mtr_portfolio_id': 21037712, 'dashboard_result_id': 9216081, '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_P21037712_05-03-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21037723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21037728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21037734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21037738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21037739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21037740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21037741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21037742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21037743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21037744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21037746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21037747, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647384, 'mtr_portfolio_id': 21038145, 'dashboard_result_id': 9216082, '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_P21038145_05-03-2025_02_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038165, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647384, 'mtr_portfolio_id': 21038910, 'dashboard_result_id': 9216083, '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_P21038910_05-03-2025_03_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038965, 'pht': 3726}}"}, {'dashboat_entry_day': 1639483, 'dashboard_run_id': 1647384, 'mtr_portfolio_id': 21039790, 'dashboard_result_id': 9216084, '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_P21039790_05-03-2025_03_10_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21039845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21039846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21039847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21039848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21039849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21039850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21039851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21039852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21039853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21039854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21039855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21039856, '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 = 21037712 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': 2634949, 'mtr_portfolio_id': 21037712, 'created_at': datetime.datetime(2025, 3, 5, 2, 32, 57), 'result': '0.0980923648843532', 'result_long': None, 'result_double': None}] Qualite : 0.0980923648843532 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21037712 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21037712_05-03-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21037712 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_P21037712_05-03-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21037723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21037728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21037734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21037738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21037739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21037740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21037741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21037742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21037743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21037744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21037746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21037747, 'pht': 3726}}" where mtr_portfolio_id = 21037712 and dashboard_run_id = 1647384 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`=21037712 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9216081, 0.0980923648843532, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21037712_05-03-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21037723, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21037728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21037734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21037738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21037739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21037740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21037741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21037742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21037743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21037744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21037746, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21037747, '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 = 21038145 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': 2635014, 'mtr_portfolio_id': 21038145, 'created_at': datetime.datetime(2025, 3, 5, 2, 49, 2), 'result': '0.06925235924716891', 'result_long': None, 'result_double': None}] Qualite : 0.06925235924716891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21038145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21038145_05-03-2025_02_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21038145 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_P21038145_05-03-2025_02_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038165, 'pht': 3726}}" where mtr_portfolio_id = 21038145 and dashboard_run_id = 1647384 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`=21038145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9216082, 0.06925235924716891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21038145_05-03-2025_02_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038154, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038159, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038165, '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 = 21038910 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': 2635115, 'mtr_portfolio_id': 21038910, 'created_at': datetime.datetime(2025, 3, 5, 3, 3, 1), 'result': '0.08343052202183243', 'result_long': None, 'result_double': None}] Qualite : 0.08343052202183243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21038910 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21038910_05-03-2025_03_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21038910 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_P21038910_05-03-2025_03_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038965, 'pht': 3726}}" where mtr_portfolio_id = 21038910 and dashboard_run_id = 1647384 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`=21038910 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9216083, 0.08343052202183243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21038910_05-03-2025_03_03_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21038954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21038955, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21038956, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21038957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21038958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21038959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21038960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21038961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21038962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21038963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21038964, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21038965, '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 = 21039790 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': 2635210, 'mtr_portfolio_id': 21039790, 'created_at': datetime.datetime(2025, 3, 5, 3, 13), 'result': '0.08275122019020134', 'result_long': None, 'result_double': None}] Qualite : 0.08275122019020134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21039790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21039790_05-03-2025_03_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21039790 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_P21039790_05-03-2025_03_13_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21039845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21039846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21039847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21039848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21039849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21039850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21039851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21039852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21039853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21039854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21039855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21039856, 'pht': 3726}}" where mtr_portfolio_id = 21039790 and dashboard_run_id = 1647384 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`=21039790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9216084, 0.08275122019020134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21039790_05-03-2025_03_13_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21039845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21039846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21039847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21039848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21039849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21039850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21039851, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21039852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21039853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21039854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21039855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21039856, '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 (21037712,21038145,21038910,21039790) result : ((1340915294,), (1340915303,), (1340915306,), (1340915309,), (1340915427,), (1340915462,), (1340915484,), (1340915554,), (1340915713,), (1340915717,), (1340915841,), (1340915844,), (1340915921,), (1340915924,), (1340915928,), (1340915975,), (1340915978,), (1340916007,), (1340916009,), (1340916018,), (1340916030,), (1340916060,), (1340916069,), (1340916083,), (1340916094,), (1340916112,), (1340916135,), (1340916202,), (1340916273,), (1340916341,), (1340916421,), (1340916715,), (1340916733,), (1340916754,), (1340916757,), (1340916760,), (1340916765,), (1340916780,), (1340916783,), (1340916785,), (1340916855,), (1340916858,), (1340916890,), (1340916913,), (1340916916,), (1340916920,), (1340916988,), (1340916991,), (1340916995,), (1340917058,), (1340917061,), (1340917064,), (1340917068,), (1340917072,), (1340917146,), (1340917128,), (1340917131,), (1340917135,), (1340917139,), (1340917144,), (1340917157,), (1340917160,), (1340917163,), (1340917167,), (1340917171,), (1340917357,), (1340917363,), (1340917375,), (1340917411,), (1340917414,), (1340917417,), (1340917423,), (1340917427,), (1340917937,), (1340917941,), (1340917960,), (1340918056,), (1340918142,), (1340918145,), (1340918148,), (1340918160,), (1340918175,), (1340918179,), (1340918183,), (1340918185,), (1340918216,), (1340918219,), (1340918236,), (1340918239,), (1340918309,), (1340918555,), (1340918558,), (1340918565,), (1340918720,), (1340918728,), (1340918755,), (1340918830,), (1340918843,), (1340918847,), (1340918850,), (1340918852,), (1340918859,), (1340918866,), (1340918869,), (1340918888,), (1340918891,), (1340918893,), (1340918896,), (1340918898,), (1340918921,), (1340918924,), (1340918928,), (1340918936,), (1340918942,), (1340919092,), (1340918999,), (1340919021,), (1340919026,), (1340919049,), (1340919083,), (1340919155,), (1340919196,), (1340919243,), (1340919248,), (1340919745,), (1340919757,), (1340919912,), (1340919937,), (1340919938,), (1340919967,), (1340920003,), (1340920005,), (1340920010,), (1340920014,), (1340920024,), (1340920049,), (1340920051,), (1340920109,), (1340920373,), (1340920376,), (1340920554,), (1340920581,), (1340920603,), (1340920613,), (1340920621,), (1340920670,), (1340920675,), (1340920680,), (1340920703,), (1340920706,), (1340920762,), (1340920773,), (1340920789,), (1340920795,), (1340920802,), (1340920948,), (1340920951,), (1340920956,), (1340920959,), (1340920961,), (1340920962,), (1340920970,), (1340920978,), (1340921019,), (1340920989,), (1340921012,), (1340921015,), (1340921018,), (1340921166,), (1340921170,), (1340921177,), (1340921182,), (1340921263,), (1340921266,), (1340921268,), (1340921282,), (1340921286,), (1340921288,), (1340921315,), (1340921332,), (1340921343,), (1340921346,), (1340921350,), (1340921352,), (1340921372,), (1340921377,), (1340921379,), (1340921382,), (1340921415,), (1340921453,), (1340921457,), (1340921461,), (1340921481,), (1340921484,), (1340921590,), (1340921605,), (1340921611,), (1340921616,), (1340921646,), (1340921649,), (1340921659,), (1340921674,), (1340921714,), (1340921726,), (1340921737,), (1340921751,), (1340921754,), (1340921826,), (1340921834,), (1340921838,), (1340921841,), (1340921844,), (1340921846,), (1340921867,), (1340921877,), (1340921888,), (1340921899,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05032025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21039790]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] map_info['map_portfolio_photo'] : {21039790: [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834, 1340921826, 1340921754, 1340921751, 1340921737, 1340921726, 1340921714, 1340921674, 1340921659, 1340921649, 1340921646, 1340921616, 1340921611, 1340921605, 1340921590, 1340921484, 1340921481, 1340921461, 1340921457, 1340921453, 1340921415, 1340921382, 1340921379, 1340921377, 1340921372, 1340921352, 1340921350, 1340921346, 1340921343, 1340921332, 1340921315, 1340921288, 1340921286, 1340921282, 1340921268, 1340921266, 1340921263, 1340921182, 1340921177, 1340921170, 1340921166, 1340921018, 1340921015, 1340921012, 1340920989]} final : True mtd_id 4302 list_pids : [1340921899, 1340921888, 1340921877, 1340921867, 1340921846, 1340921844, 1340921841, 1340921838, 1340921834] Looping around the photos to save general results len do output : 1 /21039790Didn'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, '2635210') ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210') ('4302', None, None, None, None, None, None, None, '2635210') ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21039790', 'None', None, None, None, None, '2635210'), ('4302', '21039790', '1340921899', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921888', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921877', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921867', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921846', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921844', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921841', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921838', None, None, None, None, None, '2635210'), ('4302', '21039790', '1340921834', None, None, None, None, None, '2635210')] time used for this insertion : 0.05866670608520508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.38783884048461914 time spend to save output : 0.0589289665222168 total time spend for step 5 : 0.44676780700683594 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 (2635210) 2.26user 2.26system 0:12.86elapsed 35%CPU (0avgtext+0avgdata 159544maxresident)k 488inputs+15464outputs (17major+72906minor)pagefaults 0swaps