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 : 2421215 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 (2732486) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2732486) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22151992 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2732486'] with mtr_portfolio_ids : ['22151992'] and first list_photo_ids : [] new path : /proc/2421215/ Name: python3 Umask: 0002 State: R (running) Tgid: 2421215 Ngid: 0 Pid: 2421215 PPid: 2421214 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2421215 NSpid: 2421215 NSpgid: 2413491 NSsid: 2413491 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98012 kB VmRSS: 98012 kB RssAnon: 59800 kB RssFile: 38212 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 66 nonvoluntary_ctxt_switches: 150 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2421215', 'Ngid': '0', 'Pid': '2421215', 'PPid': '2421214', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2421215', 'NSpid': '2421215', 'NSpgid': '2413491', 'NSsid': '2413491', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98012 kB', 'VmRSS': '98012 kB', 'RssAnon': '59800 kB', 'RssFile': '38212 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '66', 'nonvoluntary_ctxt_switches': '150'} ('datou_batch_current', '2421215', '1106828', '0', '1106828', '865576', '98012', b'', 'marlene', '2732486') 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 (22151992) 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 (2732486 ) ) 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 (22151992) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350832650, 'portfolio_id': 22151992}, {'photo_id': 1350832648, 'portfolio_id': 22151992}, {'photo_id': 1350832597, 'portfolio_id': 22151992}, {'photo_id': 1350832593, 'portfolio_id': 22151992}, {'photo_id': 1350832590, 'portfolio_id': 22151992}, {'photo_id': 1350832543, 'portfolio_id': 22151992}, {'photo_id': 1350832541, 'portfolio_id': 22151992}, {'photo_id': 1350832539, 'portfolio_id': 22151992}, {'photo_id': 1350832537, 'portfolio_id': 22151992}, {'photo_id': 1350832530, 'portfolio_id': 22151992}, {'photo_id': 1350832479, 'portfolio_id': 22151992}, {'photo_id': 1350832476, 'portfolio_id': 22151992}, {'photo_id': 1350832455, 'portfolio_id': 22151992}, {'photo_id': 1350832435, 'portfolio_id': 22151992}, {'photo_id': 1350832430, 'portfolio_id': 22151992}, {'photo_id': 1350832418, 'portfolio_id': 22151992}, {'photo_id': 1350832038, 'portfolio_id': 22151992}, {'photo_id': 1350832017, 'portfolio_id': 22151992}, {'photo_id': 1350832015, 'portfolio_id': 22151992}, {'photo_id': 1350831820, 'portfolio_id': 22151992}, {'photo_id': 1350831772, 'portfolio_id': 22151992}, {'photo_id': 1350831726, 'portfolio_id': 22151992}, {'photo_id': 1350831694, 'portfolio_id': 22151992}, {'photo_id': 1350831331, 'portfolio_id': 22151992}, {'photo_id': 1350831326, 'portfolio_id': 22151992}, {'photo_id': 1350831319, 'portfolio_id': 22151992}, {'photo_id': 1350831308, 'portfolio_id': 22151992}, {'photo_id': 1350831306, 'portfolio_id': 22151992}, {'photo_id': 1350831264, 'portfolio_id': 22151992}, {'photo_id': 1350831260, 'portfolio_id': 22151992}, {'photo_id': 1350831255, 'portfolio_id': 22151992}, {'photo_id': 1350831242, 'portfolio_id': 22151992}, {'photo_id': 1350831075, 'portfolio_id': 22151992}, {'photo_id': 1350830962, 'portfolio_id': 22151992}, {'photo_id': 1350830898, 'portfolio_id': 22151992}, {'photo_id': 1350830870, 'portfolio_id': 22151992}, {'photo_id': 1350830850, 'portfolio_id': 22151992}, {'photo_id': 1350830847, 'portfolio_id': 22151992}, {'photo_id': 1350830467, 'portfolio_id': 22151992}, {'photo_id': 1350830444, 'portfolio_id': 22151992}, {'photo_id': 1350830415, 'portfolio_id': 22151992}, {'photo_id': 1350830378, 'portfolio_id': 22151992}, {'photo_id': 1350830343, 'portfolio_id': 22151992}, {'photo_id': 1350830248, 'portfolio_id': 22151992}, {'photo_id': 1350830245, 'portfolio_id': 22151992}, {'photo_id': 1350830242, 'portfolio_id': 22151992}, {'photo_id': 1350830240, 'portfolio_id': 22151992}, {'photo_id': 1350830180, 'portfolio_id': 22151992}, {'photo_id': 1350830167, 'portfolio_id': 22151992}, {'photo_id': 1350830155, 'portfolio_id': 22151992}, {'photo_id': 1350830147, 'portfolio_id': 22151992}] map_portfolio_id_photo_id: {22151992: [1350832650, 1350832648, 1350832597, 1350832593, 1350832590, 1350832543, 1350832541, 1350832539, 1350832537, 1350832530, 1350832479, 1350832476, 1350832455, 1350832435, 1350832430, 1350832418, 1350832038, 1350832017, 1350832015, 1350831820, 1350831772, 1350831726, 1350831694, 1350831331, 1350831326, 1350831319, 1350831308, 1350831306, 1350831264, 1350831260, 1350831255, 1350831242, 1350831075, 1350830962, 1350830898, 1350830870, 1350830850, 1350830847, 1350830467, 1350830444, 1350830415, 1350830378, 1350830343, 1350830248, 1350830245, 1350830242, 1350830240, 1350830180, 1350830167, 1350830155, 1350830147]} ##### 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.016365528106689453 #### 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 Thu Apr 17 20:42:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22151992) 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 : 22151992 get user id for portfolio 22151992 get sub ptf for main ptf 22151992, type 3726 and hashtags ['plastique', 'flou', 'autre_refus', 'kraft', 'metal', 'environnement', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'papier', 'mal_croppe', 'Carton_gris'] 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`=22151992 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','autre_refus','kraft','metal','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','mal_croppe','Carton_gris')) 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`=22151992 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','autre_refus','kraft','metal','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22151992, 'sub_port_id': 22152053, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631530, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'kraft': {'main_port_id': 22151992, 'sub_port_id': 22152054, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631531, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22151992, 'sub_port_id': 22152055, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631532, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'metal': {'main_port_id': 22151992, 'sub_port_id': 22152056, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631533, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'flou': {'main_port_id': 22151992, 'sub_port_id': 22152057, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631534, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'plastique': {'main_port_id': 22151992, 'sub_port_id': 22152058, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631535, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'mal_croppe': {'main_port_id': 22151992, 'sub_port_id': 22152059, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631536, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'papier': {'main_port_id': 22151992, 'sub_port_id': 22152060, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631537, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'Carton_gris': {'main_port_id': 22151992, 'sub_port_id': 22152061, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631538, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'Carton_brun': {'main_port_id': 22151992, 'sub_port_id': 22152062, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631539, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'environnement': {'main_port_id': 22151992, 'sub_port_id': 22152063, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631540, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}, 'cartonnette': {'main_port_id': 22151992, 'sub_port_id': 22152065, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631541, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 33, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22152053 , 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=22151992 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 (22152053) result : ((1350830839,), (1350831292,), (1350831293,), (1350832631,), (1350832632,), (1350832633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152054 , 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=22151992 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 (22152054) result : ((1350831296,), (1350831297,), (1350832636,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152055 , 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=22151992 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 (22152055) result : ((1350831288,), (1350831289,), (1350831310,), (1350831918,), (1350831920,), (1350832070,), (1350832072,), (1350832494,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152056 , 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=22151992 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 (22152056) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152057 , 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=22151992 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 (22152057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152058 , 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=22151992 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 (22152058) result : ((1350830846,), (1350831321,), (1350831322,), (1350831323,), (1350832105,), (1350832506,), (1350832587,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152059 , 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=22151992 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 (22152059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152060 , 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=22151992 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 (22152060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152061 , 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=22151992 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 (22152061) result : ((1350830845,), (1350831294,), (1350831295,), (1350831312,), (1350831313,), (1350831314,), (1350832082,), (1350832084,), (1350832086,), (1350832496,), (1350832531,), (1350832532,), (1350832533,), (1350832582,), (1350832583,), (1350832584,), (1350832634,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152062 , 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=22151992 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 (22152062) result : ((1350831318,), (1350831886,), (1350831887,), (1350832503,), (1350832504,), (1350832586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152063 , 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=22151992 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 (22152063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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 22152065 , 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=22151992 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 (22152065) result : ((1350831315,), (1350832098,), (1350832499,), (1350832500,), (1350832501,), (1350832535,), (1350832536,), (1350832585,), (1350832635,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22151992) result : ((1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) 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`=22151992 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','autre_refus','kraft','metal','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','mal_croppe','Carton_gris')) 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`=22151992 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','autre_refus','kraft','metal','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','mal_croppe','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22151992, 'sub_port_id': 22152066, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631542, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'kraft': {'main_port_id': 22151992, 'sub_port_id': 22152068, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631543, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 22151992, 'sub_port_id': 22152069, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631544, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'metal': {'main_port_id': 22151992, 'sub_port_id': 22152070, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631545, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'flou': {'main_port_id': 22151992, 'sub_port_id': 22152071, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631546, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'plastique': {'main_port_id': 22151992, 'sub_port_id': 22152072, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631547, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'mal_croppe': {'main_port_id': 22151992, 'sub_port_id': 22152073, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631548, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'papier': {'main_port_id': 22151992, 'sub_port_id': 22152074, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631549, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'Carton_gris': {'main_port_id': 22151992, 'sub_port_id': 22152075, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631550, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'Carton_brun': {'main_port_id': 22151992, 'sub_port_id': 22152076, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631551, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'environnement': {'main_port_id': 22151992, 'sub_port_id': 22152077, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631552, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 34), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}, 'cartonnette': {'main_port_id': 22151992, 'sub_port_id': 22152078, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14631553, 'last_updated_at': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 20, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 20, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22152078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22152065 lien utilise dans velours : https://www.fotonower.com/velours/22152066,22152068,22152069,22152070,22152071,22152072,22152073,22152074,22152075,22152076,22152077,22152078?tags=autre_refus,kraft,Teint_Dans_La_Masse,metal,flou,plastique,mal_croppe,papier,Carton_gris,Carton_brun,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22151992]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] map_info['map_portfolio_photo'] : {22151992: [1350832650, 1350832648, 1350832597, 1350832593, 1350832590, 1350832543, 1350832541, 1350832539, 1350832537, 1350832530, 1350832479, 1350832476, 1350832455, 1350832435, 1350832430, 1350832418, 1350832038, 1350832017, 1350832015, 1350831820, 1350831772, 1350831726, 1350831694, 1350831331, 1350831326, 1350831319, 1350831308, 1350831306, 1350831264, 1350831260, 1350831255, 1350831242, 1350831075, 1350830962, 1350830898, 1350830870, 1350830850, 1350830847, 1350830467, 1350830444, 1350830415, 1350830378, 1350830343, 1350830248, 1350830245, 1350830242, 1350830240, 1350830180, 1350830167, 1350830155, 1350830147]} final : False mtd_id 4302 list_pids : [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] Looping around the photos to save general results len do output : 1 /22151992. 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, '2732486') ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22151992', "{'autre_refus': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065}", None, None, None, None, '2732486'), ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486')] time used for this insertion : 0.01706075668334961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5712294578552246 time spend to save output : 0.01732802391052246 total time spend for step 1 : 1.588557481765747 step2:final Thu Apr 17 20:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22151992) 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 22151992 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350830180,1350830167,1350830155,1350830147,1350830248,1350830245,1350830242,1350830240,1350830467,1350830444,1350830415,1350830378,1350830343,1350831075,1350830962,1350830898,1350830870,1350830850,1350830847,1350831264,1350831260,1350831255,1350831242,1350831331,1350831326,1350831319,1350831308,1350831306,1350831820,1350831772,1350831726,1350831694,1350832038,1350832017,1350832015,1350832479,1350832476,1350832455,1350832435,1350832430,1350832418,1350832543,1350832541,1350832539,1350832537,1350832530,1350832597,1350832593,1350832590,1350832650,1350832648); 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([22151992]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} new output for save of step final : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] map_info['map_portfolio_photo'] : {22151992: [1350832650, 1350832648, 1350832597, 1350832593, 1350832590, 1350832543, 1350832541, 1350832539, 1350832537, 1350832530, 1350832479, 1350832476, 1350832455, 1350832435, 1350832430, 1350832418, 1350832038, 1350832017, 1350832015, 1350831820, 1350831772, 1350831726, 1350831694, 1350831331, 1350831326, 1350831319, 1350831308, 1350831306, 1350831264, 1350831260, 1350831255, 1350831242, 1350831075, 1350830962, 1350830898, 1350830870, 1350830850, 1350830847, 1350830467, 1350830444, 1350830415, 1350830378, 1350830343, 1350830248, 1350830245, 1350830242, 1350830240, 1350830180, 1350830167, 1350830155, 1350830147]} final : False mtd_id 4302 list_pids : [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] Looping around the photos to save general results len do output : 5 /1350832650.Didn't retrieve data . /1350832648.Didn't retrieve data . /1350832597.Didn't retrieve data . /1350832593.Didn't retrieve data . /1350832590.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, '2732486') ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22151992', '1350832650', '0.048328092737109626', None, None, None, None, '2732486'), ('4302', '22151992', '1350832648', '0.048328092737109626', None, None, None, None, '2732486'), ('4302', '22151992', '1350832597', '0.048328092737109626', None, None, None, None, '2732486'), ('4302', '22151992', '1350832593', '0.048328092737109626', None, None, None, None, '2732486'), ('4302', '22151992', '1350832590', '0.048328092737109626', None, None, None, None, '2732486')] time used for this insertion : 0.013654708862304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07235264778137207 time spend to save output : 0.014162778854370117 total time spend for step 2 : 0.08651542663574219 step3:velours_tree Thu Apr 17 20:42:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22151992: [{'autre_refus': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065}]} input_args_next_step : {22151992: ()} output_args : {22151992: [{'autre_refus': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065}]} args : 22151992 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': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22151992) 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([22151992]) 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.6772565841674805 time spend to save output : 0.00012350082397460938 total time spend for step 3 : 0.6773800849914551 step4:send_mail_cod Thu Apr 17 20:43:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} input_args_next_step : {1350832650: ()} output_args : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} args : 1350832650 depend.output_id : 0 input_args_next_step : {1350832650: ('0.048328092737109626',), 1350832648: ()} output_args : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} args : 1350832648 depend.output_id : 0 input_args_next_step : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ()} output_args : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} args : 1350832597 depend.output_id : 0 input_args_next_step : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ()} output_args : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} args : 1350832593 depend.output_id : 0 input_args_next_step : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ()} output_args : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',)} args : 1350832590 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 : {22151992: [{'autre_refus': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065}]} input_args_next_step : {1350832650: ('0.048328092737109626',), 1350832648: ('0.048328092737109626',), 1350832597: ('0.048328092737109626',), 1350832593: ('0.048328092737109626',), 1350832590: ('0.048328092737109626',), 22151992: ()} output_args : {22151992: [{'autre_refus': 22152053, 'kraft': 22152054, 'Teint_Dans_La_Masse': 22152055, 'metal': 22152056, 'flou': 22152057, 'plastique': 22152058, 'mal_croppe': 22152059, 'papier': 22152060, 'Carton_gris': 22152061, 'Carton_brun': 22152062, 'environnement': 22152063, 'cartonnette': 22152065}]} args : 22151992 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.048328092737109626',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22151992) 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 (1350832650,1350832648,1350832597,1350832593,1350832590) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350832590 begin to download photo : 1350832597 begin to download photo : 1350832650 download finish for photo 1350832590 begin to download photo : 1350832593 download finish for photo 1350832597 begin to download photo : 1350832648 download finish for photo 1350832650 download finish for photo 1350832648 download finish for photo 1350832593 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22151992_17-04-2025_20_43_00.pdf 22152053 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=22152053 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350830839: '1744914822_1180360_1350830245_1c9fb305edecede7982b90a58888227d_rle_crop_3752427907_0.png', 1350831292: '1744914911_3269451_1350830444_be8e0c715a20e9ce7eb700c3f6ef8739_rle_crop_3752432676_0.png', 1350831293: '1744914911_3269451_1350830378_17a95a7fde869c658e750e1b3d499e65_rle_crop_3752432707_0.png', 1350832631: '1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442641_0.png', 1350832632: '1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442638_0.png', 1350832633: '1744915272_3273559_1350832539_a6ad737280443fa856d041714dd7cb94_rle_crop_3752442657_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/377075113ba247cd306988a3688e2d9e_4521295.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0cd233a7986f53fe472d6346f722548d_27516014.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/601f59bb43bcb6401b68524d63de7777_1775292.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ce8d8aedcf395de22c9b02e14a654417_8547636.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9568988e34539aba0c0115e4fe4ced2c_21461241.png change filename to text .imagette221520531744915380/ imagette221520531744915380/1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442638_0.png.png imagette221520531744915380/1744914911_3269451_1350830378_17a95a7fde869c658e750e1b3d499e65_rle_crop_3752432707_0.png.png imagette221520531744915380/1744914911_3269451_1350830444_be8e0c715a20e9ce7eb700c3f6ef8739_rle_crop_3752432676_0.png.png imagette221520531744915380/1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442641_0.png.png imagette221520531744915380/1744914822_1180360_1350830245_1c9fb305edecede7982b90a58888227d_rle_crop_3752427907_0.png.png imagette221520531744915380/1744915272_3273559_1350832539_a6ad737280443fa856d041714dd7cb94_rle_crop_3752442657_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1e239a8033a4a18a778bf2571bbe7d3f_79844567.png imagette221520531744915380 22152054 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=22152054 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350831296: '1744914911_3269451_1350830444_be8e0c715a20e9ce7eb700c3f6ef8739_rle_crop_3752432680_0.png', 1350831297: '1744914911_3269451_1350830378_17a95a7fde869c658e750e1b3d499e65_rle_crop_3752432714_0.png', 1350832636: '1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442643_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9e5efb8bcb7ba2744734cde73846a1d9_13248567.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8978107f735cb8078418255d91f0db2b_80353494.png change filename to text .imagette221520541744915380/ imagette221520541744915380/1744914911_3269451_1350830378_17a95a7fde869c658e750e1b3d499e65_rle_crop_3752432714_0.png.png imagette221520541744915380/1744915272_3273559_1350832541_7919d3b7a74da341cad1278725611d12_rle_crop_3752442643_0.png.png imagette221520541744915380/1744914911_3269451_1350830444_be8e0c715a20e9ce7eb700c3f6ef8739_rle_crop_3752432680_0.png.png imagette221520561744915381/ imagette221520571744915381/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2778077d966c43d3a14908186819bdf8_80701982.png imagette221520541744915380 22152056 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=22152056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221520561744915381 22152057 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=22152057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221520571744915381 22152058 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=22152058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350830846: '1744914822_1180360_1350830242_42fda8d8a8ba4bd36d1747be837ac872_rle_crop_3752427921_0.png', 1350831321: '1744914944_1183546_1350830180_8cb76b3ea9170372be7a27236299a220_rle_crop_3752428152_0.png', 1350831322: '1744914944_1183546_1350830180_8cb76b3ea9170372be7a27236299a220_rle_crop_3752428157_0.png', 1350831323: '1744914944_1183546_1350830147_4a3db61051ec6b4aa4dbb5039ec59cd7_rle_crop_3752428193_0.png', 1350832105: '1744915067_1186903_1350830962_c26ecb2305a00e895bcdaf3ff798e99c_rle_crop_3752437548_0.png', 1350832506: '1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437942_0.png', 1350832587: '1744915212_3272611_1350831326_cfd3f54312a28a41eb34c831ade44015_rle_crop_3752438597_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7b2f3c556c4c29ad88cf0553fc70c7f1_98660101.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0a72b677af3f497cc01543a36330f661_42346277.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/673089355a4b34b8814508a7bb829b13_19572597.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c6e437e068f7bb3ee5c420eaa9b356f7_44763912.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/050b780f6bc025a5c512e9d9343a0715_71074513.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/26ab45d38cc3e457cfa2907cd025e551_19371923.png change filename to text .imagette221520581744915381/ imagette221520581744915381/1744915212_3272611_1350831326_cfd3f54312a28a41eb34c831ade44015_rle_crop_3752438597_0.png.png imagette221520581744915381/1744914822_1180360_1350830242_42fda8d8a8ba4bd36d1747be837ac872_rle_crop_3752427921_0.png.png imagette221520581744915381/1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437942_0.png.png imagette221520581744915381/1744915067_1186903_1350830962_c26ecb2305a00e895bcdaf3ff798e99c_rle_crop_3752437548_0.png.png imagette221520581744915381/1744914944_1183546_1350830180_8cb76b3ea9170372be7a27236299a220_rle_crop_3752428157_0.png.png imagette221520581744915381/1744914944_1183546_1350830180_8cb76b3ea9170372be7a27236299a220_rle_crop_3752428152_0.png.png imagette221520581744915381/1744914944_1183546_1350830147_4a3db61051ec6b4aa4dbb5039ec59cd7_rle_crop_3752428193_0.png.png imagette221520591744915381/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6c9145cee261e1d83acb02a099897b84_17241459.png imagette221520581744915381 22152059 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=22152059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221520591744915381 22152065 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=22152065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350831315: '1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752428168_0.png', 1350832098: '1744915067_1186903_1350830898_6569fded8c0c530f5d2bfe073d2b23c1_rle_crop_3752437556_0.png', 1350832499: '1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437922_0.png', 1350832500: '1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437941_0.png', 1350832501: '1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437938_0.png', 1350832535: '1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438156_0.png', 1350832536: '1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438161_0.png', 1350832585: '1744915212_3272611_1350831820_379c4e9ee3b4fc2904290989e2cb20dc_rle_crop_3752438568_0.png', 1350832635: '1744915272_3273559_1350832537_6ce76dfe2e369977e672ee42f7740e36_rle_crop_3752442673_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/1e4d1fe320af9f67c216492cc7c7d2c6_89384423.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f10b5c631aaeb03cff5fd0c841bf4019_67060831.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/fae0df4e7b7f7f0a9f6c9330630047ab_61688146.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ec3b48ff7211584d8725fcd196efd9c1_571665.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/70d2fd285398af99dbbc811daef65e94_87346522.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/146783b0b09b6001f06e74fd446cad06_12990290.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0cd5e44854e6499932865baf79d529ab_35140059.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0f43e9fb490766e13897647dbe08be30_49147368.png change filename to text .imagette221520651744915381/ imagette221520651744915381/1744915272_3273559_1350832537_6ce76dfe2e369977e672ee42f7740e36_rle_crop_3752442673_0.png.png imagette221520651744915381/1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437941_0.png.png imagette221520651744915381/1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438161_0.png.png imagette221520651744915381/1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437938_0.png.png imagette221520651744915381/1744915212_3272611_1350831820_379c4e9ee3b4fc2904290989e2cb20dc_rle_crop_3752438568_0.png.png imagette221520651744915381/1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752428168_0.png.png imagette221520651744915381/1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438156_0.png.png imagette221520651744915381/1744915067_1186903_1350830898_6569fded8c0c530f5d2bfe073d2b23c1_rle_crop_3752437556_0.png.png imagette221520651744915381/1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437922_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/eeb9ffab0c9686ecfc33c2f8c88f5bd0_79001628.png imagette221520651744915381 22152055 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=22152055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350831288: '1744914911_3269451_1350830415_3cef5beb1277cf22f5b25beb6884c4f5_rle_crop_3752432694_0.png', 1350831289: '1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432737_0.png', 1350831310: '1744914944_1183546_1350830248_30fd1967d479804c77a8c36b2b23cd1a_rle_crop_3752428150_0.png', 1350831918: '1744915047_1800337_1350831075_345e3efe50389ef4f9561b3a261bcb18_rle_crop_3752436115_0.png', 1350831920: '1744915047_1800337_1350831075_345e3efe50389ef4f9561b3a261bcb18_rle_crop_3752436116_0.png', 1350832070: '1744915067_1186903_1350830962_c26ecb2305a00e895bcdaf3ff798e99c_rle_crop_3752437546_0.png', 1350832072: '1744915067_1186903_1350830898_6569fded8c0c530f5d2bfe073d2b23c1_rle_crop_3752437562_0.png', 1350832494: '1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/636776f305b8f6767316404b8692eac0_5700336.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/96edeb4e72fe95656b17986d4a43b434_83312748.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/ac4b1dc0aca16f421f754ce3257733ba_82560510.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2374ed7cccb79301ce94352e31865bf8_51223354.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/5db4e2c0c9d7fcd9f9eade106b9273b1_89981739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3a092174c61a5124ab54e129d4d84238_5163713.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8d28e67e16177cde6669d0c19ac34ed3_73820851.png change filename to text .imagette221520551744915382/ imagette221520551744915382/1744915067_1186903_1350830962_c26ecb2305a00e895bcdaf3ff798e99c_rle_crop_3752437546_0.png.png imagette221520551744915382/1744914944_1183546_1350830248_30fd1967d479804c77a8c36b2b23cd1a_rle_crop_3752428150_0.png.png imagette221520551744915382/1744915047_1800337_1350831075_345e3efe50389ef4f9561b3a261bcb18_rle_crop_3752436115_0.png.png imagette221520551744915382/1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437949_0.png.png imagette221520551744915382/1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432737_0.png.png imagette221520551744915382/1744915067_1186903_1350830898_6569fded8c0c530f5d2bfe073d2b23c1_rle_crop_3752437562_0.png.png imagette221520551744915382/1744914911_3269451_1350830415_3cef5beb1277cf22f5b25beb6884c4f5_rle_crop_3752432694_0.png.png imagette221520551744915382/1744915047_1800337_1350831075_345e3efe50389ef4f9561b3a261bcb18_rle_crop_3752436116_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3d76feb2199e72c912be217f12f261da_36408129.png imagette221520551744915382 22152061 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=22152061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350832086: '1744915067_1186903_1350830850_b468a30bbdbdc51c7d0007650715d23c_rle_crop_3752437587_0.png', 1350832634: '1744915272_3273559_1350832537_6ce76dfe2e369977e672ee42f7740e36_rle_crop_3752442669_0.png', 1350832584: '1744915212_3272611_1350831308_24f99ea18acb881ebe9cde38a732c9b2_rle_crop_3752438629_0.png', 1350832583: '1744915212_3272611_1350831319_e236a64f582040040013f1eb7c5ca57a_rle_crop_3752438610_0.png', 1350832582: '1744915212_3272611_1350831326_cfd3f54312a28a41eb34c831ade44015_rle_crop_3752438589_0.png', 1350832533: '1744915181_1190011_1350831694_b58da80a38a95a6a45d04c6d34bfadb6_rle_crop_3752438190_0.png', 1350832532: '1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438159_0.png', 1350832531: '1744915181_1190011_1350832038_04cf569538a1e1d2313436676155020a_rle_crop_3752438144_0.png', 1350832496: '1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437948_0.png', 1350830845: '1744914822_1180360_1350830245_1c9fb305edecede7982b90a58888227d_rle_crop_3752427910_0.png', 1350832084: '1744915067_1186903_1350830870_f27ff2ce9dceccfbd466c44e00c76c3c_rle_crop_3752437569_0.png', 1350832082: '1744915067_1186903_1350830870_f27ff2ce9dceccfbd466c44e00c76c3c_rle_crop_3752437571_0.png', 1350831314: '1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_bib_crop_3752428171_0.jpg', 1350831313: '1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752432903_0.png', 1350831312: '1744914944_1183546_1350830248_30fd1967d479804c77a8c36b2b23cd1a_rle_crop_3752428145_0.png', 1350831295: '1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432725_0.png', 1350831294: '1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8ec2f0cfd51c724e08511853e3469fe7_30546760.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8fa7a982686725411794f74fdf9b385d_83113236.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6a192a808489f8beae36131a30924f83_4404899.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/32c5c7e6bce865265615b98f6c8be2fe_34634559.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9782f87e808634c7d64dce696273b9fd_62188784.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/9e41a438183d9f624eaf2543e1268cc1_91712653.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6aaae5964c7ee6d75c8a4c147d2f2534_93631002.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/19ef26f8b4632ba1985c9f60177bc382_9130158.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f0c810e967c288f877d382f8c0969b12_30259541.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/328fba1cc82702d1d7ca15a0752bb03a_23549043.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/61bd72dfc74002f1628183498147a9e5_34972298.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/bc86e5898699f05509ea6d28553a15eb_99988574.png change filename to text .wget -O 13.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f5fef1b8a941b1b44f4af07921e38b91_67679621.jpg change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/a4b24de8164d8f4e11079277c50c1e1f_62108101.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8541ef40a55b6e621347ed7e5243c522_45296824.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/4b1acea38f0a96de963ea4ea8c97b36a_73411430.png change filename to text .imagette221520611744915382/ imagette221520611744915382/1744915181_1190011_1350832038_04cf569538a1e1d2313436676155020a_rle_crop_3752438144_0.png.png imagette221520611744915382/1744915067_1186903_1350830870_f27ff2ce9dceccfbd466c44e00c76c3c_rle_crop_3752437569_0.png.png imagette221520611744915382/1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432724_0.png.png imagette221520611744915382/1744915067_1186903_1350830850_b468a30bbdbdc51c7d0007650715d23c_rle_crop_3752437587_0.png.png imagette221520611744915382/1744915272_3273559_1350832537_6ce76dfe2e369977e672ee42f7740e36_rle_crop_3752442669_0.png.png imagette221520611744915382/1744915152_3271929_1350832015_a7ccf253d51a6e4acffbffdfb6010046_rle_crop_3752437948_0.png.png imagette221520611744915382/1744915212_3272611_1350831326_cfd3f54312a28a41eb34c831ade44015_rle_crop_3752438589_0.png.png imagette221520611744915382/1744914944_1183546_1350830248_30fd1967d479804c77a8c36b2b23cd1a_rle_crop_3752428145_0.png.png imagette221520611744915382/1744915067_1186903_1350830870_f27ff2ce9dceccfbd466c44e00c76c3c_rle_crop_3752437571_0.png.png imagette221520611744915382/1744914911_3269451_1350830343_c0e0f19aa3cf6cc385f8dd791b6ae6e1_rle_crop_3752432725_0.png.png imagette221520611744915382/1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752432903_0.png.png imagette221520611744915382/1744914822_1180360_1350830245_1c9fb305edecede7982b90a58888227d_rle_crop_3752427910_0.png.png imagette221520611744915382/1744915212_3272611_1350831308_24f99ea18acb881ebe9cde38a732c9b2_rle_crop_3752438629_0.png.png imagette221520611744915382/1744915181_1190011_1350831694_b58da80a38a95a6a45d04c6d34bfadb6_rle_crop_3752438190_0.png.png imagette221520611744915382/1744915212_3272611_1350831319_e236a64f582040040013f1eb7c5ca57a_rle_crop_3752438610_0.png.png imagette221520611744915382/1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_bib_crop_3752428171_0.jpg.jpg imagette221520611744915382/1744915181_1190011_1350831772_e74778e9d10ff4209437a2ac9b2abee4_rle_crop_3752438159_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2590e639b364ad1a42242817bea90835_56480193.png imagette221520611744915382 22152062 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=22152062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350831318: '1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752428176_0.png', 1350831886: '1744915030_3270761_1350831255_1f66b31d00922e8cceb5c15a9538c195_rle_crop_3752436093_0.png', 1350831887: '1744915030_3270761_1350831242_c3bf06ecbc59968b905c3726ac00211f_rle_crop_3752436103_0.png', 1350832503: '1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437930_0.png', 1350832504: '1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437924_0.png', 1350832586: '1744915212_3272611_1350831306_e3d867496af25da9238edcfc28d7666a_rle_crop_3752438648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/3d6fbebf42550bf223b05be16f9d1a92_89304532.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/05ddf76745455aa0cd7a8dfb963ceaad_79754918.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/657bc420740912962691fdbfea7cf217_78783059.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/53bac55a1800954be8fe2cb31adb40c0_62800363.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/7b340d4a034e4018e37a12a2ea053913_28421036.png change filename to text .imagette221520621744915383/ imagette221520621744915383/1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437930_0.png.png imagette221520621744915383/1744915030_3270761_1350831242_c3bf06ecbc59968b905c3726ac00211f_rle_crop_3752436103_0.png.png imagette221520621744915383/1744915152_3271929_1350832017_58438b16f4cc791a5b068c7061855e6b_rle_crop_3752437924_0.png.png imagette221520621744915383/1744915030_3270761_1350831255_1f66b31d00922e8cceb5c15a9538c195_rle_crop_3752436093_0.png.png imagette221520621744915383/1744915212_3272611_1350831306_e3d867496af25da9238edcfc28d7666a_rle_crop_3752438648_0.png.png imagette221520621744915383/1744914944_1183546_1350830167_2d4791c14248216750ec8dd7cc92a16d_rle_crop_3752428176_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/f03b40b7030f389209cab669afcde20e_54404137.png imagette221520621744915383 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22151992 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22152066,22152068,22152069,22152070,22152071,22152072,22152073,22152074,22152075,22152076,22152077,22152078?tags=autre_refus,kraft,Teint_Dans_La_Masse,metal,flou,plastique,mal_croppe,papier,Carton_gris,Carton_brun,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1350832650] : ('0.048328092737109626',) no score found for photo 1350832650 We are sending mail with results at report@fotonower.com args[1350832648] : ('0.048328092737109626',) no score found for photo 1350832648 We are sending mail with results at report@fotonower.com args[1350832597] : ('0.048328092737109626',) no score found for photo 1350832597 We are sending mail with results at report@fotonower.com args[1350832593] : ('0.048328092737109626',) no score found for photo 1350832593 We are sending mail with results at report@fotonower.com args[1350832590] : ('0.048328092737109626',) no score found for photo 1350832590 We are sending mail with results at report@fotonower.com refus_total : 0.048328092737109626 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=22151992 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_P22151992_17-04-2025_20_43_00.pdf results_Auto_P22151992_17-04-2025_20_43_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_20_43_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22151992','results_Auto_P22151992_17-04-2025_20_43_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_20_43_00.pdf','pdf','','0.21','0.048328092737109626') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22151992]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] map_info['map_portfolio_photo'] : {22151992: [1350832650, 1350832648, 1350832597, 1350832593, 1350832590, 1350832543, 1350832541, 1350832539, 1350832537, 1350832530, 1350832479, 1350832476, 1350832455, 1350832435, 1350832430, 1350832418, 1350832038, 1350832017, 1350832015, 1350831820, 1350831772, 1350831726, 1350831694, 1350831331, 1350831326, 1350831319, 1350831308, 1350831306, 1350831264, 1350831260, 1350831255, 1350831242, 1350831075, 1350830962, 1350830898, 1350830870, 1350830850, 1350830847, 1350830467, 1350830444, 1350830415, 1350830378, 1350830343, 1350830248, 1350830245, 1350830242, 1350830240, 1350830180, 1350830167, 1350830155, 1350830147]} final : False mtd_id 4302 list_pids : [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] 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, '2732486') ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22151992', '1350832650', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486')] time used for this insertion : 0.017180681228637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.9883692264556885 time spend to save output : 0.017478466033935547 total time spend for step 4 : 5.005847692489624 step5:split_time_score Thu Apr 17 20:43:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22151992'] 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 : [('22151992',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22151992) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350832650: {'path': 'temp/1744915380_2421215_1350832650_e8745dacc546029ff3a80d43b264b924.jpg', 'extension': 'jpg'}, 1350832597: {'path': 'temp/1744915380_2421215_1350832597_c1b3598cb6ed48d029ffe7b9ae094766.jpg', 'extension': 'jpg'}, 1350832648: {'path': 'temp/1744915380_2421215_1350832648_3b41dc527425850bb7ed912c3c3c74ac.jpg', 'extension': 'jpg'}, 1350832590: {'path': 'temp/1744915380_2421215_1350832590_42778b16cddfeb49f3a56ecf258fed7b.jpg', 'extension': 'jpg'}, 1350832593: {'path': 'temp/1744915380_2421215_1350832593_f6f772b1adc9d0d1fcded6fc77a21ee4.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 = 22151992; (('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 = 22151992 group by h (('20', 51),) 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=22151992 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 (22151992) 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 (22151992) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22151992 Nombre de photos uploadées : 51 / 23040 (0%) 17042025 22151992 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 17042025 22151992 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1350830180, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8cb76b3ea9170372be7a27236299a220.jpg', 'username': None, 'uploaded_at': 1744914668, 'text': 'image_17042025_20_30_04_010153m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350830167, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2d4791c14248216750ec8dd7cc92a16d.jpg', 'username': None, 'uploaded_at': 1744914668, 'text': 'image_17042025_20_30_14_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350830155, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/2c61c3c3daf69ae1e3ed81407329bc71.jpg', 'username': None, 'uploaded_at': 1744914668, 'text': 'image_17042025_20_30_33_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350830147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/4a3db61051ec6b4aa4dbb5039ec59cd7.jpg', 'username': None, 'uploaded_at': 1744914668, 'text': 'image_17042025_20_30_43_010138m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022706985473632812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22151992, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028269529342651367 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732074, 'mtr_portfolio_id': 22149555, 'dashboard_result_id': 9947922, '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_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732074, 'mtr_portfolio_id': 22150422, 'dashboard_result_id': 9947923, '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_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732074, 'mtr_portfolio_id': 22151606, 'dashboard_result_id': 9947924, '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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732074, 'mtr_portfolio_id': 22151992, 'dashboard_result_id': 9947925, '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_P22151992_17-04-2025_20_41_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, '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 = 22149555 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': 2732312, 'mtr_portfolio_id': 22149555, 'created_at': datetime.datetime(2025, 4, 17, 20, 2, 58), 'result': '0.04670585416197204', 'result_long': None, 'result_double': None}] Qualite : 0.04670585416197204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22149555 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22149555_17-04-2025_20_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22149555 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_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, 'pht': 3726}}" where mtr_portfolio_id = 22149555 and dashboard_run_id = 1732074 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`=22149555 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947922, 0.04670585416197204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22149555_17-04-2025_20_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22149558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22149559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22149560, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22149561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22149562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22149563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22149564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22149565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22149566, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22149567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22149568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22149569, '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 = 22150422 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': 2732373, 'mtr_portfolio_id': 22150422, 'created_at': datetime.datetime(2025, 4, 17, 20, 16, 57), 'result': '0.03475386831050838', 'result_long': None, 'result_double': None}] Qualite : 0.03475386831050838 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22150422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22150422_17-04-2025_20_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22150422 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_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, 'pht': 3726}}" where mtr_portfolio_id = 22150422 and dashboard_run_id = 1732074 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`=22150422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947923, 0.03475386831050838, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22150422_17-04-2025_20_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22150536, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22150537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22150538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22150539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22150540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22150541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22150542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22150543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22150544, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22150545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22150546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22150547, '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 = 22151606 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': 2732439, 'mtr_portfolio_id': 22151606, 'created_at': datetime.datetime(2025, 4, 17, 20, 32, 57), 'result': '0.05243456456753769', 'result_long': None, 'result_double': None}] Qualite : 0.05243456456753769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151606 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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}" where mtr_portfolio_id = 22151606 and dashboard_run_id = 1732074 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`=22151606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947924, 0.05243456456753769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, '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 = 22151992 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': 2732486, 'mtr_portfolio_id': 22151992, 'created_at': datetime.datetime(2025, 4, 17, 20, 42, 59), 'result': '0.048328092737109626', 'result_long': None, 'result_double': None}] Qualite : 0.048328092737109626 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_20_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151992 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_P22151992_17-04-2025_20_43_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, 'pht': 3726}}" where mtr_portfolio_id = 22151992 and dashboard_run_id = 1732074 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`=22151992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947925, 0.048328092737109626, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_20_43_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, '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 (22149555,22150422,22151606,22151992) result : ((1350806990,), (1350807049,), (1350807104,), (1350807152,), (1350807184,), (1350807378,), (1350807398,), (1350807426,), (1350807471,), (1350807977,), (1350808034,), (1350808112,), (1350808209,), (1350808288,), (1350808369,), (1350808951,), (1350809004,), (1350809075,), (1350809151,), (1350809609,), (1350809634,), (1350809680,), (1350809731,), (1350810129,), (1350810136,), (1350810165,), (1350810199,), (1350810227,), (1350810264,), (1350810575,), (1350810644,), (1350810720,), (1350810805,), (1350810886,), (1350810949,), (1350811908,), (1350812051,), (1350812263,), (1350813044,), (1350813074,), (1350813117,), (1350813144,), (1350813664,), (1350813834,), (1350814010,), (1350814089,), (1350814129,), (1350814567,), (1350814761,), (1350814837,), (1350815467,), (1350815501,), (1350815534,), (1350815559,), (1350815583,), (1350816586,), (1350816695,), (1350816752,), (1350816815,), (1350816872,), (1350818085,), (1350818150,), (1350818218,), (1350818257,), (1350818374,), (1350818406,), (1350818423,), (1350818427,), (1350818431,), (1350818666,), (1350818567,), (1350818586,), (1350818589,), (1350818627,), (1350819207,), (1350819265,), (1350819319,), (1350819414,), (1350820033,), (1350820084,), (1350820137,), (1350820188,), (1350820234,), (1350820292,), (1350820776,), (1350820805,), (1350820833,), (1350820864,), (1350820892,), (1350820925,), (1350821012,), (1350821014,), (1350821017,), (1350822406,), (1350822704,), (1350822777,), (1350822836,), (1350822889,), (1350822948,), (1350823744,), (1350823772,), (1350823799,), (1350823829,), (1350823878,), (1350823983,), (1350824534,), (1350824555,), (1350824577,), (1350824616,), (1350824623,), (1350824638,), (1350824667,), (1350824702,), (1350824758,), (1350825198,), (1350825242,), (1350825293,), (1350825324,), (1350825360,), (1350825547,), (1350825554,), (1350825597,), (1350825637,), (1350825653,), (1350825659,), (1350825752,), (1350825754,), (1350825760,), (1350825788,), (1350825816,), (1350825843,), (1350825896,), (1350825900,), (1350825904,), (1350826207,), (1350826233,), (1350826262,), (1350826287,), (1350826431,), (1350826457,), (1350826484,), (1350826517,), (1350826571,), (1350826889,), (1350826861,), (1350827329,), (1350827363,), (1350827369,), (1350827503,), (1350827511,), (1350827522,), (1350828132,), (1350828136,), (1350828141,), (1350828146,), (1350828159,), (1350828175,), (1350828479,), (1350828508,), (1350828578,), (1350828627,), (1350828630,), (1350828636,), (1350828844,), (1350828848,), (1350828852,), (1350829161,), (1350829191,), (1350829225,), (1350829249,), (1350829296,), (1350829300,), (1350829305,), (1350829311,), (1350829323,), (1350829369,), (1350829374,), (1350829375,), (1350829377,), (1350829441,), (1350829459,), (1350829468,), (1350829473,), (1350829484,), (1350829487,), (1350829590,), (1350829592,), (1350829594,), (1350829901,), (1350829904,), (1350829910,), (1350829915,), (1350829961,), (1350829965,), (1350829969,), (1350829974,), (1350829978,), (1350829984,), (1350830017,), (1350830020,), (1350830022,), (1350830026,), (1350830089,), (1350830098,), (1350830100,), (1350830103,), (1350830105,), (1350830185,), (1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22151992]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] map_info['map_portfolio_photo'] : {22151992: [1350832650, 1350832648, 1350832597, 1350832593, 1350832590, 1350832543, 1350832541, 1350832539, 1350832537, 1350832530, 1350832479, 1350832476, 1350832455, 1350832435, 1350832430, 1350832418, 1350832038, 1350832017, 1350832015, 1350831820, 1350831772, 1350831726, 1350831694, 1350831331, 1350831326, 1350831319, 1350831308, 1350831306, 1350831264, 1350831260, 1350831255, 1350831242, 1350831075, 1350830962, 1350830898, 1350830870, 1350830850, 1350830847, 1350830467, 1350830444, 1350830415, 1350830378, 1350830343, 1350830248, 1350830245, 1350830242, 1350830240, 1350830180, 1350830167, 1350830155, 1350830147]} final : True mtd_id 4302 list_pids : [1350832650, 1350832648, 1350832597, 1350832593, 1350832590] Looping around the photos to save general results len do output : 1 /22151992Didn'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, '2732486') ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486') ('4302', None, None, None, None, None, None, None, '2732486') ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22151992', 'None', None, None, None, None, '2732486'), ('4302', '22151992', '1350832650', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832648', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832597', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832593', None, None, None, None, None, '2732486'), ('4302', '22151992', '1350832590', None, None, None, None, None, '2732486')] time used for this insertion : 0.013246774673461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.383197546005249 time spend to save output : 0.013521432876586914 total time spend for step 5 : 0.39671897888183594 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 (2732486) 2.38user 2.33system 0:11.49elapsed 41%CPU (0avgtext+0avgdata 158608maxresident)k 112288inputs+10544outputs (514major+74069minor)pagefaults 0swaps