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 : 3714437 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 (2660321) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2660321) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321194 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2660321'] with mtr_portfolio_ids : ['21321194'] and first list_photo_ids : [] new path : /proc/3714437/ Name: python3 Umask: 0002 State: R (running) Tgid: 3714437 Ngid: 0 Pid: 3714437 PPid: 3714436 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3714437 NSpid: 3714437 NSpgid: 3711854 NSsid: 3711854 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99064 kB VmRSS: 99064 kB RssAnon: 59764 kB RssFile: 39300 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 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: 131 nonvoluntary_ctxt_switches: 209 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3714437', 'Ngid': '0', 'Pid': '3714437', 'PPid': '3714436', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3714437', 'NSpid': '3714437', 'NSpgid': '3711854', 'NSsid': '3711854', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99064 kB', 'VmRSS': '99064 kB', 'RssAnon': '59764 kB', 'RssFile': '39300 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 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': '131', 'nonvoluntary_ctxt_switches': '209'} ('datou_batch_current', '3714437', '1106848', '0', '1106848', '865596', '99064', b'', 'marlene', '2660321') 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 (21321194) 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 (2660321 ) ) 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 (21321194) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343273556, 'portfolio_id': 21321194}, {'photo_id': 1343273231, 'portfolio_id': 21321194}, {'photo_id': 1343273178, 'portfolio_id': 21321194}, {'photo_id': 1343273173, 'portfolio_id': 21321194}, {'photo_id': 1343273155, 'portfolio_id': 21321194}, {'photo_id': 1343272259, 'portfolio_id': 21321194}, {'photo_id': 1343272232, 'portfolio_id': 21321194}, {'photo_id': 1343272064, 'portfolio_id': 21321194}, {'photo_id': 1343272060, 'portfolio_id': 21321194}, {'photo_id': 1343272055, 'portfolio_id': 21321194}, {'photo_id': 1343272014, 'portfolio_id': 21321194}, {'photo_id': 1343272009, 'portfolio_id': 21321194}, {'photo_id': 1343272006, 'portfolio_id': 21321194}, {'photo_id': 1343271984, 'portfolio_id': 21321194}, {'photo_id': 1343271980, 'portfolio_id': 21321194}, {'photo_id': 1343271931, 'portfolio_id': 21321194}, {'photo_id': 1343271926, 'portfolio_id': 21321194}, {'photo_id': 1343271922, 'portfolio_id': 21321194}, {'photo_id': 1343271918, 'portfolio_id': 21321194}, {'photo_id': 1343271875, 'portfolio_id': 21321194}, {'photo_id': 1343271873, 'portfolio_id': 21321194}, {'photo_id': 1343271866, 'portfolio_id': 21321194}, {'photo_id': 1343271863, 'portfolio_id': 21321194}, {'photo_id': 1343271860, 'portfolio_id': 21321194}, {'photo_id': 1343271850, 'portfolio_id': 21321194}, {'photo_id': 1343271825, 'portfolio_id': 21321194}, {'photo_id': 1343271822, 'portfolio_id': 21321194}, {'photo_id': 1343271819, 'portfolio_id': 21321194}, {'photo_id': 1343271812, 'portfolio_id': 21321194}, {'photo_id': 1343271808, 'portfolio_id': 21321194}, {'photo_id': 1343271785, 'portfolio_id': 21321194}, {'photo_id': 1343271781, 'portfolio_id': 21321194}, {'photo_id': 1343271777, 'portfolio_id': 21321194}, {'photo_id': 1343271773, 'portfolio_id': 21321194}, {'photo_id': 1343271751, 'portfolio_id': 21321194}, {'photo_id': 1343271748, 'portfolio_id': 21321194}, {'photo_id': 1343271745, 'portfolio_id': 21321194}, {'photo_id': 1343271741, 'portfolio_id': 21321194}, {'photo_id': 1343271704, 'portfolio_id': 21321194}, {'photo_id': 1343271701, 'portfolio_id': 21321194}, {'photo_id': 1343271697, 'portfolio_id': 21321194}, {'photo_id': 1343271566, 'portfolio_id': 21321194}, {'photo_id': 1343271514, 'portfolio_id': 21321194}, {'photo_id': 1343271511, 'portfolio_id': 21321194}, {'photo_id': 1343271402, 'portfolio_id': 21321194}, {'photo_id': 1343271397, 'portfolio_id': 21321194}, {'photo_id': 1343271388, 'portfolio_id': 21321194}, {'photo_id': 1343271383, 'portfolio_id': 21321194}, {'photo_id': 1343271013, 'portfolio_id': 21321194}, {'photo_id': 1343271002, 'portfolio_id': 21321194}] map_portfolio_id_photo_id: {21321194: [1343273556, 1343273231, 1343273178, 1343273173, 1343273155, 1343272259, 1343272232, 1343272064, 1343272060, 1343272055, 1343272014, 1343272009, 1343272006, 1343271984, 1343271980, 1343271931, 1343271926, 1343271922, 1343271918, 1343271875, 1343271873, 1343271866, 1343271863, 1343271860, 1343271850, 1343271825, 1343271822, 1343271819, 1343271812, 1343271808, 1343271785, 1343271781, 1343271777, 1343271773, 1343271751, 1343271748, 1343271745, 1343271741, 1343271704, 1343271701, 1343271697, 1343271566, 1343271514, 1343271511, 1343271402, 1343271397, 1343271388, 1343271383, 1343271013, 1343271002]} ##### 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.015638351440429688 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 01:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21321194) 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 : 21321194 get user id for portfolio 21321194 get sub ptf for main ptf 21321194, type 3726 and hashtags ['autre_refus', 'environnement', 'plastique', 'metal', 'Teint_Dans_La_Masse', 'flou', 'papier', 'Carton_gris', 'cartonnette', 'Carton_brun', 'kraft', 'mal_croppe'] 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`=21321194 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','cartonnette','Carton_brun','kraft','mal_croppe')) 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`=21321194 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','cartonnette','Carton_brun','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21321194, 'sub_port_id': 21321219, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904078, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'cartonnette': {'main_port_id': 21321194, 'sub_port_id': 21321220, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904079, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'autre_refus': {'main_port_id': 21321194, 'sub_port_id': 21321221, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904080, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'metal': {'main_port_id': 21321194, 'sub_port_id': 21321222, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904081, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'papier': {'main_port_id': 21321194, 'sub_port_id': 21321223, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904082, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'Carton_gris': {'main_port_id': 21321194, 'sub_port_id': 21321224, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904083, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'plastique': {'main_port_id': 21321194, 'sub_port_id': 21321225, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904084, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'mal_croppe': {'main_port_id': 21321194, 'sub_port_id': 21321226, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904085, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'flou': {'main_port_id': 21321194, 'sub_port_id': 21321227, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904086, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21321194, 'sub_port_id': 21321228, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904087, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'kraft': {'main_port_id': 21321194, 'sub_port_id': 21321229, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904088, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}, 'environnement': {'main_port_id': 21321194, 'sub_port_id': 21321230, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904089, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21321219 , 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=21321194 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 (21321219) result : ((1343271928,), (1343271968,), (1343271969,), (1343272031,), (1343272046,), (1343272282,), (1343272286,), (1343272287,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321220 , 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=21321194 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 (21321220) result : ((1343271595,), (1343271724,), (1343271725,), (1343271726,), (1343271830,), (1343271950,), (1343271951,), (1343271952,), (1343271964,), (1343271965,), (1343271966,), (1343272027,), (1343272028,), (1343272043,), (1343272044,), (1343272045,), (1343272279,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321221 , 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=21321194 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 (21321221) result : ((1343271584,), (1343271585,), (1343271717,), (1343271718,), (1343271719,), (1343271720,), (1343271721,), (1343271814,), (1343271815,), (1343271816,), (1343271818,), (1343271828,), (1343271925,), (1343271944,), (1343271945,), (1343271946,), (1343271947,), (1343271961,), (1343271962,), (1343271963,), (1343272023,), (1343272024,), (1343272025,), (1343272026,), (1343272033,), (1343272035,), (1343272036,), (1343272037,), (1343272038,), (1343272113,), (1343272253,), (1343272256,), (1343273215,), (1343273330,), (1343273331,), (1343273332,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321222 , 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=21321194 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 (21321222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321223 , 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=21321194 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 (21321223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321224 , 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=21321194 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 (21321224) result : ((1343271591,), (1343271722,), (1343271829,), (1343271948,), (1343272039,), (1343272040,), (1343272041,), (1343272268,), (1343273227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321225 , 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=21321194 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 (21321225) result : ((1343271970,), (1343272047,), (1343272048,), (1343272296,), (1343273237,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321226 , 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=21321194 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 (21321226) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321227 , 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=21321194 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 (21321227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321228 , 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=21321194 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 (21321228) result : ((1343271706,), (1343271707,), (1343271715,), (1343271960,), (1343272020,), (1343272021,), (1343272032,), (1343273317,), (1343273319,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321229 , 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=21321194 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 (21321229) result : ((1343271831,), (1343273244,), (1343273338,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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 21321230 , 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=21321194 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 (21321230) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21321194) result : ((1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) 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`=21321194 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','cartonnette','Carton_brun','kraft','mal_croppe')) 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`=21321194 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','environnement','plastique','metal','Teint_Dans_La_Masse','flou','papier','Carton_gris','cartonnette','Carton_brun','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 21321194, 'sub_port_id': 21321231, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904090, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'cartonnette': {'main_port_id': 21321194, 'sub_port_id': 21321232, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904091, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'autre_refus': {'main_port_id': 21321194, 'sub_port_id': 21321233, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904092, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'metal': {'main_port_id': 21321194, 'sub_port_id': 21321234, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904093, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'papier': {'main_port_id': 21321194, 'sub_port_id': 21321235, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904094, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'Carton_gris': {'main_port_id': 21321194, 'sub_port_id': 21321236, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904095, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'plastique': {'main_port_id': 21321194, 'sub_port_id': 21321237, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904096, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'mal_croppe': {'main_port_id': 21321194, 'sub_port_id': 21321238, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904097, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'flou': {'main_port_id': 21321194, 'sub_port_id': 21321239, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904098, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21321194, 'sub_port_id': 21321240, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904099, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'kraft': {'main_port_id': 21321194, 'sub_port_id': 21321241, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904100, 'last_updated_at': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 0, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}, 'environnement': {'main_port_id': 21321194, 'sub_port_id': 21321242, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13904101, 'last_updated_at': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 1, 0, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 0, 52, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21321242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21321230 lien utilise dans velours : https://www.fotonower.com/velours/21321231,21321232,21321233,21321234,21321235,21321236,21321237,21321238,21321239,21321240,21321241,21321242?tags=Carton_brun,cartonnette,autre_refus,metal,papier,Carton_gris,plastique,mal_croppe,flou,Teint_Dans_La_Masse,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21321194]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] map_info['map_portfolio_photo'] : {21321194: [1343273556, 1343273231, 1343273178, 1343273173, 1343273155, 1343272259, 1343272232, 1343272064, 1343272060, 1343272055, 1343272014, 1343272009, 1343272006, 1343271984, 1343271980, 1343271931, 1343271926, 1343271922, 1343271918, 1343271875, 1343271873, 1343271866, 1343271863, 1343271860, 1343271850, 1343271825, 1343271822, 1343271819, 1343271812, 1343271808, 1343271785, 1343271781, 1343271777, 1343271773, 1343271751, 1343271748, 1343271745, 1343271741, 1343271704, 1343271701, 1343271697, 1343271566, 1343271514, 1343271511, 1343271402, 1343271397, 1343271388, 1343271383, 1343271013, 1343271002]} final : False mtd_id 4302 list_pids : [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] Looping around the photos to save general results len do output : 1 /21321194. 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, '2660321') ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21321194', "{'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230}", None, None, None, None, '2660321'), ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321')] time used for this insertion : 0.014014720916748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6943845748901367 time spend to save output : 0.014399290084838867 total time spend for step 1 : 1.7087838649749756 step2:final Wed Mar 12 01:03:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21321194) 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 21321194 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343271013,1343271002,1343271402,1343271397,1343271388,1343271383,1343271566,1343271514,1343271511,1343271704,1343271701,1343271751,1343271697,1343271748,1343271745,1343271741,1343271785,1343271781,1343271777,1343271773,1343271825,1343271822,1343271819,1343271812,1343271808,1343271875,1343271873,1343271866,1343271863,1343271860,1343271850,1343271931,1343271926,1343271922,1343271918,1343271984,1343271980,1343272014,1343272009,1343272006,1343272064,1343272060,1343272055,1343272259,1343272232,1343273231,1343273178,1343273173,1343273155,1343273556); 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([21321194]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} new output for save of step final : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] map_info['map_portfolio_photo'] : {21321194: [1343273556, 1343273231, 1343273178, 1343273173, 1343273155, 1343272259, 1343272232, 1343272064, 1343272060, 1343272055, 1343272014, 1343272009, 1343272006, 1343271984, 1343271980, 1343271931, 1343271926, 1343271922, 1343271918, 1343271875, 1343271873, 1343271866, 1343271863, 1343271860, 1343271850, 1343271825, 1343271822, 1343271819, 1343271812, 1343271808, 1343271785, 1343271781, 1343271777, 1343271773, 1343271751, 1343271748, 1343271745, 1343271741, 1343271704, 1343271701, 1343271697, 1343271566, 1343271514, 1343271511, 1343271402, 1343271397, 1343271388, 1343271383, 1343271013, 1343271002]} final : False mtd_id 4302 list_pids : [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] Looping around the photos to save general results len do output : 5 /1343273556.Didn't retrieve data . /1343273231.Didn't retrieve data . /1343273178.Didn't retrieve data . /1343273173.Didn't retrieve data . /1343273155.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, '2660321') ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21321194', '1343273556', '0.06971826493354381', None, None, None, None, '2660321'), ('4302', '21321194', '1343273231', '0.06971826493354381', None, None, None, None, '2660321'), ('4302', '21321194', '1343273178', '0.06971826493354381', None, None, None, None, '2660321'), ('4302', '21321194', '1343273173', '0.06971826493354381', None, None, None, None, '2660321'), ('4302', '21321194', '1343273155', '0.06971826493354381', None, None, None, None, '2660321')] time used for this insertion : 0.015764236450195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0747976303100586 time spend to save output : 0.016156673431396484 total time spend for step 2 : 0.09095430374145508 step3:velours_tree Wed Mar 12 01:03:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21321194: [{'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230}]} input_args_next_step : {21321194: ()} output_args : {21321194: [{'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230}]} args : 21321194 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 : ({'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21321194) 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([21321194]) 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.4453239440917969 time spend to save output : 7.081031799316406e-05 total time spend for step 3 : 0.44539475440979004 step4:send_mail_cod Wed Mar 12 01:03:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} input_args_next_step : {1343273556: ()} output_args : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} args : 1343273556 depend.output_id : 0 input_args_next_step : {1343273556: ('0.06971826493354381',), 1343273231: ()} output_args : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} args : 1343273231 depend.output_id : 0 input_args_next_step : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ()} output_args : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} args : 1343273178 depend.output_id : 0 input_args_next_step : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ()} output_args : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} args : 1343273173 depend.output_id : 0 input_args_next_step : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ()} output_args : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',)} args : 1343273155 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 : {21321194: [{'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230}]} input_args_next_step : {1343273556: ('0.06971826493354381',), 1343273231: ('0.06971826493354381',), 1343273178: ('0.06971826493354381',), 1343273173: ('0.06971826493354381',), 1343273155: ('0.06971826493354381',), 21321194: ()} output_args : {21321194: [{'Carton_brun': 21321219, 'cartonnette': 21321220, 'autre_refus': 21321221, 'metal': 21321222, 'papier': 21321223, 'Carton_gris': 21321224, 'plastique': 21321225, 'mal_croppe': 21321226, 'flou': 21321227, 'Teint_Dans_La_Masse': 21321228, 'kraft': 21321229, 'environnement': 21321230}]} args : 21321194 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 :6, first value : ('0.06971826493354381',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21321194) 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 (1343273556,1343273231,1343273178,1343273173,1343273155) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343273155 begin to download photo : 1343273178 begin to download photo : 1343273556 download finish for photo 1343273556 download finish for photo 1343273178 begin to download photo : 1343273231 download finish for photo 1343273155 begin to download photo : 1343273173 download finish for photo 1343273173 download finish for photo 1343273231 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 : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21321194_12-03-2025_01_03_01.pdf 21321220 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=21321220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271964: '1741737271_2013511_1343271825_d1717d6e9785eaadbd3e0f7bb5dea938_rle_crop_3706882158_0.png', 1343272279: '1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893897_0.png', 1343272045: '1741737393_2014446_1343271850_361cda8e6d0c1d0b3d2f6b13f4533660_rle_crop_3706891724_0.png', 1343272044: '1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891550_0.png', 1343272043: '1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891551_0.png', 1343272028: '1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888564_0.png', 1343272027: '1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888558_0.png', 1343271966: '1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882202_0.png', 1343271965: '1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882186_0.png', 1343271595: '1741736892_2010580_1343271013_1475c31cdcee1772b3ac5e30658d024c_rle_crop_3706880057_0.png', 1343271952: '1741737252_2013209_1343271812_2b7915ae3d0ded30fc5182fb2e07dcf7_rle_crop_3706881806_0.png', 1343271951: '1741737252_2013209_1343271819_3d1343dbe0924d83f812ae019b1f7718_rle_crop_3706881791_0.png', 1343271950: '1741737252_2013209_1343271822_24a7ce706640e08e6d70df6ce28e5031_rle_crop_3706881765_0.png', 1343271830: '1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881283_0.png', 1343271726: '1741736973_2011607_1343271383_9ef386ffb8230c8f1b273761ea1069e7_rle_crop_3706880675_0.png', 1343271725: '1741736973_2011607_1343271397_214a2f9fc94126da686ecded3d0f4fd5_rle_crop_3706880642_0.png', 1343271724: '1741736973_2011607_1343271397_214a2f9fc94126da686ecded3d0f4fd5_rle_crop_3706880643_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ba7a90594174a63075e71defe9988dc4_517896.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e3d5f42e0138f3604f2387dd3997233a_72246300.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/98ab4c374e5cd88fdbf8d8371d855378_26759953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3e72427da384aae92e7c3e22fe9faca9_86226274.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e2528f2cc04fab5421d2112989f9184b_23424140.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/586eefd01187b9469f1765e33f1e6be7_24497531.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9d47d1c7fdcbdbf5bf93c7dd59b55122_18331727.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3d0d4ac19d4401209461266ab0b36ef5_13918823.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c39d98fb6fabc2b5b408e4753c7c1d9a_61699411.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a28aa26e13983d26d7571fb16d9f9853_77025701.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/86056b5ec35b1d876fb229c494380bd3_83549467.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/98316dbc518d6b2db2b63432025d0fc1_91534758.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/381c78c3f84b56a0706d5ac6d192ce49_69146111.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9fc051696f8a6543cb2529e4de8d5b56_7863765.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d2867f56d5380d0795f15e34e0118287_45442915.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f8dc9ca26154210c8f1951520dadaf5f_53978804.png change filename to text .imagette213212201741737781/ imagette213212201741737781/1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882186_0.png.png imagette213212201741737781/1741736973_2011607_1343271397_214a2f9fc94126da686ecded3d0f4fd5_rle_crop_3706880643_0.png.png imagette213212201741737781/1741737271_2013511_1343271825_d1717d6e9785eaadbd3e0f7bb5dea938_rle_crop_3706882158_0.png.png imagette213212201741737781/1741736892_2010580_1343271013_1475c31cdcee1772b3ac5e30658d024c_rle_crop_3706880057_0.png.png imagette213212201741737781/1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888564_0.png.png imagette213212201741737781/1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891550_0.png.png imagette213212201741737781/1741737252_2013209_1343271812_2b7915ae3d0ded30fc5182fb2e07dcf7_rle_crop_3706881806_0.png.png imagette213212201741737781/1741737393_2014446_1343271850_361cda8e6d0c1d0b3d2f6b13f4533660_rle_crop_3706891724_0.png.png imagette213212201741737781/1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891551_0.png.png imagette213212201741737781/1741737252_2013209_1343271819_3d1343dbe0924d83f812ae019b1f7718_rle_crop_3706881791_0.png.png imagette213212201741737781/1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881283_0.png.png imagette213212201741737781/1741736973_2011607_1343271397_214a2f9fc94126da686ecded3d0f4fd5_rle_crop_3706880642_0.png.png imagette213212201741737781/1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882202_0.png.png imagette213212201741737781/1741737252_2013209_1343271822_24a7ce706640e08e6d70df6ce28e5031_rle_crop_3706881765_0.png.png imagette213212201741737781/1741736973_2011607_1343271383_9ef386ffb8230c8f1b273761ea1069e7_rle_crop_3706880675_0.png.png imagette213212201741737781/1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893897_0.png.png imagette213212201741737781/1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888558_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/243dd269e372c7df89fa24fa56381a09_4726799.png imagette213212201741737781 21321221 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=21321221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343272037: '1741737393_2014446_1343271863_9a6cc2cec23057dcee5bc46a1cd25049_rle_crop_3706891602_0.png', 1343271963: '1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882207_0.png', 1343272023: '1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888559_0.png', 1343272024: '1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888566_0.png', 1343272025: '1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889435_0.png', 1343272026: '1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889438_0.png', 1343272033: '1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891558_0.png', 1343272035: '1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891575_0.png', 1343272036: '1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891574_0.png', 1343271962: '1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882192_0.png', 1343272038: '1741737393_2014446_1343271850_361cda8e6d0c1d0b3d2f6b13f4533660_rle_crop_3706891728_0.png', 1343272113: '1741737473_2015074_1343272014_53c091de8375e7517886c8dde7b0d275_rle_crop_3706893742_0.png', 1343272253: '1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893901_0.png', 1343272256: '1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893923_0.png', 1343273215: '1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894395_0.png', 1343273330: '1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894407_0.png', 1343273331: '1741737614_2016062_1343272060_a2aa3be32fc3e1edee3a04dd44b8ea5e_rle_crop_3706894426_0.png', 1343273332: '1741737614_2016062_1343272055_1811907a4b49b1bcb692c6c75bee77d6_rle_crop_3706894434_0.png', 1343271816: '1741737131_2012418_1343271741_452c2f6e9fb9e2ef5aefa82f85ea92f8_rle_crop_3706881172_0.png', 1343271585: '1741736892_2010580_1343271002_e799caf813e7e5ec6780703a42909275_rle_crop_3706880089_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5e3552b45cf7648fef7f83ac40617ace_95665725.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/74956339980fb9da98cdd168eced618d_62123274.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c28bdcbe16d42de7c8e64f75dfc9633e_16540844.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8f53f72729a6d29a3bda056a8ccfb813_99414735.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d1f1f3a20d1bba5f36562e08d69827b9_11047194.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8ce0ed635749f1882a5f01754ce7fc5f_14050531.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9ae4f3e1c404c6cd7f40309cb5c8a997_28621961.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/27a501be72534980ec5343c80159b450_92185121.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/392336359740dcd987cb6a2913465078_14587195.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e8f9cc7297b3bbd76bb610847e374250_67398351.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8f49e4d263b1bd7b033d9d22afca5919_37621602.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/987099ef659f95c44f6110681dcffd9f_89451383.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5857e3e04945b7f049e071cfb915f217_48169449.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1e10c053c2295ea2576f62f8ea471c43_49295261.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a6db15dccbea5045d807c8fe35b942e5_54755342.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d862ca1e110600db79a1fdb80ea0857e_3939314.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0c314dfe8513390251d0656fa56a4b8a_89249311.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3b2c5d90a501029398e6c92be0612c5c_61364745.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f63ba7e40ac5c0f0da18bb2d7fcdea16_24842248.png change filename to text .imagette213212211741737782/ imagette213212211741737782/1741737614_2016062_1343272060_a2aa3be32fc3e1edee3a04dd44b8ea5e_rle_crop_3706894426_0.png.png imagette213212211741737782/1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891574_0.png.png imagette213212211741737782/1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894395_0.png.png imagette213212211741737782/1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889435_0.png.png imagette213212211741737782/1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894407_0.png.png imagette213212211741737782/1741737614_2016062_1343272055_1811907a4b49b1bcb692c6c75bee77d6_rle_crop_3706894434_0.png.png imagette213212211741737782/1741736892_2010580_1343271002_e799caf813e7e5ec6780703a42909275_rle_crop_3706880089_0.png.png imagette213212211741737782/1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888566_0.png.png imagette213212211741737782/1741737393_2014446_1343271850_361cda8e6d0c1d0b3d2f6b13f4533660_rle_crop_3706891728_0.png.png imagette213212211741737782/1741737131_2012418_1343271741_452c2f6e9fb9e2ef5aefa82f85ea92f8_rle_crop_3706881172_0.png.png imagette213212211741737782/1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893901_0.png.png imagette213212211741737782/1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889438_0.png.png imagette213212211741737782/1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882192_0.png.png imagette213212211741737782/1741737473_2015074_1343272014_53c091de8375e7517886c8dde7b0d275_rle_crop_3706893742_0.png.png imagette213212211741737782/1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888559_0.png.png imagette213212211741737782/1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891575_0.png.png imagette213212211741737782/1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882207_0.png.png imagette213212211741737782/1741737393_2014446_1343271863_9a6cc2cec23057dcee5bc46a1cd25049_rle_crop_3706891602_0.png.png imagette213212211741737782/1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891558_0.png.png imagette213212211741737782/1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893923_0.png.png imagette213212221741737783/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/56c59d394f986252cf49080312541c8e_35215100.png imagette213212211741737782 21321222 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=21321222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213212221741737783 21321225 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=21321225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271970: '1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882199_0.png', 1343272047: '1741737393_2014446_1343271863_9a6cc2cec23057dcee5bc46a1cd25049_rle_crop_3706891606_0.png', 1343272048: '1741737393_2014446_1343271860_96219df5a934110d20133eb02d1b5dc6_rle_crop_3706891612_0.png', 1343272296: '1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893926_0.png', 1343273237: '1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894393_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2adc2aff72b98fb9ed7325d9dcc1fbc1_45741897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b33bb21d45416ab8de3cae8989555e43_25528964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/66aac5f6da21d2995887a617166c47a0_11063689.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/45c8cd75e3b3544afd166971df81b2aa_31751345.png change filename to text .imagette213212251741737783/ imagette213212251741737783/1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894393_0.png.png imagette213212251741737783/1741737393_2014446_1343271863_9a6cc2cec23057dcee5bc46a1cd25049_rle_crop_3706891606_0.png.png imagette213212251741737783/1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893926_0.png.png imagette213212251741737783/1741737393_2014446_1343271860_96219df5a934110d20133eb02d1b5dc6_rle_crop_3706891612_0.png.png imagette213212251741737783/1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882199_0.png.png imagette213212261741737783/ imagette213212271741737783/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/44f5042d3dd30924668b3f47f6cd93af_24018333.png imagette213212251741737783 21321226 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=21321226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213212261741737783 21321227 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=21321227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213212271741737783 21321229 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=21321229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271831: '1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881281_0.png', 1343273244: '1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894391_0.png', 1343273338: '1741737614_2016062_1343272060_a2aa3be32fc3e1edee3a04dd44b8ea5e_rle_crop_3706894417_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2aead9ae775f658f9d82f0548258a6f8_55772425.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f441ca6135b080ef14e4257d561990a6_20205893.png change filename to text .imagette213212291741737783/ imagette213212291741737783/1741737614_2016062_1343272060_a2aa3be32fc3e1edee3a04dd44b8ea5e_rle_crop_3706894417_0.png.png imagette213212291741737783/1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881281_0.png.png imagette213212291741737783/1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894391_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2dae9b10fef55f1607f5084aba2c63b5_17164972.png imagette213212291741737783 21321219 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=21321219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271928: '1741737266_2860038_1343271785_4298773fff7fd3852dbb30d068e01ca8_rle_crop_3706881634_0.png', 1343271968: '1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882193_0.png', 1343271969: '1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882204_0.png', 1343272031: '1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889437_0.png', 1343272046: '1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891569_0.png', 1343272282: '1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893905_0.png', 1343272286: '1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893904_0.png', 1343272287: '1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893921_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e1489133a3974c2f03997286ca53b6f1_36939536.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ca9aab6d2646d6676b9bbc08110e54df_4733148.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fc6e8eccc9cf4b9e8c8a45b466c42319_17465198.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0c40c80be93421a388298d058b51a84c_26568952.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4c5edecc980f38a0889ea565a69625e1_59041017.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/85928b72d7dd3c9a9b575036fa5014e2_90561152.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/6f05d5a2c9ee09b01c90851ce2901e8a_91843257.png change filename to text .imagette213212191741737784/ imagette213212191741737784/1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891569_0.png.png imagette213212191741737784/1741737271_2013511_1343271773_fd0c0b5b0ac283165fdaac84f9fe02fc_rle_crop_3706882204_0.png.png imagette213212191741737784/1741737491_2015250_1343272006_979839f26bea1e71f05dba83989add63_rle_crop_3706893921_0.png.png imagette213212191741737784/1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893905_0.png.png imagette213212191741737784/1741737271_2013511_1343271777_9c17d3421dc86f5d1b8daf86572a038b_rle_crop_3706882193_0.png.png imagette213212191741737784/1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893904_0.png.png imagette213212191741737784/1741737266_2860038_1343271785_4298773fff7fd3852dbb30d068e01ca8_rle_crop_3706881634_0.png.png imagette213212191741737784/1741737374_2014278_1343271918_7cbb08328ec12b1ad680df689d7cfc69_rle_crop_3706889437_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/245d72f80819c23609ac0bfb4fcb3109_23135566.png imagette213212191741737784 21321224 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=21321224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271591: '1741736892_2010580_1343271013_1475c31cdcee1772b3ac5e30658d024c_rle_crop_3706880059_0.png', 1343271722: '1741736973_2011607_1343271388_545b6f5f1264e36e8084e1d859e3606a_rle_crop_3706880657_0.png', 1343271829: '1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881277_0.png', 1343271948: '1741737252_2013209_1343271822_24a7ce706640e08e6d70df6ce28e5031_rle_crop_3706881762_0.png', 1343272039: '1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891571_0.png', 1343272040: '1741737393_2014446_1343271866_850f6de6f77921b0fadf9e4acc67e78d_rle_crop_3706891580_0.png', 1343272041: '1741737393_2014446_1343271860_96219df5a934110d20133eb02d1b5dc6_rle_crop_3706891611_0.png', 1343272268: '1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893895_0.png', 1343273227: '1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894388_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4d664bd325582489c1dc6cea6d798f94_99811331.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1098a24643a3949b9017d5ce6dee87c1_99244232.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c34d3d443d04d0a10422bdc824d14277_86865388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/87bac6c2dea1b3582bcc766990afd58e_79264315.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b8aa1531f1f5ab15bd7f366cd202893d_30944669.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d191f8c7328f957a971c2986d3a24853_11216406.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d0113c65a8bd521b4355432f0792683c_78993349.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9e9e5f9f38e678b654a0a181ab9bf8b4_41324386.png change filename to text .imagette213212241741737784/ imagette213212241741737784/1741737252_2013209_1343271822_24a7ce706640e08e6d70df6ce28e5031_rle_crop_3706881762_0.png.png imagette213212241741737784/1741737491_2015250_1343272009_bdf2c23491ccf6c01d95606e004abd0b_rle_crop_3706893895_0.png.png imagette213212241741737784/1741737393_2014446_1343271866_850f6de6f77921b0fadf9e4acc67e78d_rle_crop_3706891580_0.png.png imagette213212241741737784/1741737393_2014446_1343271860_96219df5a934110d20133eb02d1b5dc6_rle_crop_3706891611_0.png.png imagette213212241741737784/1741737152_2012561_1343271701_b01310c6f2c6f56c5eb308b5c7f67b11_rle_crop_3706881277_0.png.png imagette213212241741737784/1741737393_2014446_1343271873_46c8abd29853cee991b232b39ed555e6_rle_crop_3706891571_0.png.png imagette213212241741737784/1741736892_2010580_1343271013_1475c31cdcee1772b3ac5e30658d024c_rle_crop_3706880059_0.png.png imagette213212241741737784/1741736973_2011607_1343271388_545b6f5f1264e36e8084e1d859e3606a_rle_crop_3706880657_0.png.png imagette213212241741737784/1741737625_2864602_1343272064_c679812af88b636f37f6441428402ef3_rle_crop_3706894388_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/bc0e88964a415f553841fc0c565f55fa_49123437.png imagette213212241741737784 21321228 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=21321228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343271706: '1741736967_2851385_1343271511_3ee87a7d6e4728c943ceb1af5f72d7e9_rle_crop_3706880488_0.png', 1343271707: '1741736967_2851385_1343271511_3ee87a7d6e4728c943ceb1af5f72d7e9_rle_crop_3706880489_0.png', 1343271715: '1741736973_2011607_1343271566_d9db693110edc713bf1c7991e0bba05e_rle_crop_3706880632_0.png', 1343271960: '1741737271_2013511_1343271781_b47777b73e906604aee737b6284cd2ce_rle_crop_3706882174_0.png', 1343272020: '1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888563_0.png', 1343272021: '1741737374_2014278_1343271922_9523c178d4c4f773bdb73571b4ef73ea_rle_crop_3706889420_0.png', 1343272032: '1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891556_0.png', 1343273317: '1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894406_0.png', 1343273319: '1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894412_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/da862cbe58c8a37af0627a258b793b0f_17216288.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/eeabf82a88e5657181cb7b3a09238003_93029230.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4739131450e1c7c3514e3e3ea4b8dadd_94314609.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9ea3e41b701a59216d6e4895a709aea5_40560417.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/18be9a8e169f1a634eb9dd2853a78baa_9366205.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/90e668e138c9dfabe6c8f22a3086c18a_75990608.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4578438640a83ed1c9a329817831fec9_5961812.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/dd8d1be61d2f8544c18f92e275854d81_37682751.png change filename to text .imagette213212281741737785/ imagette213212281741737785/1741737374_2014278_1343271926_054603db8333370268b59294e3878ee5_rle_crop_3706888563_0.png.png imagette213212281741737785/1741736973_2011607_1343271566_d9db693110edc713bf1c7991e0bba05e_rle_crop_3706880632_0.png.png imagette213212281741737785/1741736967_2851385_1343271511_3ee87a7d6e4728c943ceb1af5f72d7e9_rle_crop_3706880489_0.png.png imagette213212281741737785/1741737393_2014446_1343271931_1727c0f4f4da295499b44aac19544b9c_rle_crop_3706891556_0.png.png imagette213212281741737785/1741737374_2014278_1343271922_9523c178d4c4f773bdb73571b4ef73ea_rle_crop_3706889420_0.png.png imagette213212281741737785/1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894406_0.png.png imagette213212281741737785/1741736967_2851385_1343271511_3ee87a7d6e4728c943ceb1af5f72d7e9_rle_crop_3706880488_0.png.png imagette213212281741737785/1741737614_2016062_1343272259_f4433ab4bedc72b0e69f459778bef3c8_rle_crop_3706894412_0.png.png imagette213212281741737785/1741737271_2013511_1343271781_b47777b73e906604aee737b6284cd2ce_rle_crop_3706882174_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8a9584f9744fd8eabfa1e9484ac03c28_55605328.png imagette213212281741737785 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21321194 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21321231,21321232,21321233,21321234,21321235,21321236,21321237,21321238,21321239,21321240,21321241,21321242?tags=Carton_brun,cartonnette,autre_refus,metal,papier,Carton_gris,plastique,mal_croppe,flou,Teint_Dans_La_Masse,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1343273556] : ('0.06971826493354381',) no score found for photo 1343273556 We are sending mail with results at report@fotonower.com args[1343273231] : ('0.06971826493354381',) no score found for photo 1343273231 We are sending mail with results at report@fotonower.com args[1343273178] : ('0.06971826493354381',) no score found for photo 1343273178 We are sending mail with results at report@fotonower.com args[1343273173] : ('0.06971826493354381',) no score found for photo 1343273173 We are sending mail with results at report@fotonower.com args[1343273155] : ('0.06971826493354381',) no score found for photo 1343273155 We are sending mail with results at report@fotonower.com refus_total : 0.06971826493354381 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=21321194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21321194]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] map_info['map_portfolio_photo'] : {21321194: [1343273556, 1343273231, 1343273178, 1343273173, 1343273155, 1343272259, 1343272232, 1343272064, 1343272060, 1343272055, 1343272014, 1343272009, 1343272006, 1343271984, 1343271980, 1343271931, 1343271926, 1343271922, 1343271918, 1343271875, 1343271873, 1343271866, 1343271863, 1343271860, 1343271850, 1343271825, 1343271822, 1343271819, 1343271812, 1343271808, 1343271785, 1343271781, 1343271777, 1343271773, 1343271751, 1343271748, 1343271745, 1343271741, 1343271704, 1343271701, 1343271697, 1343271566, 1343271514, 1343271511, 1343271402, 1343271397, 1343271388, 1343271383, 1343271013, 1343271002]} final : False mtd_id 4302 list_pids : [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] 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, '2660321') ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '21321194', '1343273556', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321')] time used for this insertion : 0.015122175216674805 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.821867942810059 time spend to save output : 0.015345335006713867 total time spend for step 4 : 4.8372132778167725 step5:split_time_score Wed Mar 12 01:03:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21321194'] 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 : [('21321194',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21321194) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343273556: {'path': 'temp/1741737781_3714437_1343273556_e9c7fb92379486ee270e407e52a6e949.jpg', 'extension': 'jpg'}, 1343273155: {'path': 'temp/1741737781_3714437_1343273155_99dc773d6789cdb099078ed5bf5faeeb.jpg', 'extension': 'jpg'}, 1343273173: {'path': 'temp/1741737781_3714437_1343273173_ee59704ac90c3bfadb0fcc83bb2d9175.jpg', 'extension': 'jpg'}, 1343273178: {'path': 'temp/1741737781_3714437_1343273178_39e028d5d25b333d08395b40e1156195.jpg', 'extension': 'jpg'}, 1343273231: {'path': 'temp/1741737781_3714437_1343273231_b97dc7b179959a4c9700ae6108c481c5.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 = 21321194; (('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 = 21321194 group by h (('00', 50),) 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=21321194 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 (21321194) 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 (21321194) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21321194 Nombre de photos uploadées : 50 / 23040 (0%) 12032025 21321194 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 12032025 21321194 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1343271013, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1475c31cdcee1772b3ac5e30658d024c.jpg', 'username': None, 'uploaded_at': 1741736799, 'text': 'image_12032025_00_45_15_10137.jpg'}, {'photo_id': 1343271002, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e799caf813e7e5ec6780703a42909275.jpg', 'username': None, 'uploaded_at': 1741736799, 'text': 'image_12032025_00_45_25_10133.jpg'}, {'photo_id': 1343271402, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/13d1acd4c45e3a1ad16c856d4358b4ba.jpg', 'username': None, 'uploaded_at': 1741736860, 'text': 'image_12032025_00_45_44_9138.jpg'}, {'photo_id': 1343271397, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/214a2f9fc94126da686ecded3d0f4fd5.jpg', 'username': None, 'uploaded_at': 1741736860, 'text': 'image_12032025_00_46_05_010145m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002199888229370117 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21321194, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02874159812927246 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668552, 'mtr_portfolio_id': 21320320, 'dashboard_result_id': 9371344, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668552, 'mtr_portfolio_id': 21320594, 'dashboard_result_id': 9371345, '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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, 'pht': 3726}}"}, {'dashboat_entry_day': 1660967, 'dashboard_run_id': 1668552, 'mtr_portfolio_id': 21321194, 'dashboard_result_id': 9371346, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, '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 = 21320320 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': 2660266, 'mtr_portfolio_id': 21320320, 'created_at': datetime.datetime(2025, 3, 12, 0, 33, 30), 'result': '0.08049526919943051', 'result_long': None, 'result_double': None}] Qualite : 0.08049526919943051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320320 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21320320%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320320 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21320320 and dashboard_run_id = 1668552 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`=21320320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9371344, 0.08049526919943051, "{'max_time_prod_two_photos': 0, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320355, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320356, 'pht': 3726}, 'url_report': ''}") 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 = 21320594 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': 2660283, 'mtr_portfolio_id': 21320594, 'created_at': datetime.datetime(2025, 3, 12, 0, 49), 'result': '0.0784371336807547', 'result_long': None, 'result_double': None}] Qualite : 0.0784371336807547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21320594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21320594 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_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, 'pht': 3726}}" where mtr_portfolio_id = 21320594 and dashboard_run_id = 1668552 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`=21320594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9371345, 0.0784371336807547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21320594_12-03-2025_00_33_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21320596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21320597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21320598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21320599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21320600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21320607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21320613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21320615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21320618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21320629, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21320630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21320631, '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 = 21321194 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': 2660321, 'mtr_portfolio_id': 21321194, 'created_at': datetime.datetime(2025, 3, 12, 1, 3), 'result': '0.06971826493354381', 'result_long': None, 'result_double': None}] Qualite : 0.06971826493354381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21321194 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21321194%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21321194 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21321194 and dashboard_run_id = 1668552 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`=21321194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9371346, 0.06971826493354381, "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21321219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21321220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21321221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21321222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21321223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21321224, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21321225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21321226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21321227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21321228, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21321229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21321230, 'pht': 3726}, 'url_report': ''}") 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 (21320320,21320594,21321194) result : ((1343266801,), (1343266825,), (1343266829,), (1343266833,), (1343266837,), (1343266960,), (1343266986,), (1343266989,), (1343266995,), (1343267244,), (1343267259,), (1343267284,), (1343267312,), (1343267384,), (1343267454,), (1343267477,), (1343267499,), (1343267710,), (1343267754,), (1343267825,), (1343267842,), (1343267860,), (1343267869,), (1343267941,), (1343267954,), (1343267970,), (1343267983,), (1343268012,), (1343268024,), (1343268333,), (1343268372,), (1343268398,), (1343268402,), (1343268793,), (1343268842,), (1343268861,), (1343269085,), (1343269093,), (1343269110,), (1343269159,), (1343269261,), (1343269196,), (1343269223,), (1343269227,), (1343269246,), (1343269252,), (1343269316,), (1343269359,), (1343269409,), (1343269674,), (1343269678,), (1343269682,), (1343269791,), (1343269807,), (1343269810,), (1343269861,), (1343269864,), (1343269867,), (1343269871,), (1343269875,), (1343270014,), (1343270017,), (1343270020,), (1343270023,), (1343270025,), (1343270027,), (1343270050,), (1343270053,), (1343270079,), (1343270082,), (1343270085,), (1343270088,), (1343270091,), (1343270092,), (1343270140,), (1343270158,), (1343270161,), (1343270163,), (1343270282,), (1343270330,), (1343270350,), (1343270355,), (1343270369,), (1343270516,), (1343270522,), (1343270526,), (1343270530,), (1343270534,), (1343270642,), (1343270649,), (1343270662,), (1343270678,), (1343270769,), (1343270773,), (1343270776,), (1343270779,), (1343270781,), (1343270848,), (1343270850,), (1343270853,), (1343270959,), (1343270961,), (1343270963,), (1343270965,), (1343271016,), (1343271002,), (1343271013,), (1343271383,), (1343271388,), (1343271397,), (1343271402,), (1343271511,), (1343271514,), (1343271566,), (1343271697,), (1343271701,), (1343271704,), (1343271741,), (1343271745,), (1343271748,), (1343271751,), (1343271773,), (1343271777,), (1343271781,), (1343271785,), (1343271808,), (1343271812,), (1343271819,), (1343271822,), (1343271825,), (1343271850,), (1343271860,), (1343271863,), (1343271866,), (1343271873,), (1343271875,), (1343271918,), (1343271922,), (1343271926,), (1343271931,), (1343271980,), (1343271984,), (1343272006,), (1343272009,), (1343272014,), (1343272055,), (1343272060,), (1343272064,), (1343272232,), (1343272259,), (1343273155,), (1343273173,), (1343273178,), (1343273231,), (1343273556,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21321194]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] map_info['map_portfolio_photo'] : {21321194: [1343273556, 1343273231, 1343273178, 1343273173, 1343273155, 1343272259, 1343272232, 1343272064, 1343272060, 1343272055, 1343272014, 1343272009, 1343272006, 1343271984, 1343271980, 1343271931, 1343271926, 1343271922, 1343271918, 1343271875, 1343271873, 1343271866, 1343271863, 1343271860, 1343271850, 1343271825, 1343271822, 1343271819, 1343271812, 1343271808, 1343271785, 1343271781, 1343271777, 1343271773, 1343271751, 1343271748, 1343271745, 1343271741, 1343271704, 1343271701, 1343271697, 1343271566, 1343271514, 1343271511, 1343271402, 1343271397, 1343271388, 1343271383, 1343271013, 1343271002]} final : True mtd_id 4302 list_pids : [1343273556, 1343273231, 1343273178, 1343273173, 1343273155] Looping around the photos to save general results len do output : 1 /21321194Didn'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, '2660321') ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321') ('4302', None, None, None, None, None, None, None, '2660321') ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21321194', 'None', None, None, None, None, '2660321'), ('4302', '21321194', '1343273556', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273231', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273178', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273173', None, None, None, None, None, '2660321'), ('4302', '21321194', '1343273155', None, None, None, None, None, '2660321')] time used for this insertion : 0.013558149337768555 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6851813793182373 time spend to save output : 0.01382756233215332 total time spend for step 5 : 2.6990089416503906 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 (2660321) 2.05user 2.13system 0:14.32elapsed 29%CPU (0avgtext+0avgdata 150268maxresident)k 18952inputs+11208outputs (197major+59992minor)pagefaults 0swaps