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 : 2079073 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 (2634453) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2634453) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030842 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2634453'] with mtr_portfolio_ids : ['21030842'] and first list_photo_ids : [] new path : /proc/2079073/ Name: python3 Umask: 0002 State: R (running) Tgid: 2079073 Ngid: 0 Pid: 2079073 PPid: 2079072 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2079073 NSpid: 2079073 NSpgid: 2077415 NSsid: 2077415 VmPeak: 385956 kB VmSize: 385956 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99064 kB VmRSS: 99064 kB RssAnon: 59804 kB RssFile: 39260 kB RssShmem: 0 kB VmData: 144704 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 209 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2079073', 'Ngid': '0', 'Pid': '2079073', 'PPid': '2079072', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2079073', 'NSpid': '2079073', 'NSpgid': '2077415', 'NSsid': '2077415', 'VmPeak': '385956 kB', 'VmSize': '385956 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99064 kB', 'VmRSS': '99064 kB', 'RssAnon': '59804 kB', 'RssFile': '39260 kB', 'RssShmem': '0 kB', 'VmData': '144704 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '209'} ('datou_batch_current', '2079073', '385956', '0', '385956', '144704', '99064', b'', 'marlene', '2634453') 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 (21030842) 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 (2634453 ) ) 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 (21030842) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340890572, 'portfolio_id': 21030842}, {'photo_id': 1340890569, 'portfolio_id': 21030842}, {'photo_id': 1340890558, 'portfolio_id': 21030842}, {'photo_id': 1340890544, 'portfolio_id': 21030842}, {'photo_id': 1340890542, 'portfolio_id': 21030842}, {'photo_id': 1340890537, 'portfolio_id': 21030842}, {'photo_id': 1340890512, 'portfolio_id': 21030842}, {'photo_id': 1340890509, 'portfolio_id': 21030842}, {'photo_id': 1340890505, 'portfolio_id': 21030842}, {'photo_id': 1340890465, 'portfolio_id': 21030842}, {'photo_id': 1340890399, 'portfolio_id': 21030842}, {'photo_id': 1340890392, 'portfolio_id': 21030842}, {'photo_id': 1340890388, 'portfolio_id': 21030842}, {'photo_id': 1340890385, 'portfolio_id': 21030842}, {'photo_id': 1340890344, 'portfolio_id': 21030842}, {'photo_id': 1340890338, 'portfolio_id': 21030842}, {'photo_id': 1340890335, 'portfolio_id': 21030842}, {'photo_id': 1340890330, 'portfolio_id': 21030842}, {'photo_id': 1340890287, 'portfolio_id': 21030842}, {'photo_id': 1340890280, 'portfolio_id': 21030842}, {'photo_id': 1340890276, 'portfolio_id': 21030842}, {'photo_id': 1340890272, 'portfolio_id': 21030842}, {'photo_id': 1340890144, 'portfolio_id': 21030842}, {'photo_id': 1340890133, 'portfolio_id': 21030842}, {'photo_id': 1340890129, 'portfolio_id': 21030842}, {'photo_id': 1340890125, 'portfolio_id': 21030842}, {'photo_id': 1340890052, 'portfolio_id': 21030842}, {'photo_id': 1340890040, 'portfolio_id': 21030842}, {'photo_id': 1340889969, 'portfolio_id': 21030842}, {'photo_id': 1340889947, 'portfolio_id': 21030842}, {'photo_id': 1340889852, 'portfolio_id': 21030842}, {'photo_id': 1340889845, 'portfolio_id': 21030842}, {'photo_id': 1340889832, 'portfolio_id': 21030842}, {'photo_id': 1340889822, 'portfolio_id': 21030842}, {'photo_id': 1340889633, 'portfolio_id': 21030842}, {'photo_id': 1340889628, 'portfolio_id': 21030842}, {'photo_id': 1340889626, 'portfolio_id': 21030842}, {'photo_id': 1340889624, 'portfolio_id': 21030842}] map_portfolio_id_photo_id: {21030842: [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465, 1340890399, 1340890392, 1340890388, 1340890385, 1340890344, 1340890338, 1340890335, 1340890330, 1340890287, 1340890280, 1340890276, 1340890272, 1340890144, 1340890133, 1340890129, 1340890125, 1340890052, 1340890040, 1340889969, 1340889947, 1340889852, 1340889845, 1340889832, 1340889822, 1340889633, 1340889628, 1340889626, 1340889624]} ##### 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.015094280242919922 #### 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 Tue Mar 4 23:10:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21030842) 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 : 21030842 get user id for portfolio 21030842 get sub ptf for main ptf 21030842, type 3726 and hashtags ['environnement', 'plastique', 'mal_croppe', 'kraft', 'Carton_gris', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'metal', 'flou', 'papier', 'autre_refus'] 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`=21030842 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','kraft','Carton_gris','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','papier','autre_refus')) 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`=21030842 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','kraft','Carton_gris','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21030842, 'sub_port_id': 21030871, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645785, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21030842, 'sub_port_id': 21030872, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645786, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'kraft': {'main_port_id': 21030842, 'sub_port_id': 21030873, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645787, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'papier': {'main_port_id': 21030842, 'sub_port_id': 21030874, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645788, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'flou': {'main_port_id': 21030842, 'sub_port_id': 21030875, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645789, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'cartonnette': {'main_port_id': 21030842, 'sub_port_id': 21030876, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645790, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'Carton_brun': {'main_port_id': 21030842, 'sub_port_id': 21030877, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645791, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'metal': {'main_port_id': 21030842, 'sub_port_id': 21030878, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645792, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'mal_croppe': {'main_port_id': 21030842, 'sub_port_id': 21030879, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645793, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'Carton_gris': {'main_port_id': 21030842, 'sub_port_id': 21030880, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645794, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'environnement': {'main_port_id': 21030842, 'sub_port_id': 21030881, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645795, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}, 'plastique': {'main_port_id': 21030842, 'sub_port_id': 21030882, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645796, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21030871 , 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=21030842 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 (21030871) result : ((1340890310,), (1340890311,), (1340890332,), (1340890333,), (1340890370,), (1340890371,), (1340890372,), (1340890373,), (1340890374,), (1340890375,), (1340890440,), (1340890441,), (1340890463,), (1340890470,), (1340890471,), (1340890473,), (1340890506,), (1340890520,), (1340890521,), (1340890522,), (1340890551,), (1340890552,), (1340890553,), (1340890554,), (1340890555,), (1340890556,), (1340890557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030872 , 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=21030842 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 (21030872) result : ((1340890362,), (1340890364,), (1340890449,), (1340890517,), (1340890518,), (1340890546,), (1340890547,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030873 , 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=21030842 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 (21030873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030874 , 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=21030842 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 (21030874) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030875 , 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=21030842 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 (21030875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030876 , 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=21030842 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 (21030876) result : ((1340890314,), (1340890377,), (1340890378,), (1340890380,), (1340890446,), (1340890498,), (1340890560,), (1340890561,), (1340890562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030877 , 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=21030842 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 (21030877) result : ((1340890381,), (1340890499,), (1340890523,), (1340890565,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030878 , 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=21030842 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 (21030878) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030879 , 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=21030842 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 (21030879) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030880 , 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=21030842 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 (21030880) result : ((1340890313,), (1340890336,), (1340890445,), (1340890497,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030881 , 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=21030842 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 (21030881) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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 21030882 , 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=21030842 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 (21030882) result : ((1340890316,), (1340890317,), (1340890382,), (1340890448,), (1340890450,), (1340890568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21030842) result : ((1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) 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`=21030842 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','kraft','Carton_gris','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','papier','autre_refus')) 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`=21030842 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','kraft','Carton_gris','cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21030842, 'sub_port_id': 21030883, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645797, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21030842, 'sub_port_id': 21030884, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645798, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'kraft': {'main_port_id': 21030842, 'sub_port_id': 21030885, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645799, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'papier': {'main_port_id': 21030842, 'sub_port_id': 21030886, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645800, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'flou': {'main_port_id': 21030842, 'sub_port_id': 21030887, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645801, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'cartonnette': {'main_port_id': 21030842, 'sub_port_id': 21030888, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645802, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'Carton_brun': {'main_port_id': 21030842, 'sub_port_id': 21030889, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645803, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'metal': {'main_port_id': 21030842, 'sub_port_id': 21030890, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645804, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'mal_croppe': {'main_port_id': 21030842, 'sub_port_id': 21030891, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645805, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'Carton_gris': {'main_port_id': 21030842, 'sub_port_id': 21030892, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645806, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'environnement': {'main_port_id': 21030842, 'sub_port_id': 21030893, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645807, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}, 'plastique': {'main_port_id': 21030842, 'sub_port_id': 21030894, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13645808, 'last_updated_at': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 4, 23, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 4, 23, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030878 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030891,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030879 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21030894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21030882 lien utilise dans velours : https://www.fotonower.com/velours/21030883,21030884,21030885,21030886,21030887,21030888,21030889,21030890,21030891,21030892,21030893,21030894?tags=autre_refus,Teint_Dans_La_Masse,kraft,papier,flou,cartonnette,Carton_brun,metal,mal_croppe,Carton_gris,environnement,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21030842]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] map_info['map_portfolio_photo'] : {21030842: [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465, 1340890399, 1340890392, 1340890388, 1340890385, 1340890344, 1340890338, 1340890335, 1340890330, 1340890287, 1340890280, 1340890276, 1340890272, 1340890144, 1340890133, 1340890129, 1340890125, 1340890052, 1340890040, 1340889969, 1340889947, 1340889852, 1340889845, 1340889832, 1340889822, 1340889633, 1340889628, 1340889626, 1340889624]} final : False mtd_id 4302 list_pids : [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] Looping around the photos to save general results len do output : 1 /21030842. 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, '2634453') ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21030842', "{'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882}", None, None, None, None, '2634453'), ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453')] time used for this insertion : 0.013615846633911133 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5058801174163818 time spend to save output : 0.013994216918945312 total time spend for step 1 : 1.5198743343353271 step2:final Tue Mar 4 23:10:32 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 (21030842) 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 21030842 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340889633,1340889628,1340889626,1340889624,1340889852,1340889845,1340889832,1340889822,1340890052,1340890040,1340889969,1340889947,1340890144,1340890133,1340890129,1340890125,1340890287,1340890280,1340890276,1340890272,1340890344,1340890338,1340890335,1340890330,1340890399,1340890392,1340890388,1340890385,1340890512,1340890509,1340890505,1340890465,1340890572,1340890569,1340890558,1340890544,1340890542,1340890537); 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([21030842]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} new output for save of step final : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] map_info['map_portfolio_photo'] : {21030842: [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465, 1340890399, 1340890392, 1340890388, 1340890385, 1340890344, 1340890338, 1340890335, 1340890330, 1340890287, 1340890280, 1340890276, 1340890272, 1340890144, 1340890133, 1340890129, 1340890125, 1340890052, 1340890040, 1340889969, 1340889947, 1340889852, 1340889845, 1340889832, 1340889822, 1340889633, 1340889628, 1340889626, 1340889624]} final : False mtd_id 4302 list_pids : [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] Looping around the photos to save general results len do output : 10 /1340890572.Didn't retrieve data . /1340890569.Didn't retrieve data . /1340890558.Didn't retrieve data . /1340890544.Didn't retrieve data . /1340890542.Didn't retrieve data . /1340890537.Didn't retrieve data . /1340890512.Didn't retrieve data . /1340890509.Didn't retrieve data . /1340890505.Didn't retrieve data . /1340890465.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, '2634453') ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21030842', '1340890572', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890569', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890558', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890544', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890542', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890537', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890512', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890509', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890505', '0.06899059520496567', None, None, None, None, '2634453'), ('4302', '21030842', '1340890465', '0.06899059520496567', None, None, None, None, '2634453')] time used for this insertion : 0.013137102127075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06736159324645996 time spend to save output : 0.01372218132019043 total time spend for step 2 : 0.08108377456665039 step3:velours_tree Tue Mar 4 23:10:32 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 : {21030842: [{'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882}]} input_args_next_step : {21030842: ()} output_args : {21030842: [{'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882}]} args : 21030842 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 : ({'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21030842) 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([21030842]) 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.4230959415435791 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.42315030097961426 step4:send_mail_cod Tue Mar 4 23:10:32 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 : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} input_args_next_step : {1340890572: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890572 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890569 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890558 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890544 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890542 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890537 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890512 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890509 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890505 depend.output_id : 0 input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ()} output_args : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',)} args : 1340890465 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 : {21030842: [{'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882}]} input_args_next_step : {1340890572: ('0.06899059520496567',), 1340890569: ('0.06899059520496567',), 1340890558: ('0.06899059520496567',), 1340890544: ('0.06899059520496567',), 1340890542: ('0.06899059520496567',), 1340890537: ('0.06899059520496567',), 1340890512: ('0.06899059520496567',), 1340890509: ('0.06899059520496567',), 1340890505: ('0.06899059520496567',), 1340890465: ('0.06899059520496567',), 21030842: ()} output_args : {21030842: [{'autre_refus': 21030871, 'Teint_Dans_La_Masse': 21030872, 'kraft': 21030873, 'papier': 21030874, 'flou': 21030875, 'cartonnette': 21030876, 'Carton_brun': 21030877, 'metal': 21030878, 'mal_croppe': 21030879, 'Carton_gris': 21030880, 'environnement': 21030881, 'plastique': 21030882}]} args : 21030842 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 :11, first value : ('0.06899059520496567',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21030842) 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 (1340890572,1340890569,1340890558,1340890544,1340890542,1340890537,1340890512,1340890509,1340890505,1340890465) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340890465 begin to download photo : 1340890512 begin to download photo : 1340890544 begin to download photo : 1340890572 download finish for photo 1340890465 begin to download photo : 1340890505 download finish for photo 1340890572 download finish for photo 1340890512 begin to download photo : 1340890537 download finish for photo 1340890544 begin to download photo : 1340890558 download finish for photo 1340890558 begin to download photo : 1340890569 download finish for photo 1340890537 begin to download photo : 1340890542 download finish for photo 1340890505 begin to download photo : 1340890509 download finish for photo 1340890542 download finish for photo 1340890569 download finish for photo 1340890509 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 : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21030842_04-03-2025_23_10_32.pdf 21030871 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=21030871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890470: '1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746932_0.png', 1340890557: '1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_bib_crop_3693745375_0.jpg', 1340890556: '1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693748217_0.png', 1340890555: '1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745366_0.png', 1340890554: '1741126092_754866_1340889832_ad9ca417ccc936e424538319d384e3a7_rle_crop_3693745356_0.png', 1340890553: '1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745330_0.png', 1340890552: '1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745196_0.png', 1340890551: '1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745188_0.png', 1340890522: '1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747498_0.png', 1340890521: '1741126053_754252_1340890129_80d481a26cc777e6b508abc1a948738e_rle_crop_3693747304_0.png', 1340890520: '1741126053_754252_1340890287_bdc9177b1969f76e79205c8a6fc00407_rle_crop_3693747159_0.png', 1340890506: '1741126073_754555_1340889852_afacdb1e08818f9ab327f6816e4e45b2_rle_crop_3693746660_0.png', 1340890473: '1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746979_0.png', 1340890471: '1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746971_0.png', 1340890310: '1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744376_0.png', 1340890463: '1741126031_753964_1340890280_a83aae2e734d68f7a939fba14725acb5_rle_crop_3693746846_0.png', 1340890441: '1741125994_753294_1340889624_4655f196fcb5caf6bcfb135a190c3492_rle_crop_3693744387_0.png', 1340890440: '1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744376_0.png', 1340890375: '1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745375_0.png', 1340890374: '1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/04dbe93fbaa354e285e19d4f8e53f77b_56286959.png change filename to text .wget -O 2.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9f8a09240bf85133fb8a07fb000ff97e_12209839.jpg change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/64680b05430b05eee1c18a4cf864ef61_90866953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9960e075382d02a37058ebc34dd618d4_21393076.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/3a6cea6b205589a519dd93c22e149b9f_57884003.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/94c81a5a1955f7eed7edb230a42334df_95563175.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/425819c72505923a31e14bc97879c787_79478719.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/44ee19e21408fe70703c7aef637d4f91_4550501.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/6483cc6f9c5a604f63d55be41d9d0ff9_5807293.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c4820acba59d8e2fc659430fba540831_86805402.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4ea8fe692ba75248d8c4e8cf7598ee29_28826221.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/842ffdac6caab370a4ea7ed6595b4755_32460411.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/0b866ae4eacaa439e5e61b3a4473f719_41705103.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/44f2a2444b738affd184efeeb20c5568_88761033.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dde0b01d49775fb7e746061d1926675c_52308717.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c8f27a6067cdcbefdba4203f1c1d83da_85835499.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7028762d315ad75444c6951d4a8607b5_28303011.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dde0b01d49775fb7e746061d1926675c_85963774.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/57b13978ad8354dd98c642808dfecb9a_9926458.png change filename to text .imagette210308711741126232/ imagette210308711741126232/1741126053_754252_1340890287_bdc9177b1969f76e79205c8a6fc00407_rle_crop_3693747159_0.png.png imagette210308711741126232/1741126092_754866_1340889832_ad9ca417ccc936e424538319d384e3a7_rle_crop_3693745356_0.png.png imagette210308711741126232/1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745330_0.png.png imagette210308711741126232/1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744376_0.png.png imagette210308711741126232/1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744376_0.png.png imagette210308711741126232/1741125994_753294_1340889624_4655f196fcb5caf6bcfb135a190c3492_rle_crop_3693744387_0.png.png imagette210308711741126232/1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746979_0.png.png imagette210308711741126232/1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745366_0.png.png imagette210308711741126232/1741126053_754252_1340890129_80d481a26cc777e6b508abc1a948738e_rle_crop_3693747304_0.png.png imagette210308711741126232/1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746971_0.png.png imagette210308711741126232/1741126031_753964_1340890280_a83aae2e734d68f7a939fba14725acb5_rle_crop_3693746846_0.png.png imagette210308711741126232/1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745375_0.png.png imagette210308711741126232/1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747498_0.png.png imagette210308711741126232/1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745188_0.png.png imagette210308711741126232/1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746932_0.png.png imagette210308711741126232/1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745196_0.png.png imagette210308711741126232/1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745366_0.png.png imagette210308711741126232/1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_bib_crop_3693745375_0.jpg.jpg imagette210308711741126232/1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693748217_0.png.png imagette210308711741126232/1741126073_754555_1340889852_afacdb1e08818f9ab327f6816e4e45b2_rle_crop_3693746660_0.png.png imagette210308731741126234/ imagette210308751741126234/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9960e075382d02a37058ebc34dd618d4_56557553.png imagette210308711741126232 21030873 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=21030873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210308731741126234 21030875 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=21030875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210308751741126234 21030876 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=21030876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890314: '1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744372_0.png', 1340890377: '1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745184_0.png', 1340890378: '1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745325_0.png', 1340890380: '1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745322_0.png', 1340890446: '1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744372_0.png', 1340890498: '1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746974_0.png', 1340890560: '1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745184_0.png', 1340890561: '1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745325_0.png', 1340890562: '1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745322_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e4b75b5b77011dc27967d121021c1cc9_18962374.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/edb62651969818a10d1983fb79435f41_27162875.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8709660ef8c7794e77a75c3ab221a15d_96255654.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/37e4906293ded6264bfbba0e9a73b3cf_94351850.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/e4b75b5b77011dc27967d121021c1cc9_25578347.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/ba7ace4b597b221c05ff37ac6eec406a_3549424.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/edb62651969818a10d1983fb79435f41_62276179.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/8709660ef8c7794e77a75c3ab221a15d_20177581.png change filename to text .imagette210308761741126234/ imagette210308761741126234/1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744372_0.png.png imagette210308761741126234/1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744372_0.png.png imagette210308761741126234/1741126031_753964_1340890272_548f24cc86abd2d05af33db729890cad_rle_crop_3693746974_0.png.png imagette210308761741126234/1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745322_0.png.png imagette210308761741126234/1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745184_0.png.png imagette210308761741126234/1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745322_0.png.png imagette210308761741126234/1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745325_0.png.png imagette210308761741126234/1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745184_0.png.png imagette210308761741126234/1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745325_0.png.png imagette210308781741126234/ imagette210308791741126234/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/37e4906293ded6264bfbba0e9a73b3cf_92915441.png imagette210308761741126234 21030878 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=21030878 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210308781741126234 21030879 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=21030879 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette210308791741126234 21030882 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=21030882 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890316: '1741125894_751028_1340889633_38737b2fbf055654e141b68807d18921_rle_crop_3693744255_0.png', 1340890317: '1741125894_751028_1340889628_9847a7327aa02129017c77c457b256d5_rle_crop_3693744268_0.png', 1340890382: '1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745199_0.png', 1340890448: '1741125994_753294_1340889633_38737b2fbf055654e141b68807d18921_rle_crop_3693744255_0.png', 1340890450: '1741125994_753294_1340889628_9847a7327aa02129017c77c457b256d5_bib_crop_3693744268_0.jpg', 1340890568: '1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745199_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/71b954c2ae40193a2e4d824c0dafcec3_72257908.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4a2420510a893cf8db54032aa8c0bc4b_44973325.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/64eae2a5bd06fbf6ad87b8753654e03d_1933962.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/71b954c2ae40193a2e4d824c0dafcec3_19957788.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dc64c3e7194dae13b31b45c0fe905fa8_53187941.jpg change filename to text .imagette210308821741126234/ imagette210308821741126234/1741125894_751028_1340889628_9847a7327aa02129017c77c457b256d5_rle_crop_3693744268_0.png.png imagette210308821741126234/1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745199_0.png.png imagette210308821741126234/1741125894_751028_1340889633_38737b2fbf055654e141b68807d18921_rle_crop_3693744255_0.png.png imagette210308821741126234/1741125994_753294_1340889628_9847a7327aa02129017c77c457b256d5_bib_crop_3693744268_0.jpg.jpg imagette210308821741126234/1741125994_753294_1340889633_38737b2fbf055654e141b68807d18921_rle_crop_3693744255_0.png.png imagette210308821741126234/1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745199_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/64eae2a5bd06fbf6ad87b8753654e03d_64117912.png imagette210308821741126234 21030872 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=21030872 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890362: '1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745193_0.png', 1340890364: '1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745369_0.png', 1340890449: '1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746931_0.png', 1340890517: '1741126053_754252_1340890133_fc54a91632a4473c944dd00925faac72_rle_crop_3693747168_0.png', 1340890518: '1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747491_0.png', 1340890546: '1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745193_0.png', 1340890547: '1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fb88bf6a71751a4553f474542dd6ecc2_37691558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f2fca318b31d743496a6a05dcc3ef3a9_97283151.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1a226fd873f913cbea76098e67895cd5_11844456.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/74fcb5a3497dee6f016eeecf13da5b39_80336668.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/d88fa1ae5533c2b3076476a09d0e9247_64075907.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/fb88bf6a71751a4553f474542dd6ecc2_8181257.png change filename to text .imagette210308721741126235/ imagette210308721741126235/1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746931_0.png.png imagette210308721741126235/1741126053_754252_1340890133_fc54a91632a4473c944dd00925faac72_rle_crop_3693747168_0.png.png imagette210308721741126235/1741126092_754866_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745369_0.png.png imagette210308721741126235/1741126092_754866_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745193_0.png.png imagette210308721741126235/1741125951_752411_1340890052_6efd500f25b42dfd06eebc2ef04fbf2f_rle_crop_3693745193_0.png.png imagette210308721741126235/1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747491_0.png.png imagette210308721741126235/1741125951_752411_1340889822_16788e2c8d74a0ca3846cab0acd7e9de_rle_crop_3693745369_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/f2fca318b31d743496a6a05dcc3ef3a9_77525612.png imagette210308721741126235 21030877 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=21030877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890381: '1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745328_0.png', 1340890499: '1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746927_0.png', 1340890523: '1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747503_0.png', 1340890565: '1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745328_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/18d879859e02a77c5e3cb9779ec53725_33322439.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/420d70f4f0dead939b7a3576bf8ba6fc_15709004.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/dfe667bfbdadb5b368882f4dad106ae8_26017043.png change filename to text .imagette210308771741126235/ imagette210308771741126235/1741126092_754866_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745328_0.png.png imagette210308771741126235/1741126053_754252_1340890125_54700a5a604fc930223454ef8a9b1e2f_rle_crop_3693747503_0.png.png imagette210308771741126235/1741125951_752411_1340889845_e08e982107cc7d3f931663575d1efb59_rle_crop_3693745328_0.png.png imagette210308771741126235/1741126031_753964_1340890276_e0d3d13fcbf93b323b8b8c361e12a063_rle_crop_3693746927_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/18d879859e02a77c5e3cb9779ec53725_90514411.png imagette210308771741126235 21030880 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=21030880 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340890313: '1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744371_0.png', 1340890336: '1741125934_752129_1340890040_0552e933b1f73eb2809d019c2f4919ab_rle_crop_3693744397_0.png', 1340890445: '1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744371_0.png', 1340890497: '1741126031_753964_1340890280_a83aae2e734d68f7a939fba14725acb5_rle_crop_3693746841_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c9bfa9e5dcdb688232efb7c4079c08de_91525761.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/1d9351ffca45a23b6144a63d5264f772_3326333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/c9bfa9e5dcdb688232efb7c4079c08de_54533889.png change filename to text .imagette210308801741126235/ imagette210308801741126235/1741125934_752129_1340890040_0552e933b1f73eb2809d019c2f4919ab_rle_crop_3693744397_0.png.png imagette210308801741126235/1741125994_753294_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744371_0.png.png imagette210308801741126235/1741125894_751028_1340889626_2e15e29ef8bbfb67730e34ae91eee50c_rle_crop_3693744371_0.png.png imagette210308801741126235/1741126031_753964_1340890280_a83aae2e734d68f7a939fba14725acb5_rle_crop_3693746841_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/7c998012fe1fa7c4fc2c1d3216ddf5c9_93659512.png imagette210308801741126235 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21030842 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21030883,21030884,21030885,21030886,21030887,21030888,21030889,21030890,21030891,21030892,21030893,21030894?tags=autre_refus,Teint_Dans_La_Masse,kraft,papier,flou,cartonnette,Carton_brun,metal,mal_croppe,Carton_gris,environnement,plastique your option no_mail is active, we will not send the real mail to your client args[1340890572] : ('0.06899059520496567',) no score found for photo 1340890572 We are sending mail with results at report@fotonower.com args[1340890569] : ('0.06899059520496567',) no score found for photo 1340890569 We are sending mail with results at report@fotonower.com args[1340890558] : ('0.06899059520496567',) no score found for photo 1340890558 We are sending mail with results at report@fotonower.com args[1340890544] : ('0.06899059520496567',) no score found for photo 1340890544 We are sending mail with results at report@fotonower.com args[1340890542] : ('0.06899059520496567',) no score found for photo 1340890542 We are sending mail with results at report@fotonower.com args[1340890537] : ('0.06899059520496567',) no score found for photo 1340890537 We are sending mail with results at report@fotonower.com args[1340890512] : ('0.06899059520496567',) no score found for photo 1340890512 We are sending mail with results at report@fotonower.com args[1340890509] : ('0.06899059520496567',) no score found for photo 1340890509 We are sending mail with results at report@fotonower.com args[1340890505] : ('0.06899059520496567',) no score found for photo 1340890505 We are sending mail with results at report@fotonower.com args[1340890465] : ('0.06899059520496567',) no score found for photo 1340890465 We are sending mail with results at report@fotonower.com refus_total : 0.06899059520496567 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=21030842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_04-03-2025_23_10_32.pdf results_Auto_P21030842_04-03-2025_23_10_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_04-03-2025_23_10_32.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21030842','results_Auto_P21030842_04-03-2025_23_10_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_04-03-2025_23_10_32.pdf','pdf','','0.21','0.06899059520496567') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21030842]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] map_info['map_portfolio_photo'] : {21030842: [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465, 1340890399, 1340890392, 1340890388, 1340890385, 1340890344, 1340890338, 1340890335, 1340890330, 1340890287, 1340890280, 1340890276, 1340890272, 1340890144, 1340890133, 1340890129, 1340890125, 1340890052, 1340890040, 1340889969, 1340889947, 1340889852, 1340889845, 1340889832, 1340889822, 1340889633, 1340889628, 1340889626, 1340889624]} final : False mtd_id 4302 list_pids : [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] 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, '2634453') ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21030842', '1340890572', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453')] time used for this insertion : 0.013665199279785156 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.027710437774658 time spend to save output : 0.013935089111328125 total time spend for step 4 : 5.041645526885986 step5:split_time_score Tue Mar 4 23:10:37 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 : ['21030842'] 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 : [('21030842',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21030842) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340890572: {'path': 'temp/1741126232_2079073_1340890572_62dd7aab204b332e4401043f38d0a7ea.jpg', 'extension': 'jpg'}, 1340890512: {'path': 'temp/1741126232_2079073_1340890512_470d41add0542ea3bd1eae6b89ad9f5a.jpg', 'extension': 'jpg'}, 1340890537: {'path': 'temp/1741126232_2079073_1340890537_d7b3700a5923dc6ba5a099542defc575.jpg', 'extension': 'jpg'}, 1340890542: {'path': 'temp/1741126232_2079073_1340890542_c74b429e5b63830589007d53ec7ceabc.jpg', 'extension': 'jpg'}, 1340890544: {'path': 'temp/1741126232_2079073_1340890544_a068891f0e237eeccba4bf23b01feecc.jpg', 'extension': 'jpg'}, 1340890558: {'path': 'temp/1741126232_2079073_1340890558_0acddb06df46992f5d42ca331de99633.jpg', 'extension': 'jpg'}, 1340890569: {'path': 'temp/1741126232_2079073_1340890569_e9dc242662ec2c54bd86f6532e596732.jpg', 'extension': 'jpg'}, 1340890465: {'path': 'temp/1741126232_2079073_1340890465_0484fa2303e4ec15438c29eabd5ef569.jpg', 'extension': 'jpg'}, 1340890505: {'path': 'temp/1741126232_2079073_1340890505_2728370a46d4cb175c9ce7cde8894d6e.jpg', 'extension': 'jpg'}, 1340890509: {'path': 'temp/1741126232_2079073_1340890509_203716d7f101870d02d613c2f9602e58.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 = 21030842; (('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 = 21030842 group by h (('23', 38),) 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=21030842 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 (21030842) 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 (21030842) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04032025 21030842 Nombre de photos uploadées : 38 / 23040 (0%) 04032025 21030842 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 04032025 21030842 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1340889633, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/38737b2fbf055654e141b68807d18921.jpg', 'username': None, 'uploaded_at': 1741125683, 'text': 'image_04032025_23_00_14_10211.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1340889628, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/9847a7327aa02129017c77c457b256d5.jpg', 'username': None, 'uploaded_at': 1741125683, 'text': 'image_04032025_23_00_24_10141.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340889626, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/2e15e29ef8bbfb67730e34ae91eee50c.jpg', 'username': None, 'uploaded_at': 1741125683, 'text': 'image_04032025_23_00_34_10150.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1340889624, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/4/4655f196fcb5caf6bcfb135a190c3492.jpg', 'username': None, 'uploaded_at': 1741125683, 'text': 'image_04032025_23_00_45_10136.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002089977264404297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21030842, '2025-03-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1636376,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021877288818359375 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= 1636376 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646790, 'mtr_portfolio_id': 21028610, 'dashboard_result_id': 9210346, '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_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646790, 'mtr_portfolio_id': 21029310, 'dashboard_result_id': 9210347, '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_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646790, 'mtr_portfolio_id': 21030129, 'dashboard_result_id': 9210348, '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_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, 'pht': 3726}}"}, {'dashboat_entry_day': 1636376, 'dashboard_run_id': 1646790, 'mtr_portfolio_id': 21030842, 'dashboard_result_id': 9210349, '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_P21030842_04-03-2025_23_08_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, '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 = 21028610 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': 2634304, 'mtr_portfolio_id': 21028610, 'created_at': datetime.datetime(2025, 3, 4, 22, 32, 58), 'result': '0.0809302880070119', 'result_long': None, 'result_double': None}] Qualite : 0.0809302880070119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21028610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21028610 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_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, 'pht': 3726}}" where mtr_portfolio_id = 21028610 and dashboard_run_id = 1646790 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`=21028610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9210346, 0.0809302880070119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21028610_04-03-2025_22_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21028640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21028641, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21028642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21028643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21028644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21028645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21028646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21028647, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21028648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21028649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21028650, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21028651, '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 = 21029310 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': 2634357, 'mtr_portfolio_id': 21029310, 'created_at': datetime.datetime(2025, 3, 4, 22, 48, 32), 'result': '0.07396012554859886', 'result_long': None, 'result_double': None}] Qualite : 0.07396012554859886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21029310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21029310 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_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, 'pht': 3726}}" where mtr_portfolio_id = 21029310 and dashboard_run_id = 1646790 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`=21029310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9210347, 0.07396012554859886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21029310_04-03-2025_22_48_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21029315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21029316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21029317, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21029318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21029319, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21029320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21029321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21029322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21029323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21029324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21029325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21029326, '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 = 21030129 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': 2634405, 'mtr_portfolio_id': 21030129, 'created_at': datetime.datetime(2025, 3, 4, 23, 3, 1), 'result': '0.07111737266489805', 'result_long': None, 'result_double': None}] Qualite : 0.07111737266489805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21030129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21030129 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_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, 'pht': 3726}}" where mtr_portfolio_id = 21030129 and dashboard_run_id = 1646790 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`=21030129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9210348, 0.07111737266489805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030129_04-03-2025_23_03_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030201, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030202, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030205, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030207, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030208, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030210, '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 = 21030842 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': 2634453, 'mtr_portfolio_id': 21030842, 'created_at': datetime.datetime(2025, 3, 4, 23, 10, 32), 'result': '0.06899059520496567', 'result_long': None, 'result_double': None}] Qualite : 0.06899059520496567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21030842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_04-03-2025_23_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21030842 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_P21030842_04-03-2025_23_10_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, 'pht': 3726}}" where mtr_portfolio_id = 21030842 and dashboard_run_id = 1646790 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`=21030842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9210349, 0.06899059520496567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21030842_04-03-2025_23_10_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21030871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21030872, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21030873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21030874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21030875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21030876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21030877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21030878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21030879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21030880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21030881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21030882, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21028610,21029310,21030129,21030842) result : ((1340883694,), (1340883696,), (1340883697,), (1340883701,), (1340883976,), (1340883979,), (1340883981,), (1340883984,), (1340884045,), (1340884053,), (1340884057,), (1340884061,), (1340884067,), (1340884157,), (1340884317,), (1340884320,), (1340884324,), (1340884334,), (1340884338,), (1340884341,), (1340884368,), (1340884374,), (1340884380,), (1340884385,), (1340884585,), (1340884589,), (1340884650,), (1340884658,), (1340884667,), (1340884708,), (1340884729,), (1340884810,), (1340885102,), (1340885114,), (1340885123,), (1340885127,), (1340885131,), (1340885134,), (1340885166,), (1340885174,), (1340885177,), (1340885180,), (1340885183,), (1340885196,), (1340885216,), (1340885230,), (1340885232,), (1340885236,), (1340885294,), (1340885297,), (1340885302,), (1340885312,), (1340885321,), (1340885358,), (1340885360,), (1340885361,), (1340885365,), (1340885369,), (1340885373,), (1340885417,), (1340885420,), (1340885424,), (1340885449,), (1340885452,), (1340885454,), (1340885459,), (1340885463,), (1340885496,), (1340885500,), (1340885502,), (1340885506,), (1340885510,), (1340885603,), (1340885550,), (1340885557,), (1340885570,), (1340885574,), (1340885599,), (1340885850,), (1340885853,), (1340885877,), (1340885924,), (1340886037,), (1340886182,), (1340886184,), (1340886187,), (1340886197,), (1340886240,), (1340886245,), (1340886251,), (1340886260,), (1340886265,), (1340886318,), (1340886332,), (1340886371,), (1340886388,), (1340886390,), (1340886392,), (1340886557,), (1340886561,), (1340886564,), (1340886613,), (1340886617,), (1340886618,), (1340886622,), (1340886634,), (1340886640,), (1340886673,), (1340886690,), (1340886701,), (1340886706,), (1340886711,), (1340886713,), (1340886816,), (1340886825,), (1340886828,), (1340886834,), (1340886871,), (1340886873,), (1340886875,), (1340886880,), (1340886884,), (1340887221,), (1340887226,), (1340887227,), (1340887317,), (1340887323,), (1340887328,), (1340887334,), (1340887459,), (1340887472,), (1340887485,), (1340887491,), (1340887527,), (1340887547,), (1340887569,), (1340887575,), (1340887582,), (1340887602,), (1340887607,), (1340887612,), (1340887618,), (1340887624,), (1340887876,), (1340887667,), (1340887673,), (1340887719,), (1340887858,), (1340888053,), (1340888065,), (1340888076,), (1340888142,), (1340888148,), (1340888157,), (1340888169,), (1340888236,), (1340888242,), (1340888330,), (1340888386,), (1340888394,), (1340888401,), (1340888488,), (1340888492,), (1340888497,), (1340888511,), (1340888523,), (1340888595,), (1340888605,), (1340888619,), (1340888628,), (1340888655,), (1340888661,), (1340888663,), (1340888668,), (1340888698,), (1340888709,), (1340888830,), (1340888843,), (1340888855,), (1340888886,), (1340888892,), (1340888899,), (1340888934,), (1340888938,), (1340888940,), (1340888950,), (1340888988,), (1340888992,), (1340888996,), (1340889001,), (1340889006,), (1340889010,), (1340889096,), (1340889103,), (1340889114,), (1340889128,), (1340889215,), (1340889227,), (1340889230,), (1340889436,), (1340889441,), (1340889466,), (1340889481,), (1340889492,), (1340889580,), (1340889585,), (1340889589,), (1340889594,), (1340889638,), (1340889624,), (1340889626,), (1340889628,), (1340889633,), (1340889822,), (1340889832,), (1340889845,), (1340889852,), (1340889947,), (1340889969,), (1340890040,), (1340890052,), (1340890125,), (1340890129,), (1340890133,), (1340890144,), (1340890272,), (1340890276,), (1340890280,), (1340890287,), (1340890330,), (1340890335,), (1340890338,), (1340890344,), (1340890385,), (1340890388,), (1340890392,), (1340890399,), (1340890465,), (1340890505,), (1340890509,), (1340890512,), (1340890537,), (1340890542,), (1340890544,), (1340890558,), (1340890569,), (1340890572,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21030842]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] map_info['map_portfolio_photo'] : {21030842: [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465, 1340890399, 1340890392, 1340890388, 1340890385, 1340890344, 1340890338, 1340890335, 1340890330, 1340890287, 1340890280, 1340890276, 1340890272, 1340890144, 1340890133, 1340890129, 1340890125, 1340890052, 1340890040, 1340889969, 1340889947, 1340889852, 1340889845, 1340889832, 1340889822, 1340889633, 1340889628, 1340889626, 1340889624]} final : True mtd_id 4302 list_pids : [1340890572, 1340890569, 1340890558, 1340890544, 1340890542, 1340890537, 1340890512, 1340890509, 1340890505, 1340890465] Looping around the photos to save general results len do output : 1 /21030842Didn'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, '2634453') ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453') ('4302', None, None, None, None, None, None, None, '2634453') ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21030842', 'None', None, None, None, None, '2634453'), ('4302', '21030842', '1340890572', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890569', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890558', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890544', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890542', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890537', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890512', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890509', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890505', None, None, None, None, None, '2634453'), ('4302', '21030842', '1340890465', None, None, None, None, None, '2634453')] time used for this insertion : 0.013956069946289062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3453803062438965 time spend to save output : 0.014200925827026367 total time spend for step 5 : 0.35958123207092285 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 (2634453) 2.75user 1.17system 0:11.95elapsed 32%CPU (0avgtext+0avgdata 160580maxresident)k 120inputs+13712outputs (3major+81730minor)pagefaults 0swaps