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 : 2939882 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 (2562503) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2562503) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328924 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2562503'] with mtr_portfolio_ids : ['20328924'] and first list_photo_ids : [] new path : /proc/2939882/ Name: python3 Umask: 0002 State: R (running) Tgid: 2939882 Ngid: 0 Pid: 2939882 PPid: 2939879 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2939882 NSpid: 2939882 NSpgid: 2939083 NSsid: 2939083 VmPeak: 1106588 kB VmSize: 1106572 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97732 kB VmRSS: 97732 kB RssAnon: 59736 kB RssFile: 37996 kB RssShmem: 0 kB VmData: 865324 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 198 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2939882', 'Ngid': '0', 'Pid': '2939882', 'PPid': '2939879', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2939882', 'NSpid': '2939882', 'NSpgid': '2939083', 'NSsid': '2939083', 'VmPeak': '1106588 kB', 'VmSize': '1106572 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97732 kB', 'VmRSS': '97732 kB', 'RssAnon': '59736 kB', 'RssFile': '37996 kB', 'RssShmem': '0 kB', 'VmData': '865324 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '198'} ('datou_batch_current', '2939882', '1106588', '0', '1106572', '865324', '97732', b'', 'marlene', '2562503') 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 (20328924) 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 (2562503 ) ) 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 (20328924) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335465307, 'portfolio_id': 20328924}, {'photo_id': 1335465306, 'portfolio_id': 20328924}, {'photo_id': 1335465304, 'portfolio_id': 20328924}, {'photo_id': 1335465302, 'portfolio_id': 20328924}, {'photo_id': 1335465248, 'portfolio_id': 20328924}, {'photo_id': 1335465245, 'portfolio_id': 20328924}, {'photo_id': 1335465242, 'portfolio_id': 20328924}, {'photo_id': 1335465239, 'portfolio_id': 20328924}, {'photo_id': 1335465237, 'portfolio_id': 20328924}, {'photo_id': 1335465213, 'portfolio_id': 20328924}, {'photo_id': 1335465209, 'portfolio_id': 20328924}, {'photo_id': 1335465207, 'portfolio_id': 20328924}, {'photo_id': 1335465204, 'portfolio_id': 20328924}, {'photo_id': 1335465202, 'portfolio_id': 20328924}, {'photo_id': 1335465033, 'portfolio_id': 20328924}, {'photo_id': 1335464951, 'portfolio_id': 20328924}, {'photo_id': 1335464888, 'portfolio_id': 20328924}, {'photo_id': 1335464836, 'portfolio_id': 20328924}, {'photo_id': 1335464746, 'portfolio_id': 20328924}, {'photo_id': 1335464744, 'portfolio_id': 20328924}, {'photo_id': 1335464740, 'portfolio_id': 20328924}, {'photo_id': 1335464738, 'portfolio_id': 20328924}, {'photo_id': 1335464706, 'portfolio_id': 20328924}, {'photo_id': 1335464668, 'portfolio_id': 20328924}, {'photo_id': 1335463969, 'portfolio_id': 20328924}, {'photo_id': 1335463886, 'portfolio_id': 20328924}, {'photo_id': 1335463812, 'portfolio_id': 20328924}, {'photo_id': 1335463809, 'portfolio_id': 20328924}, {'photo_id': 1335463806, 'portfolio_id': 20328924}, {'photo_id': 1335463804, 'portfolio_id': 20328924}, {'photo_id': 1335463755, 'portfolio_id': 20328924}, {'photo_id': 1335463751, 'portfolio_id': 20328924}, {'photo_id': 1335463745, 'portfolio_id': 20328924}, {'photo_id': 1335463741, 'portfolio_id': 20328924}, {'photo_id': 1335463715, 'portfolio_id': 20328924}, {'photo_id': 1335463713, 'portfolio_id': 20328924}, {'photo_id': 1335463708, 'portfolio_id': 20328924}, {'photo_id': 1335463705, 'portfolio_id': 20328924}, {'photo_id': 1335463701, 'portfolio_id': 20328924}, {'photo_id': 1335463698, 'portfolio_id': 20328924}, {'photo_id': 1335463510, 'portfolio_id': 20328924}, {'photo_id': 1335463505, 'portfolio_id': 20328924}, {'photo_id': 1335463499, 'portfolio_id': 20328924}, {'photo_id': 1335463496, 'portfolio_id': 20328924}, {'photo_id': 1335463492, 'portfolio_id': 20328924}, {'photo_id': 1335462959, 'portfolio_id': 20328924}, {'photo_id': 1335462955, 'portfolio_id': 20328924}, {'photo_id': 1335462919, 'portfolio_id': 20328924}, {'photo_id': 1335462645, 'portfolio_id': 20328924}, {'photo_id': 1335462594, 'portfolio_id': 20328924}, {'photo_id': 1335462517, 'portfolio_id': 20328924}, {'photo_id': 1335462430, 'portfolio_id': 20328924}] map_portfolio_id_photo_id: {20328924: [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237, 1335465213, 1335465209, 1335465207, 1335465204, 1335465202, 1335465033, 1335464951, 1335464888, 1335464836, 1335464746, 1335464744, 1335464740, 1335464738, 1335464706, 1335464668, 1335463969, 1335463886, 1335463812, 1335463809, 1335463806, 1335463804, 1335463755, 1335463751, 1335463745, 1335463741, 1335463715, 1335463713, 1335463708, 1335463705, 1335463701, 1335463698, 1335463510, 1335463505, 1335463499, 1335463496, 1335463492, 1335462959, 1335462955, 1335462919, 1335462645, 1335462594, 1335462517, 1335462430]} ##### 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.017606258392333984 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 7 10:13:29 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 (20328924) 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 : 20328924 get user id for portfolio 20328924 get sub ptf for main ptf 20328924, type 3726 and hashtags ['metal', 'kraft', 'environnement', 'autre_refus', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'mal_croppe', 'papier', 'Carton_gris', 'flou', 'cartonnette'] 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`=20328924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','environnement','autre_refus','Carton_brun','plastique','Teint_Dans_La_Masse','mal_croppe','papier','Carton_gris','flou','cartonnette')) 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`=20328924 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','environnement','autre_refus','Carton_brun','plastique','Teint_Dans_La_Masse','mal_croppe','papier','Carton_gris','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20328924, 'sub_port_id': 20328929, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015837, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'flou': {'main_port_id': 20328924, 'sub_port_id': 20328930, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015838, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'environnement': {'main_port_id': 20328924, 'sub_port_id': 20328931, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015839, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'mal_croppe': {'main_port_id': 20328924, 'sub_port_id': 20328932, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015840, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'kraft': {'main_port_id': 20328924, 'sub_port_id': 20328933, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015841, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20328924, 'sub_port_id': 20328934, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015842, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'autre_refus': {'main_port_id': 20328924, 'sub_port_id': 20328935, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015843, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'metal': {'main_port_id': 20328924, 'sub_port_id': 20328936, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015844, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'Carton_gris': {'main_port_id': 20328924, 'sub_port_id': 20328937, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015845, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'Carton_brun': {'main_port_id': 20328924, 'sub_port_id': 20328938, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015846, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'papier': {'main_port_id': 20328924, 'sub_port_id': 20328939, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015847, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}, 'plastique': {'main_port_id': 20328924, 'sub_port_id': 20328940, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015848, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20328929 , 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=20328924 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 (20328929) result : ((1335465555,), (1335465557,), (1335466154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328930 , 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=20328924 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 (20328930) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328931 , 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=20328924 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 (20328931) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328932 , 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=20328924 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 (20328932) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328933 , 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=20328924 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 (20328933) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328934 , 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=20328924 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 (20328934) result : ((1335463795,), (1335463796,), (1335463914,), (1335464748,), (1335464749,), (1335465471,), (1335465473,), (1335466099,), (1335466122,), (1335466123,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328935 , 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=20328924 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 (20328935) result : ((1335463797,), (1335463798,), (1335463799,), (1335464753,), (1335464754,), (1335464755,), (1335465509,), (1335465510,), (1335466111,), (1335466112,), (1335466113,), (1335466114,), (1335466150,), (1335466151,), (1335466152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328936 , 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=20328924 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 (20328936) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328937 , 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=20328924 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 (20328937) result : ((1335463800,), (1335463801,), (1335464227,), (1335464758,), (1335464759,), (1335465535,), (1335466118,), (1335466119,), (1335466153,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328938 , 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=20328924 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 (20328938) result : ((1335464244,), (1335465348,), (1335465574,), (1335466124,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328939 , 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=20328924 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 (20328939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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 20328940 , 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=20328924 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 (20328940) result : ((1335464270,), (1335466121,), (1335466127,), (1335466156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20328924) result : ((1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) 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`=20328924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','environnement','autre_refus','Carton_brun','plastique','Teint_Dans_La_Masse','mal_croppe','papier','Carton_gris','flou','cartonnette')) 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`=20328924 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','environnement','autre_refus','Carton_brun','plastique','Teint_Dans_La_Masse','mal_croppe','papier','Carton_gris','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 20328924, 'sub_port_id': 20328941, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015849, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'flou': {'main_port_id': 20328924, 'sub_port_id': 20328942, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015850, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'environnement': {'main_port_id': 20328924, 'sub_port_id': 20328943, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015851, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'mal_croppe': {'main_port_id': 20328924, 'sub_port_id': 20328944, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015852, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'kraft': {'main_port_id': 20328924, 'sub_port_id': 20328945, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015853, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 20328924, 'sub_port_id': 20328946, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015854, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'autre_refus': {'main_port_id': 20328924, 'sub_port_id': 20328947, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015855, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'metal': {'main_port_id': 20328924, 'sub_port_id': 20328948, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015856, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'Carton_gris': {'main_port_id': 20328924, 'sub_port_id': 20328949, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015857, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'Carton_brun': {'main_port_id': 20328924, 'sub_port_id': 20328950, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015858, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'papier': {'main_port_id': 20328924, 'sub_port_id': 20328951, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015859, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}, 'plastique': {'main_port_id': 20328924, 'sub_port_id': 20328952, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13015860, 'last_updated_at': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_desc': datetime.datetime(2025, 2, 7, 10, 10, 57), 'last_updated_at_asc': datetime.datetime(2025, 2, 7, 10, 5, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328941,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328929 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328942,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328930 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328943,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328931 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328944,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328932 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328945,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328933 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328946,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328934 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328947,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328935 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328948,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328936 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328949,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328937 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20328952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20328940 lien utilise dans velours : https://www.fotonower.com/velours/20328941,20328942,20328943,20328944,20328945,20328946,20328947,20328948,20328949,20328950,20328951,20328952?tags=cartonnette,flou,environnement,mal_croppe,kraft,Teint_Dans_La_Masse,autre_refus,metal,Carton_gris,Carton_brun,papier,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20328924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] map_info['map_portfolio_photo'] : {20328924: [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237, 1335465213, 1335465209, 1335465207, 1335465204, 1335465202, 1335465033, 1335464951, 1335464888, 1335464836, 1335464746, 1335464744, 1335464740, 1335464738, 1335464706, 1335464668, 1335463969, 1335463886, 1335463812, 1335463809, 1335463806, 1335463804, 1335463755, 1335463751, 1335463745, 1335463741, 1335463715, 1335463713, 1335463708, 1335463705, 1335463701, 1335463698, 1335463510, 1335463505, 1335463499, 1335463496, 1335463492, 1335462959, 1335462955, 1335462919, 1335462645, 1335462594, 1335462517, 1335462430]} final : False mtd_id 4302 list_pids : [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] Looping around the photos to save general results len do output : 1 /20328924. 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, '2562503') ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503') 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, '20328924', "{'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940}", None, None, None, None, '2562503'), ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503')] time used for this insertion : 0.012980937957763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6013298034667969 time spend to save output : 0.013347148895263672 total time spend for step 1 : 1.6146769523620605 step2:final Fri Feb 7 10:13:30 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 (20328924) 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 20328924 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335462645,1335462594,1335462517,1335462430,1335462959,1335462955,1335462919,1335463510,1335463505,1335463499,1335463496,1335463492,1335463715,1335463713,1335463708,1335463705,1335463701,1335463698,1335463755,1335463751,1335463745,1335463741,1335463969,1335463886,1335463812,1335463809,1335463806,1335463804,1335464746,1335464744,1335464740,1335464738,1335464706,1335464668,1335465033,1335464951,1335464888,1335464836,1335465213,1335465209,1335465207,1335465204,1335465202,1335465248,1335465245,1335465242,1335465239,1335465237,1335465307,1335465306,1335465304,1335465302); 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([20328924]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} new output for save of step final : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] map_info['map_portfolio_photo'] : {20328924: [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237, 1335465213, 1335465209, 1335465207, 1335465204, 1335465202, 1335465033, 1335464951, 1335464888, 1335464836, 1335464746, 1335464744, 1335464740, 1335464738, 1335464706, 1335464668, 1335463969, 1335463886, 1335463812, 1335463809, 1335463806, 1335463804, 1335463755, 1335463751, 1335463745, 1335463741, 1335463715, 1335463713, 1335463708, 1335463705, 1335463701, 1335463698, 1335463510, 1335463505, 1335463499, 1335463496, 1335463492, 1335462959, 1335462955, 1335462919, 1335462645, 1335462594, 1335462517, 1335462430]} final : False mtd_id 4302 list_pids : [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] Looping around the photos to save general results len do output : 9 /1335465307.Didn't retrieve data . /1335465306.Didn't retrieve data . /1335465304.Didn't retrieve data . /1335465302.Didn't retrieve data . /1335465248.Didn't retrieve data . /1335465245.Didn't retrieve data . /1335465242.Didn't retrieve data . /1335465239.Didn't retrieve data . /1335465237.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, '2562503') ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503') 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', '20328924', '1335465307', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465306', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465304', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465302', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465248', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465245', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465242', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465239', '0.03760009128108319', None, None, None, None, '2562503'), ('4302', '20328924', '1335465237', '0.03760009128108319', None, None, None, None, '2562503')] time used for this insertion : 0.01264810562133789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07160329818725586 time spend to save output : 0.013132810592651367 total time spend for step 2 : 0.08473610877990723 step3:velours_tree Fri Feb 7 10:13:30 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 : {20328924: [{'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940}]} input_args_next_step : {20328924: ()} output_args : {20328924: [{'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940}]} args : 20328924 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20328924) 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([20328924]) 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.7677903175354004 time spend to save output : 0.00011324882507324219 total time spend for step 3 : 0.7679035663604736 step4:send_mail_cod Fri Feb 7 10:13:31 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 : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} input_args_next_step : {1335465307: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465307 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465306 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465304 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465302 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465248 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465245 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465242 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465239 depend.output_id : 0 input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ()} output_args : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',)} args : 1335465237 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 : {20328924: [{'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940}]} input_args_next_step : {1335465307: ('0.03760009128108319',), 1335465306: ('0.03760009128108319',), 1335465304: ('0.03760009128108319',), 1335465302: ('0.03760009128108319',), 1335465248: ('0.03760009128108319',), 1335465245: ('0.03760009128108319',), 1335465242: ('0.03760009128108319',), 1335465239: ('0.03760009128108319',), 1335465237: ('0.03760009128108319',), 20328924: ()} output_args : {20328924: [{'cartonnette': 20328929, 'flou': 20328930, 'environnement': 20328931, 'mal_croppe': 20328932, 'kraft': 20328933, 'Teint_Dans_La_Masse': 20328934, 'autre_refus': 20328935, 'metal': 20328936, 'Carton_gris': 20328937, 'Carton_brun': 20328938, 'papier': 20328939, 'plastique': 20328940}]} args : 20328924 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.03760009128108319',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20328924) 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 (1335465307,1335465306,1335465304,1335465302,1335465248,1335465245,1335465242,1335465239,1335465237) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335465237 begin to download photo : 1335465242 begin to download photo : 1335465248 begin to download photo : 1335465304 begin to download photo : 1335465307 download finish for photo 1335465307 download finish for photo 1335465242 begin to download photo : 1335465245 download finish for photo 1335465304 begin to download photo : 1335465306 download finish for photo 1335465248 begin to download photo : 1335465302 download finish for photo 1335465237 begin to download photo : 1335465239 download finish for photo 1335465306 download finish for photo 1335465302 download finish for photo 1335465245 download finish for photo 1335465239 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_P20328924_07-02-2025_10_13_31.pdf 20328929 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=20328929 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335465555: '1738919414_1779724_1335464740_6164fc656ad9632e9ebf4dcb62eb8f27_rle_crop_3659412878_0.png', 1335465557: '1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413071_0.png', 1335466154: '1738919492_1781838_1335463698_2b811a3fb58828e58382a06bca3304ff_rle_crop_3659410072_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d5cadabb08b64060ded4dab46ba365ce_66332364.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ae7dc5fe7841722b407a891e8c5510b3_40499209.png change filename to text .imagette203289291738919611/ imagette203289291738919611/1738919414_1779724_1335464740_6164fc656ad9632e9ebf4dcb62eb8f27_rle_crop_3659412878_0.png.png imagette203289291738919611/1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413071_0.png.png imagette203289291738919611/1738919492_1781838_1335463698_2b811a3fb58828e58382a06bca3304ff_rle_crop_3659410072_0.png.png imagette203289301738919612/ imagette203289321738919612/ imagette203289331738919612/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/637a0a0e8757280cd27c34ff4decb4eb_30424668.png imagette203289291738919611 20328930 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=20328930 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203289301738919612 20328932 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=20328932 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203289321738919612 20328933 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=20328933 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203289331738919612 20328935 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=20328935 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335463797: '1738919091_1767721_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397782_0.png', 1335463798: '1738919091_1767721_1335462594_0086197ef368db78918e4ae78381516e_rle_crop_3659397797_0.png', 1335463799: '1738919091_1767721_1335462430_862f70f3f024b23e356ab1b6567f3c65_rle_crop_3659397828_0.png', 1335464753: '1738919154_1768727_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397782_0.png', 1335464754: '1738919154_1768727_1335462594_0086197ef368db78918e4ae78381516e_rle_crop_3659397797_0.png', 1335464755: '1738919154_1768727_1335462430_862f70f3f024b23e356ab1b6567f3c65_rle_crop_3659397828_0.png', 1335465509: '1738919414_1779724_1335465033_ab9cc4b11f5bde2be53ce2df366f39d1_rle_crop_3659410236_0.png', 1335465510: '1738919414_1779724_1335464744_6b62f9e8ed39f838c1c6107db53ad699_rle_crop_3659410749_0.png', 1335466111: '1738919451_1780918_1335464746_f449630b2bf53db2b9f691d8667c13b1_rle_crop_3659416174_0.png', 1335466112: '1738919451_1780918_1335463809_a0fc75436088828af96b18f18faf572f_rle_crop_3659416431_0.png', 1335466113: '1738919451_1780918_1335463806_8c0af3651dde05863f8d96c05d2ae75f_rle_crop_3659416443_0.png', 1335466114: '1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416455_0.png', 1335466150: '1738919492_1781838_1335463755_b458b725f68817694714f28665706259_rle_crop_3659409835_0.png', 1335466151: '1738919492_1781838_1335463713_4822032c3f150187535a12f230f5bb81_rle_crop_3659409844_0.png', 1335466152: '1738919492_1781838_1335463698_2b811a3fb58828e58382a06bca3304ff_rle_crop_3659410077_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/fde57ffc608e05dd492fc3b05c4c9941_46365762.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f050e914c7ff05bda66f5c1c6b3574e9_73497673.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c2906f6392e4f41f5a7905c04ffe6033_37618902.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/fde57ffc608e05dd492fc3b05c4c9941_76012003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f050e914c7ff05bda66f5c1c6b3574e9_18980126.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c2906f6392e4f41f5a7905c04ffe6033_1037608.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/7c237c2de12e89ef9b564395e61151cd_32179507.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ace363782c3abf0704e76d2cef1fa283_53773530.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/acd031ed2b3b1d1b953cfd6e05066ac7_75769317.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/4b22af5d5cdf6986dff7d77b0c1dd634_97045644.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/74ffad15b5bd96474f92b353fe4ec789_45138843.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/f4193f721f37d38fbc771a0f14c30ee5_872533.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/46166dd17fa0cf13a9df42ea19bfa569_41677689.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d94ac6ff2533f4df3ccca4c5206dcac9_1280431.png change filename to text .imagette203289351738919612/ imagette203289351738919612/1738919091_1767721_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397782_0.png.png imagette203289351738919612/1738919451_1780918_1335464746_f449630b2bf53db2b9f691d8667c13b1_rle_crop_3659416174_0.png.png imagette203289351738919612/1738919492_1781838_1335463713_4822032c3f150187535a12f230f5bb81_rle_crop_3659409844_0.png.png imagette203289351738919612/1738919414_1779724_1335464744_6b62f9e8ed39f838c1c6107db53ad699_rle_crop_3659410749_0.png.png imagette203289351738919612/1738919154_1768727_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397782_0.png.png imagette203289351738919612/1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416455_0.png.png imagette203289351738919612/1738919414_1779724_1335465033_ab9cc4b11f5bde2be53ce2df366f39d1_rle_crop_3659410236_0.png.png imagette203289351738919612/1738919451_1780918_1335463806_8c0af3651dde05863f8d96c05d2ae75f_rle_crop_3659416443_0.png.png imagette203289351738919612/1738919154_1768727_1335462430_862f70f3f024b23e356ab1b6567f3c65_rle_crop_3659397828_0.png.png imagette203289351738919612/1738919451_1780918_1335463809_a0fc75436088828af96b18f18faf572f_rle_crop_3659416431_0.png.png imagette203289351738919612/1738919492_1781838_1335463698_2b811a3fb58828e58382a06bca3304ff_rle_crop_3659410077_0.png.png imagette203289351738919612/1738919091_1767721_1335462594_0086197ef368db78918e4ae78381516e_rle_crop_3659397797_0.png.png imagette203289351738919612/1738919154_1768727_1335462594_0086197ef368db78918e4ae78381516e_rle_crop_3659397797_0.png.png imagette203289351738919612/1738919492_1781838_1335463755_b458b725f68817694714f28665706259_rle_crop_3659409835_0.png.png imagette203289351738919612/1738919091_1767721_1335462430_862f70f3f024b23e356ab1b6567f3c65_rle_crop_3659397828_0.png.png imagette203289361738919612/ wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/2eac0b0aa3123652575ee5ee0502b7d4_47353886.png imagette203289351738919612 20328936 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=20328936 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette203289361738919612 20328940 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=20328940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335464270: '1738919134_1768265_1335462919_fd075218cc9d59c4bf4bc1acd59e7c5c_rle_crop_3659400901_0.png', 1335466121: '1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416454_0.png', 1335466127: '1738919475_1781422_1335463741_9263bc1b8cc95500aa002703c07beec9_rle_crop_3659410085_0.png', 1335466156: '1738919492_1781838_1335463708_c9b589bc6cbcbb62870759281cc1af75_rle_crop_3659409857_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/82f79e9e9ca8704f5090f7c39c341a23_14848220.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d3b4245f32a68980e44e9b2d989fb144_37994530.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/25de5621cbaf7884c5f607366b59c1d0_62467923.png change filename to text .imagette203289401738919612/ imagette203289401738919612/1738919492_1781838_1335463708_c9b589bc6cbcbb62870759281cc1af75_rle_crop_3659409857_0.png.png imagette203289401738919612/1738919475_1781422_1335463741_9263bc1b8cc95500aa002703c07beec9_rle_crop_3659410085_0.png.png imagette203289401738919612/1738919134_1768265_1335462919_fd075218cc9d59c4bf4bc1acd59e7c5c_rle_crop_3659400901_0.png.png imagette203289401738919612/1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416454_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/edca0a7353c3c150208adc00f6b23852_58202233.png imagette203289401738919612 20328934 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=20328934 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335463795: '1738919091_1767721_1335462959_c1086ca34cfff9b526d57b4f413b7e9e_rle_crop_3659397760_0.png', 1335463796: '1738919091_1767721_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397812_0.png', 1335463914: '1738919113_1768046_1335463496_ab48e506a8440b82adda8214c87e2261_rle_crop_3659400847_0.png', 1335464748: '1738919154_1768727_1335462959_c1086ca34cfff9b526d57b4f413b7e9e_rle_crop_3659397760_0.png', 1335464749: '1738919154_1768727_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397812_0.png', 1335465471: '1738919414_1779724_1335464738_ad422c6580d5dfed4bfc2b309ab1087e_rle_crop_3659412926_0.png', 1335465473: '1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413077_0.png', 1335466099: '1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416457_0.png', 1335466122: '1738919475_1781422_1335463751_7a4053588583ffd22357be291b534428_rle_crop_3659410029_0.png', 1335466123: '1738919475_1781422_1335463745_778b1bf1cbaf40a7ccbef4c6b68436c3_rle_crop_3659410065_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/22884f207962805c12481e098584a4e3_84111025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0013a899a9b65e25c98a21068a67b2d1_56011531.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/c66a1cfc8dca6d68caacdddd45899aea_81068372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/22884f207962805c12481e098584a4e3_68358566.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0013a899a9b65e25c98a21068a67b2d1_77339856.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bb7e4910fac308be5421108e6a8470f7_15210998.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/716b5465dab767d0349912b9ae66148b_73790238.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/733ef53eb557ab2e8d1c55e26d03b168_19787092.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/ef99a4dd567afbd443493fe62043e0ed_52226618.png change filename to text .imagette203289341738919613/ imagette203289341738919613/1738919451_1780918_1335463804_a78c1fd727f87e7c04dc657fca6fa8c9_rle_crop_3659416457_0.png.png imagette203289341738919613/1738919414_1779724_1335464738_ad422c6580d5dfed4bfc2b309ab1087e_rle_crop_3659412926_0.png.png imagette203289341738919613/1738919475_1781422_1335463745_778b1bf1cbaf40a7ccbef4c6b68436c3_rle_crop_3659410065_0.png.png imagette203289341738919613/1738919154_1768727_1335462959_c1086ca34cfff9b526d57b4f413b7e9e_rle_crop_3659397760_0.png.png imagette203289341738919613/1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413077_0.png.png imagette203289341738919613/1738919154_1768727_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397812_0.png.png imagette203289341738919613/1738919091_1767721_1335462959_c1086ca34cfff9b526d57b4f413b7e9e_rle_crop_3659397760_0.png.png imagette203289341738919613/1738919475_1781422_1335463751_7a4053588583ffd22357be291b534428_rle_crop_3659410029_0.png.png imagette203289341738919613/1738919091_1767721_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397812_0.png.png imagette203289341738919613/1738919113_1768046_1335463496_ab48e506a8440b82adda8214c87e2261_rle_crop_3659400847_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/875652400807fec208bb019e83baec3f_93133107.png imagette203289341738919613 20328937 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=20328937 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335463800: '1738919091_1767721_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397789_0.png', 1335463801: '1738919091_1767721_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397809_0.png', 1335464227: '1738919134_1768265_1335462955_37c1c2c46d1f3350f191d7740c44d69e_rle_crop_3659400881_0.png', 1335464758: '1738919154_1768727_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397789_0.png', 1335464759: '1738919154_1768727_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397809_0.png', 1335465535: '1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413074_0.png', 1335466118: '1738919451_1780918_1335463809_a0fc75436088828af96b18f18faf572f_rle_crop_3659416432_0.png', 1335466119: '1738919451_1780918_1335463806_8c0af3651dde05863f8d96c05d2ae75f_rle_crop_3659416440_0.png', 1335466153: '1738919492_1781838_1335463705_481c9295249c37e9bcfa560231aa507a_rle_crop_3659409864_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/32e537425d6546c5dfdaf4fd0dcc8ea0_57968826.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8a1a344bec9fb8ec13a4a39ca50d8542_51697684.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/3025d56ac9c33954b618f87070cc1f68_95221853.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/32e537425d6546c5dfdaf4fd0dcc8ea0_97261100.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/8a1a344bec9fb8ec13a4a39ca50d8542_78464993.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/d55450cec9baa5ac2f897949470a3cce_87906116.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/43c26417893b86dc37691d11924ead9d_53524570.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/bcb37382d2806da4a06c76482220f421_94852886.png change filename to text .imagette203289371738919613/ imagette203289371738919613/1738919451_1780918_1335463806_8c0af3651dde05863f8d96c05d2ae75f_rle_crop_3659416440_0.png.png imagette203289371738919613/1738919091_1767721_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397809_0.png.png imagette203289371738919613/1738919492_1781838_1335463705_481c9295249c37e9bcfa560231aa507a_rle_crop_3659409864_0.png.png imagette203289371738919613/1738919154_1768727_1335462517_fd4cb692c26193e6e2fd483f845955ca_rle_crop_3659397809_0.png.png imagette203289371738919613/1738919414_1779724_1335464706_a49091c70f757aa57978c6e8c5f276cf_rle_crop_3659413074_0.png.png imagette203289371738919613/1738919154_1768727_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397789_0.png.png imagette203289371738919613/1738919091_1767721_1335462645_a426bc88085a28a746c66cdf2d9bea1f_rle_crop_3659397789_0.png.png imagette203289371738919613/1738919451_1780918_1335463809_a0fc75436088828af96b18f18faf572f_rle_crop_3659416432_0.png.png imagette203289371738919613/1738919134_1768265_1335462955_37c1c2c46d1f3350f191d7740c44d69e_rle_crop_3659400881_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/dc052da57946a4c408c9aa47a323cbe7_7709870.png imagette203289371738919613 20328938 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=20328938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335464244: '1738919134_1768265_1335462955_37c1c2c46d1f3350f191d7740c44d69e_rle_crop_3659400886_0.png', 1335465348: '1738919432_1780477_1335464951_ac8a9e06680e56fc5bf050e51d364f6f_rle_crop_3659412898_0.png', 1335465574: '1738919414_1779724_1335464668_dc8b9a17a593ff04abd336700daee655_rle_crop_3659413100_0.png', 1335466124: '1738919475_1781422_1335463741_9263bc1b8cc95500aa002703c07beec9_rle_crop_3659410086_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/856014bca0ee53e3aa4c4b67e6942428_18847044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/31d70867cefd74997a0568bb487147d2_54713015.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/5d6ad1195d2d8d5963ae41fd836b9d8e_36098247.png change filename to text .imagette203289381738919614/ imagette203289381738919614/1738919475_1781422_1335463741_9263bc1b8cc95500aa002703c07beec9_rle_crop_3659410086_0.png.png imagette203289381738919614/1738919134_1768265_1335462955_37c1c2c46d1f3350f191d7740c44d69e_rle_crop_3659400886_0.png.png imagette203289381738919614/1738919414_1779724_1335464668_dc8b9a17a593ff04abd336700daee655_rle_crop_3659413100_0.png.png imagette203289381738919614/1738919432_1780477_1335464951_ac8a9e06680e56fc5bf050e51d364f6f_rle_crop_3659412898_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/94eeba5f2280789a7817fa239a578b68_91560486.png imagette203289381738919614 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20328924 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20328941,20328942,20328943,20328944,20328945,20328946,20328947,20328948,20328949,20328950,20328951,20328952?tags=cartonnette,flou,environnement,mal_croppe,kraft,Teint_Dans_La_Masse,autre_refus,metal,Carton_gris,Carton_brun,papier,plastique your option no_mail is active, we will not send the real mail to your client args[1335465307] : ('0.03760009128108319',) no score found for photo 1335465307 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465306] : ('0.03760009128108319',) no score found for photo 1335465306 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465304] : ('0.03760009128108319',) no score found for photo 1335465304 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465302] : ('0.03760009128108319',) no score found for photo 1335465302 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465248] : ('0.03760009128108319',) no score found for photo 1335465248 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465245] : ('0.03760009128108319',) no score found for photo 1335465245 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465242] : ('0.03760009128108319',) no score found for photo 1335465242 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465239] : ('0.03760009128108319',) no score found for photo 1335465239 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com args[1335465237] : ('0.03760009128108319',) no score found for photo 1335465237 apple ('0.03760009128108319',) We are sending mail with results at report@fotonower.com refus_total : 0.03760009128108319 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=20328924 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_P20328924_07-02-2025_10_13_31.pdf results_Auto_P20328924_07-02-2025_10_13_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328924_07-02-2025_10_13_31.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','20328924','results_Auto_P20328924_07-02-2025_10_13_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328924_07-02-2025_10_13_31.pdf','pdf','','0.2','0.03760009128108319') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20328924]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] map_info['map_portfolio_photo'] : {20328924: [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237, 1335465213, 1335465209, 1335465207, 1335465204, 1335465202, 1335465033, 1335464951, 1335464888, 1335464836, 1335464746, 1335464744, 1335464740, 1335464738, 1335464706, 1335464668, 1335463969, 1335463886, 1335463812, 1335463809, 1335463806, 1335463804, 1335463755, 1335463751, 1335463745, 1335463741, 1335463715, 1335463713, 1335463708, 1335463705, 1335463701, 1335463698, 1335463510, 1335463505, 1335463499, 1335463496, 1335463492, 1335462959, 1335462955, 1335462919, 1335462645, 1335462594, 1335462517, 1335462430]} final : False mtd_id 4302 list_pids : [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] 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, '2562503') ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503') 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', '20328924', '1335465307', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503')] time used for this insertion : 0.015034914016723633 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.2831151485443115 time spend to save output : 0.015279054641723633 total time spend for step 4 : 4.298394203186035 step5:split_time_score Fri Feb 7 10:13:35 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 : ['20328924'] 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 : [('20328924',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20328924) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335465307: {'path': 'temp/1738919611_2939882_1335465307_b4c7434a70d17bb005a6c28927de5727.jpg', 'extension': 'jpg'}, 1335465304: {'path': 'temp/1738919611_2939882_1335465304_955fb7b36aecde2ce52690d393813b4d.jpg', 'extension': 'jpg'}, 1335465306: {'path': 'temp/1738919611_2939882_1335465306_7a146fb33c9cdc84890aa8418d82154e.jpg', 'extension': 'jpg'}, 1335465248: {'path': 'temp/1738919611_2939882_1335465248_a8db960b7ce34eb9103a9c4e6c25bd4c.jpg', 'extension': 'jpg'}, 1335465302: {'path': 'temp/1738919611_2939882_1335465302_20f144bb5688932e54eb3a708cd7c5e2.jpg', 'extension': 'jpg'}, 1335465242: {'path': 'temp/1738919611_2939882_1335465242_626a8075021a8d78fe9588e1489dd1a8.jpg', 'extension': 'jpg'}, 1335465245: {'path': 'temp/1738919611_2939882_1335465245_be572657e395fc34a3c2bc249d6831e0.jpg', 'extension': 'jpg'}, 1335465237: {'path': 'temp/1738919611_2939882_1335465237_67b9efad8e89c985247d2b65b7cd9640.jpg', 'extension': 'jpg'}, 1335465239: {'path': 'temp/1738919611_2939882_1335465239_2d7c76f95362044b2f732846b2f1850c.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 = 20328924; (('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 = 20328924 group by h (('10', 52),) 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=20328924 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 (20328924) 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 (20328924) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07022025 20328924 Nombre de photos uploadées : 52 / 23040 (0%) 07022025 20328924 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 07022025 20328924 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1335462645, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/a426bc88085a28a746c66cdf2d9bea1f.jpg', 'username': None, 'uploaded_at': 1738918867, 'text': 'image_07022025_10_00_13_010197m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1335462594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/0086197ef368db78918e4ae78381516e.jpg', 'username': None, 'uploaded_at': 1738918867, 'text': 'image_07022025_10_00_23_010141m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1335462517, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/fd4cb692c26193e6e2fd483f845955ca.jpg', 'username': None, 'uploaded_at': 1738918867, 'text': 'image_07022025_10_00_34_010150m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1335462430, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/7/862f70f3f024b23e356ab1b6567f3c65.jpg', 'username': None, 'uploaded_at': 1738918867, 'text': 'image_07022025_10_00_44_010150m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002055644989013672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20328924, '2025-02-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1584783,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02654290199279785 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= 1584783 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593370, 'mtr_portfolio_id': 20327948, 'dashboard_result_id': 8757658, '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_P20327948_07-02-2025_09_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20327951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20327952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20327953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20327954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20327955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20327956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20327957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20327958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20327959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20327960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20327961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20327962, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593370, 'mtr_portfolio_id': 20328450, 'dashboard_result_id': 8757659, '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_P20328450_07-02-2025_10_02_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328463, 'pht': 3726}}"}, {'dashboat_entry_day': 1584783, 'dashboard_run_id': 1593370, 'mtr_portfolio_id': 20328924, 'dashboard_result_id': 8757660, '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_P20328924_07-02-2025_10_10_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328940, '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 = 20327948 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': 2562427, 'mtr_portfolio_id': 20327948, 'created_at': datetime.datetime(2025, 2, 7, 9, 46, 58), 'result': '0.03978647542793224', 'result_long': None, 'result_double': None}] Qualite : 0.03978647542793224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20327948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20327948_07-02-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20327948 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_P20327948_07-02-2025_09_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20327951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20327952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20327953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20327954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20327955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20327956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20327957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20327958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20327959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20327960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20327961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20327962, 'pht': 3726}}" where mtr_portfolio_id = 20327948 and dashboard_run_id = 1593370 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`=20327948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8757658, 0.03978647542793224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20327948_07-02-2025_09_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20327951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20327952, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20327953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20327954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20327955, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20327956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20327957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20327958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20327959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20327960, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20327961, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20327962, '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 = 20328450 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': 2562461, 'mtr_portfolio_id': 20328450, 'created_at': datetime.datetime(2025, 2, 7, 10, 2, 32), 'result': '0.045037108386477044', 'result_long': None, 'result_double': None}] Qualite : 0.045037108386477044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20328450 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328450_07-02-2025_10_02_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20328450 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_P20328450_07-02-2025_10_02_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328463, 'pht': 3726}}" where mtr_portfolio_id = 20328450 and dashboard_run_id = 1593370 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`=20328450 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8757659, 0.045037108386477044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328450_07-02-2025_10_02_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328453, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328456, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328457, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328461, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328462, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328463, '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 = 20328924 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': 2562503, 'mtr_portfolio_id': 20328924, 'created_at': datetime.datetime(2025, 2, 7, 10, 13, 30), 'result': '0.03760009128108319', 'result_long': None, 'result_double': None}] Qualite : 0.03760009128108319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20328924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328924_07-02-2025_10_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20328924 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_P20328924_07-02-2025_10_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328940, 'pht': 3726}}" where mtr_portfolio_id = 20328924 and dashboard_run_id = 1593370 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`=20328924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8757660, 0.03760009128108319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20328924_07-02-2025_10_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20328929, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20328930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20328931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20328932, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20328933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20328934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20328935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20328936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20328937, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20328938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20328939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20328940, '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 (20327948,20328450,20328924) result : ((1335454078,), (1335454122,), (1335454133,), (1335454145,), (1335454150,), (1335454180,), (1335454183,), (1335454221,), (1335454365,), (1335454368,), (1335454372,), (1335454378,), (1335454447,), (1335454713,), (1335455389,), (1335455396,), (1335455856,), (1335455888,), (1335455900,), (1335455927,), (1335456247,), (1335456251,), (1335456290,), (1335457014,), (1335457080,), (1335457153,), (1335457225,), (1335457276,), (1335457314,), (1335457430,), (1335457435,), (1335457439,), (1335457470,), (1335457537,), (1335457593,), (1335457800,), (1335457803,), (1335457845,), (1335457855,), (1335457859,), (1335457889,), (1335457892,), (1335457895,), (1335457929,), (1335457932,), (1335457936,), (1335457940,), (1335457944,), (1335458006,), (1335458010,), (1335458031,), (1335458113,), (1335458194,), (1335458987,), (1335458973,), (1335458978,), (1335458983,), (1335459380,), (1335459389,), (1335460252,), (1335460260,), (1335460391,), (1335460394,), (1335460456,), (1335460459,), (1335460529,), (1335460532,), (1335460627,), (1335460631,), (1335460634,), (1335460637,), (1335460641,), (1335460692,), (1335460694,), (1335460698,), (1335461256,), (1335461340,), (1335461583,), (1335461585,), (1335461588,), (1335461652,), (1335461654,), (1335461657,), (1335461660,), (1335461664,), (1335461671,), (1335461708,), (1335461710,), (1335461755,), (1335461768,), (1335461781,), (1335461785,), (1335461788,), (1335461789,), (1335461902,), (1335461907,), (1335461913,), (1335461919,), (1335461925,), (1335462692,), (1335462430,), (1335462517,), (1335462594,), (1335462645,), (1335462919,), (1335462955,), (1335462959,), (1335463492,), (1335463496,), (1335463499,), (1335463505,), (1335463510,), (1335463698,), (1335463701,), (1335463705,), (1335463708,), (1335463713,), (1335463715,), (1335463741,), (1335463745,), (1335463751,), (1335463755,), (1335463804,), (1335463806,), (1335463809,), (1335463812,), (1335463886,), (1335463969,), (1335464668,), (1335464706,), (1335464738,), (1335464740,), (1335464744,), (1335464746,), (1335464836,), (1335464888,), (1335464951,), (1335465033,), (1335465202,), (1335465204,), (1335465207,), (1335465209,), (1335465213,), (1335465237,), (1335465239,), (1335465242,), (1335465245,), (1335465248,), (1335465302,), (1335465304,), (1335465306,), (1335465307,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07022025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20328924]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] map_info['map_portfolio_photo'] : {20328924: [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237, 1335465213, 1335465209, 1335465207, 1335465204, 1335465202, 1335465033, 1335464951, 1335464888, 1335464836, 1335464746, 1335464744, 1335464740, 1335464738, 1335464706, 1335464668, 1335463969, 1335463886, 1335463812, 1335463809, 1335463806, 1335463804, 1335463755, 1335463751, 1335463745, 1335463741, 1335463715, 1335463713, 1335463708, 1335463705, 1335463701, 1335463698, 1335463510, 1335463505, 1335463499, 1335463496, 1335463492, 1335462959, 1335462955, 1335462919, 1335462645, 1335462594, 1335462517, 1335462430]} final : True mtd_id 4302 list_pids : [1335465307, 1335465306, 1335465304, 1335465302, 1335465248, 1335465245, 1335465242, 1335465239, 1335465237] Looping around the photos to save general results len do output : 1 /20328924Didn'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, '2562503') ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503') ('4302', None, None, None, None, None, None, None, '2562503') ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503') 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, '20328924', 'None', None, None, None, None, '2562503'), ('4302', '20328924', '1335465307', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465306', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465304', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465302', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465248', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465245', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465242', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465239', None, None, None, None, None, '2562503'), ('4302', '20328924', '1335465237', None, None, None, None, None, '2562503')] time used for this insertion : 0.014058113098144531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.31678175926208496 time spend to save output : 0.014351367950439453 total time spend for step 5 : 0.3311331272125244 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 (2562503) 2.42user 2.51system 0:11.30elapsed 43%CPU (0avgtext+0avgdata 159812maxresident)k 92784inputs+12336outputs (400major+78033minor)pagefaults 0swaps