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 : 2625238 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 (2624893) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2624893) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938430 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2624893'] with mtr_portfolio_ids : ['20938430'] and first list_photo_ids : [] new path : /proc/2625238/ Name: python3 Umask: 0002 State: R (running) Tgid: 2625238 Ngid: 0 Pid: 2625238 PPid: 2625237 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2625238 NSpid: 2625238 NSpgid: 2623878 NSsid: 2623878 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99368 kB VmRSS: 99368 kB RssAnon: 59752 kB RssFile: 39616 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 66 nonvoluntary_ctxt_switches: 146 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2625238', 'Ngid': '0', 'Pid': '2625238', 'PPid': '2625237', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2625238', 'NSpid': '2625238', 'NSpgid': '2623878', 'NSsid': '2623878', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99368 kB', 'VmRSS': '99368 kB', 'RssAnon': '59752 kB', 'RssFile': '39616 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '66', 'nonvoluntary_ctxt_switches': '146'} ('datou_batch_current', '2625238', '1106844', '0', '1106844', '865592', '99368', b'', 'marlene', '2624893') 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 (20938430) 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 (2624893 ) ) 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 (20938430) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340205846, 'portfolio_id': 20938430}, {'photo_id': 1340203924, 'portfolio_id': 20938430}, {'photo_id': 1340203922, 'portfolio_id': 20938430}, {'photo_id': 1340203918, 'portfolio_id': 20938430}, {'photo_id': 1340203915, 'portfolio_id': 20938430}, {'photo_id': 1340203911, 'portfolio_id': 20938430}, {'photo_id': 1340203840, 'portfolio_id': 20938430}, {'photo_id': 1340203833, 'portfolio_id': 20938430}, {'photo_id': 1340203824, 'portfolio_id': 20938430}, {'photo_id': 1340203820, 'portfolio_id': 20938430}, {'photo_id': 1340203798, 'portfolio_id': 20938430}, {'photo_id': 1340203793, 'portfolio_id': 20938430}, {'photo_id': 1340203790, 'portfolio_id': 20938430}, {'photo_id': 1340203786, 'portfolio_id': 20938430}, {'photo_id': 1340203783, 'portfolio_id': 20938430}, {'photo_id': 1340203779, 'portfolio_id': 20938430}, {'photo_id': 1340203532, 'portfolio_id': 20938430}, {'photo_id': 1340203528, 'portfolio_id': 20938430}, {'photo_id': 1340203525, 'portfolio_id': 20938430}, {'photo_id': 1340203520, 'portfolio_id': 20938430}, {'photo_id': 1340203054, 'portfolio_id': 20938430}, {'photo_id': 1340203040, 'portfolio_id': 20938430}, {'photo_id': 1340203021, 'portfolio_id': 20938430}, {'photo_id': 1340202938, 'portfolio_id': 20938430}, {'photo_id': 1340202889, 'portfolio_id': 20938430}, {'photo_id': 1340202886, 'portfolio_id': 20938430}, {'photo_id': 1340202616, 'portfolio_id': 20938430}, {'photo_id': 1340202614, 'portfolio_id': 20938430}, {'photo_id': 1340202610, 'portfolio_id': 20938430}, {'photo_id': 1340202537, 'portfolio_id': 20938430}, {'photo_id': 1340202436, 'portfolio_id': 20938430}, {'photo_id': 1340201865, 'portfolio_id': 20938430}, {'photo_id': 1340201860, 'portfolio_id': 20938430}, {'photo_id': 1340201847, 'portfolio_id': 20938430}, {'photo_id': 1340201842, 'portfolio_id': 20938430}, {'photo_id': 1340201807, 'portfolio_id': 20938430}, {'photo_id': 1340201802, 'portfolio_id': 20938430}, {'photo_id': 1340201796, 'portfolio_id': 20938430}, {'photo_id': 1340201790, 'portfolio_id': 20938430}, {'photo_id': 1340201786, 'portfolio_id': 20938430}, {'photo_id': 1340201762, 'portfolio_id': 20938430}, {'photo_id': 1340201757, 'portfolio_id': 20938430}, {'photo_id': 1340201754, 'portfolio_id': 20938430}, {'photo_id': 1340201749, 'portfolio_id': 20938430}, {'photo_id': 1340201682, 'portfolio_id': 20938430}, {'photo_id': 1340201679, 'portfolio_id': 20938430}, {'photo_id': 1340201674, 'portfolio_id': 20938430}, {'photo_id': 1340201669, 'portfolio_id': 20938430}, {'photo_id': 1340201666, 'portfolio_id': 20938430}, {'photo_id': 1340201643, 'portfolio_id': 20938430}, {'photo_id': 1340201640, 'portfolio_id': 20938430}, {'photo_id': 1340201634, 'portfolio_id': 20938430}, {'photo_id': 1340201631, 'portfolio_id': 20938430}, {'photo_id': 1340201626, 'portfolio_id': 20938430}, {'photo_id': 1340201505, 'portfolio_id': 20938430}, {'photo_id': 1340201501, 'portfolio_id': 20938430}, {'photo_id': 1340201437, 'portfolio_id': 20938430}] map_portfolio_id_photo_id: {20938430: [1340205846, 1340203924, 1340203922, 1340203918, 1340203915, 1340203911, 1340203840, 1340203833, 1340203824, 1340203820, 1340203798, 1340203793, 1340203790, 1340203786, 1340203783, 1340203779, 1340203532, 1340203528, 1340203525, 1340203520, 1340203054, 1340203040, 1340203021, 1340202938, 1340202889, 1340202886, 1340202616, 1340202614, 1340202610, 1340202537, 1340202436, 1340201865, 1340201860, 1340201847, 1340201842, 1340201807, 1340201802, 1340201796, 1340201790, 1340201786, 1340201762, 1340201757, 1340201754, 1340201749, 1340201682, 1340201679, 1340201674, 1340201669, 1340201666, 1340201643, 1340201640, 1340201634, 1340201631, 1340201626, 1340201505, 1340201501, 1340201437]} ##### 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.01553797721862793 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 28 19:52:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20938430) 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 : 20938430 get user id for portfolio 20938430 get sub ptf for main ptf 20938430, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'metal', 'Carton_gris', 'flou', 'plastique', 'Carton_brun', 'kraft', 'cartonnette', 'environnement', 'papier', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20938430 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','flou','plastique','Carton_brun','kraft','cartonnette','environnement','papier','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20938430 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','flou','plastique','Carton_brun','kraft','cartonnette','environnement','papier','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20938430, 'sub_port_id': 20938434, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563406, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'Carton_gris': {'main_port_id': 20938430, 'sub_port_id': 20938435, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563407, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'environnement': {'main_port_id': 20938430, 'sub_port_id': 20938436, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563408, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'mal_croppe': {'main_port_id': 20938430, 'sub_port_id': 20938437, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563409, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'cartonnette': {'main_port_id': 20938430, 'sub_port_id': 20938438, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563410, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20938430, 'sub_port_id': 20938439, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563411, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'autre_refus': {'main_port_id': 20938430, 'sub_port_id': 20938440, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563412, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'metal': {'main_port_id': 20938430, 'sub_port_id': 20938441, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563413, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'kraft': {'main_port_id': 20938430, 'sub_port_id': 20938442, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563414, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'papier': {'main_port_id': 20938430, 'sub_port_id': 20938443, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563415, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'Carton_brun': {'main_port_id': 20938430, 'sub_port_id': 20938444, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563416, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}, 'flou': {'main_port_id': 20938430, 'sub_port_id': 20938445, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563417, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20938434 , 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=20938430 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 (20938434) result : ((1340203223,), (1340203224,), (1340203225,), (1340203227,), (1340203664,), (1340203665,), (1340203980,), (1340204129,), (1340204130,), (1340204131,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938435 , 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=20938430 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 (20938435) result : ((1340201718,), (1340201828,), (1340202908,), (1340202910,), (1340202911,), (1340202912,), (1340203141,), (1340203751,), (1340203880,), (1340203881,), (1340203895,), (1340203976,), (1340203977,), (1340203991,), (1340204123,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938436 , 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=20938430 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 (20938436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938437 , 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=20938430 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 (20938437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938438 , 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=20938430 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 (20938438) result : ((1340201829,), (1340201830,), (1340201853,), (1340202934,), (1340202935,), (1340203883,), (1340203979,), (1340204057,), (1340204058,), (1340204059,), (1340204060,), (1340204121,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938439 , 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=20938430 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 (20938439) result : ((1340201824,), (1340201848,), (1340201849,), (1340201850,), (1340202891,), (1340202892,), (1340203127,), (1340203612,), (1340203613,), (1340203614,), (1340203616,), (1340203890,), (1340203891,), (1340203974,), (1340204046,), (1340204047,), (1340204048,), (1340204049,), (1340204050,), (1340204051,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938440 , 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=20938430 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 (20938440) result : ((1340201715,), (1340201826,), (1340201827,), (1340202893,), (1340203872,), (1340203893,), (1340203894,), (1340204053,), (1340204054,), (1340204120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938441 , 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=20938430 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 (20938441) result : ((1340204133,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938442 , 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=20938430 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 (20938442) result : ((1340203903,), (1340204072,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938443 , 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=20938430 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 (20938443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938444 , 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=20938430 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 (20938444) result : ((1340201725,), (1340201726,), (1340201727,), (1340201728,), (1340201831,), (1340201832,), (1340201833,), (1340201834,), (1340201835,), (1340201856,), (1340201857,), (1340201858,), (1340201859,), (1340202624,), (1340202986,), (1340202987,), (1340202988,), (1340203190,), (1340203191,), (1340203192,), (1340203194,), (1340203636,), (1340203896,), (1340203897,), (1340203898,), (1340203899,), (1340203900,), (1340203901,), (1340203902,), (1340203992,), (1340203993,), (1340204062,), (1340204064,), (1340204065,), (1340204066,), (1340204067,), (1340204068,), (1340204069,), (1340204070,), (1340204071,), (1340204125,), (1340204126,), (1340204127,), (1340204128,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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 20938445 , 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=20938430 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 (20938445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20938430) result : ((1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) 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`=20938430 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','flou','plastique','Carton_brun','kraft','cartonnette','environnement','papier','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20938430 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','Carton_gris','flou','plastique','Carton_brun','kraft','cartonnette','environnement','papier','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 20938430, 'sub_port_id': 20938446, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563418, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'Carton_gris': {'main_port_id': 20938430, 'sub_port_id': 20938447, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563419, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'environnement': {'main_port_id': 20938430, 'sub_port_id': 20938448, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563420, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'mal_croppe': {'main_port_id': 20938430, 'sub_port_id': 20938449, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563421, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'cartonnette': {'main_port_id': 20938430, 'sub_port_id': 20938450, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563422, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 20938430, 'sub_port_id': 20938451, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563423, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'autre_refus': {'main_port_id': 20938430, 'sub_port_id': 20938452, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563424, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'metal': {'main_port_id': 20938430, 'sub_port_id': 20938453, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563425, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'kraft': {'main_port_id': 20938430, 'sub_port_id': 20938454, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563426, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'papier': {'main_port_id': 20938430, 'sub_port_id': 20938455, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563427, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'Carton_brun': {'main_port_id': 20938430, 'sub_port_id': 20938456, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563428, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}, 'flou': {'main_port_id': 20938430, 'sub_port_id': 20938457, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13563429, 'last_updated_at': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 19, 45), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 19, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20938457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20938445 lien utilise dans velours : https://www.fotonower.com/velours/20938446,20938447,20938448,20938449,20938450,20938451,20938452,20938453,20938454,20938455,20938456,20938457?tags=plastique,Carton_gris,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse,autre_refus,metal,kraft,papier,Carton_brun,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20938430]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340205846] map_info['map_portfolio_photo'] : {20938430: [1340205846, 1340203924, 1340203922, 1340203918, 1340203915, 1340203911, 1340203840, 1340203833, 1340203824, 1340203820, 1340203798, 1340203793, 1340203790, 1340203786, 1340203783, 1340203779, 1340203532, 1340203528, 1340203525, 1340203520, 1340203054, 1340203040, 1340203021, 1340202938, 1340202889, 1340202886, 1340202616, 1340202614, 1340202610, 1340202537, 1340202436, 1340201865, 1340201860, 1340201847, 1340201842, 1340201807, 1340201802, 1340201796, 1340201790, 1340201786, 1340201762, 1340201757, 1340201754, 1340201749, 1340201682, 1340201679, 1340201674, 1340201669, 1340201666, 1340201643, 1340201640, 1340201634, 1340201631, 1340201626, 1340201505, 1340201501, 1340201437]} final : False mtd_id 4302 list_pids : [1340205846] Looping around the photos to save general results len do output : 1 /20938430. 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, '2624893') ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20938430', "{'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445}", None, None, None, None, '2624893'), ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893')] time used for this insertion : 0.011834144592285156 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.419818639755249 time spend to save output : 0.012113332748413086 total time spend for step 1 : 1.431931972503662 step2:final Fri Feb 28 19:52:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20938430) 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 20938430 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340201505,1340201501,1340201437,1340201643,1340201640,1340201634,1340201631,1340201626,1340201682,1340201679,1340201674,1340201669,1340201666,1340201762,1340201757,1340201754,1340201749,1340201807,1340201802,1340201796,1340201790,1340201786,1340201865,1340201860,1340201847,1340201842,1340202616,1340202614,1340202610,1340202537,1340202436,1340203054,1340203040,1340203021,1340202938,1340202889,1340202886,1340203532,1340203528,1340203525,1340203520,1340203798,1340203793,1340203790,1340203786,1340203783,1340203779,1340203840,1340203833,1340203824,1340203820,1340203924,1340203922,1340203918,1340203915,1340203911,1340205846); 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([20938430]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340205846: ('0.11342680958395596',)} new output for save of step final : {1340205846: ('0.11342680958395596',)} [1340205846] map_info['map_portfolio_photo'] : {20938430: [1340205846, 1340203924, 1340203922, 1340203918, 1340203915, 1340203911, 1340203840, 1340203833, 1340203824, 1340203820, 1340203798, 1340203793, 1340203790, 1340203786, 1340203783, 1340203779, 1340203532, 1340203528, 1340203525, 1340203520, 1340203054, 1340203040, 1340203021, 1340202938, 1340202889, 1340202886, 1340202616, 1340202614, 1340202610, 1340202537, 1340202436, 1340201865, 1340201860, 1340201847, 1340201842, 1340201807, 1340201802, 1340201796, 1340201790, 1340201786, 1340201762, 1340201757, 1340201754, 1340201749, 1340201682, 1340201679, 1340201674, 1340201669, 1340201666, 1340201643, 1340201640, 1340201634, 1340201631, 1340201626, 1340201505, 1340201501, 1340201437]} final : False mtd_id 4302 list_pids : [1340205846] Looping around the photos to save general results len do output : 1 /1340205846.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, '2624893') ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '20938430', '1340205846', '0.11342680958395596', None, None, None, None, '2624893')] time used for this insertion : 0.012451410293579102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07118368148803711 time spend to save output : 0.01272130012512207 total time spend for step 2 : 0.08390498161315918 step3:velours_tree Fri Feb 28 19:52:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20938430: [{'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445}]} input_args_next_step : {20938430: ()} output_args : {20938430: [{'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445}]} args : 20938430 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 : ({'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20938430) 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([20938430]) 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.32999372482299805 time spend to save output : 3.790855407714844e-05 total time spend for step 3 : 0.3300316333770752 step4:send_mail_cod Fri Feb 28 19:52:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340205846: ('0.11342680958395596',)} input_args_next_step : {1340205846: ()} output_args : {1340205846: ('0.11342680958395596',)} args : 1340205846 depend.output_id : 0 complete output_args for input 3 : {20938430: [{'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445}]} input_args_next_step : {1340205846: ('0.11342680958395596',), 20938430: ()} output_args : {20938430: [{'plastique': 20938434, 'Carton_gris': 20938435, 'environnement': 20938436, 'mal_croppe': 20938437, 'cartonnette': 20938438, 'Teint_Dans_La_Masse': 20938439, 'autre_refus': 20938440, 'metal': 20938441, 'kraft': 20938442, 'papier': 20938443, 'Carton_brun': 20938444, 'flou': 20938445}]} args : 20938430 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 :2, first value : ('0.11342680958395596',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20938430) 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 (1340205846) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340205846 download finish for photo 1340205846 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20938430_28-02-2025_19_52_31.pdf 20938434 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=20938434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340203223: '1740767870_3745977_1340201796_b67c154fef55c3d0f6bb3bbf3c5c48f7_rle_crop_3690401205_0.png', 1340203224: '1740767870_3745977_1340201790_28b54be785eb7baaeeb11c916e3f9fb3_rle_crop_3690401217_0.png', 1340203225: '1740767870_3745977_1340201786_fea59bcf282ff47b47bd28da932bc90f_rle_crop_3690401232_0.png', 1340203227: '1740767870_3745977_1340201786_fea59bcf282ff47b47bd28da932bc90f_rle_crop_3690401230_0.png', 1340203664: '1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401612_0.png', 1340203665: '1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401618_0.png', 1340203980: '1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402732_0.png', 1340204129: '1740768311_3750925_1340203922_fdf36556abb381ecf286171e36c43de9_rle_crop_3690403450_0.png', 1340204130: '1740768311_3750925_1340203918_95522785fef1db9f0448e71af0c12d81_rle_crop_3690403472_0.png', 1340204131: '1740768311_3750925_1340203911_683819a4d2578eab4207584aad4a7ef4_rle_crop_3690403508_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c6b735dc27cc70852bac9407317d6377_47775490.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3e57d914bf7f8a8005a575de716f20bc_61400515.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7b6d8362fa755e2649f40a20c8cd6b7d_47684420.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/949759e2fb337f5ce5016c54701d4198_3019478.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ccd1336081550923a7431c3880331e60_61837999.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/10e988a93007c19753127681204757c9_65378755.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c4772436214738727c713341d923089f_90336470.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ecf56f890fd80e2ca503c74bdc168929_37123400.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/59db4eb827c43fe7c28de9be5116bdd6_52185167.png change filename to text .imagette209384341740768751/ imagette209384341740768751/1740768311_3750925_1340203911_683819a4d2578eab4207584aad4a7ef4_rle_crop_3690403508_0.png.png imagette209384341740768751/1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401612_0.png.png imagette209384341740768751/1740767870_3745977_1340201786_fea59bcf282ff47b47bd28da932bc90f_rle_crop_3690401232_0.png.png imagette209384341740768751/1740767870_3745977_1340201786_fea59bcf282ff47b47bd28da932bc90f_rle_crop_3690401230_0.png.png imagette209384341740768751/1740767870_3745977_1340201796_b67c154fef55c3d0f6bb3bbf3c5c48f7_rle_crop_3690401205_0.png.png imagette209384341740768751/1740767870_3745977_1340201790_28b54be785eb7baaeeb11c916e3f9fb3_rle_crop_3690401217_0.png.png imagette209384341740768751/1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401618_0.png.png imagette209384341740768751/1740768311_3750925_1340203918_95522785fef1db9f0448e71af0c12d81_rle_crop_3690403472_0.png.png imagette209384341740768751/1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402732_0.png.png imagette209384341740768751/1740768311_3750925_1340203922_fdf36556abb381ecf286171e36c43de9_rle_crop_3690403450_0.png.png imagette209384371740768751/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e7ed2f3d0c99619beca7f4d315b3982b_67067800.png imagette209384341740768751 20938437 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=20938437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209384371740768751 20938438 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=20938438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340201829: '1740767714_3744091_1340201634_7ffeccdf238aebba288f9f2619408f39_rle_crop_3690398150_0.png', 1340201830: '1740767714_3744091_1340201626_f085979603254b76118c7b5682e74db2_rle_crop_3690398194_0.png', 1340201853: '1740767732_3744317_1340201679_f0a2ffc132a9beda664b2a4c35692e1f_rle_crop_3690398210_0.png', 1340202934: '1740767852_3745729_1340201749_5ba80515eb6721822b0ca1cdf53ecaf3_rle_crop_3690401157_0.png', 1340202935: '1740767852_3745729_1340201749_5ba80515eb6721822b0ca1cdf53ecaf3_rle_crop_3690401152_0.png', 1340203883: '1740768072_3748284_1340203528_dfd3cecb4399396ba0bc9373a0fdb92a_rle_crop_3690402372_0.png', 1340203979: '1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402726_0.png', 1340204057: '1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403006_0.png', 1340204058: '1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403015_0.png', 1340204059: '1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403056_0.png', 1340204060: '1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403069_0.png', 1340204121: '1740768311_3750925_1340203915_bac37cb252c9e849790eb020a194583d_rle_crop_3690403482_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8d39c02aa7a888bf9e841c16bd6e8a46_28680.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b55aeb4d8e758eb7ec3671a80b914c70_65321423.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7d584ed4d08f0769d87b8e3f55ef0e76_12722490.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/00d1cf82508deebb0b88559ebea8c1c1_229130.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c26bd3a785d968eca8452daa451f1b4f_2275557.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d3d6048d0754488c636386578e0ffcc7_9824120.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/da7acb894cf04d7198a07b9c551b98c7_67165222.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a36515fc073ea6701d080b876609db86_31750825.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bf24d85f71ffea1709d0d22c3f32195a_8758777.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3a79e750b6feccdaa8418643d1dafdcc_36616356.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e8212859ab40e73d139af9f23fa2fafb_21381458.png change filename to text .imagette209384381740768751/ imagette209384381740768751/1740767732_3744317_1340201679_f0a2ffc132a9beda664b2a4c35692e1f_rle_crop_3690398210_0.png.png imagette209384381740768751/1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402726_0.png.png imagette209384381740768751/1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403056_0.png.png imagette209384381740768751/1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403006_0.png.png imagette209384381740768751/1740767714_3744091_1340201626_f085979603254b76118c7b5682e74db2_rle_crop_3690398194_0.png.png imagette209384381740768751/1740768072_3748284_1340203528_dfd3cecb4399396ba0bc9373a0fdb92a_rle_crop_3690402372_0.png.png imagette209384381740768751/1740767714_3744091_1340201634_7ffeccdf238aebba288f9f2619408f39_rle_crop_3690398150_0.png.png imagette209384381740768751/1740768311_3750925_1340203915_bac37cb252c9e849790eb020a194583d_rle_crop_3690403482_0.png.png imagette209384381740768751/1740767852_3745729_1340201749_5ba80515eb6721822b0ca1cdf53ecaf3_rle_crop_3690401157_0.png.png imagette209384381740768751/1740767852_3745729_1340201749_5ba80515eb6721822b0ca1cdf53ecaf3_rle_crop_3690401152_0.png.png imagette209384381740768751/1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403069_0.png.png imagette209384381740768751/1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403015_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/33b7d9e343e2c6d6dbd6a37898ba85f0_37621360.png imagette209384381740768751 20938440 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=20938440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340201715: '1740767591_3742764_1340201437_b4b6fc85b7a614baae8989519e43212e_rle_crop_3690396945_0.png', 1340201826: '1740767714_3744091_1340201682_cba4ea916f66e50afea7386cef6c457c_rle_crop_3690398002_0.png', 1340201827: '1740767714_3744091_1340201626_f085979603254b76118c7b5682e74db2_rle_crop_3690398196_0.png', 1340202893: '1740767852_3745729_1340201754_11ab22dde98a367f8a12cedc23267e87_rle_crop_3690401139_0.png', 1340203872: '1740768072_3748284_1340203528_dfd3cecb4399396ba0bc9373a0fdb92a_rle_crop_3690402373_0.png', 1340203893: '1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402409_0.png', 1340203894: '1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402407_0.png', 1340204053: '1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403039_0.png', 1340204054: '1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403081_0.png', 1340204120: '1740768311_3750925_1340203911_683819a4d2578eab4207584aad4a7ef4_rle_crop_3690403502_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9ebf2e7377050689ef8cfd62542a5c38_59642724.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/583ac6fda6ecb89a6dbc4fc3b9d87737_61564920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ff090da1d025209734a387d6ed11f8d0_40536953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/12fba239cbfc0ec1e55ba78ee8914d69_98302370.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/15d989ef1d4f9405fb45ccaa29943192_51041758.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e5176bf468ed8cf33384f10822c95a94_42274575.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/18ab155f31be99efc9d742e6511da326_40859884.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fa2cf06078094e8edd1704835766d42c_75823788.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/32ba1f9cde2858f25b880b90dbcf7c9f_61149202.png change filename to text .imagette209384401740768752/ imagette209384401740768752/1740767714_3744091_1340201626_f085979603254b76118c7b5682e74db2_rle_crop_3690398196_0.png.png imagette209384401740768752/1740767714_3744091_1340201682_cba4ea916f66e50afea7386cef6c457c_rle_crop_3690398002_0.png.png imagette209384401740768752/1740767852_3745729_1340201754_11ab22dde98a367f8a12cedc23267e87_rle_crop_3690401139_0.png.png imagette209384401740768752/1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403081_0.png.png imagette209384401740768752/1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403039_0.png.png imagette209384401740768752/1740767591_3742764_1340201437_b4b6fc85b7a614baae8989519e43212e_rle_crop_3690396945_0.png.png imagette209384401740768752/1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402409_0.png.png imagette209384401740768752/1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402407_0.png.png imagette209384401740768752/1740768072_3748284_1340203528_dfd3cecb4399396ba0bc9373a0fdb92a_rle_crop_3690402373_0.png.png imagette209384401740768752/1740768311_3750925_1340203911_683819a4d2578eab4207584aad4a7ef4_rle_crop_3690403502_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/757394b22098c679696d4abfe2f65f7c_4971202.png imagette209384401740768752 20938441 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=20938441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340204133: '1740768311_3750925_1340203918_95522785fef1db9f0448e71af0c12d81_rle_crop_3690403457_0.png'} change filename to text .imagette209384411740768753/ imagette209384411740768753/1740768311_3750925_1340203918_95522785fef1db9f0448e71af0c12d81_rle_crop_3690403457_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/86c2556a004e2a787308f4ffdaaa296c_85103204.png imagette209384411740768753 20938442 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=20938442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340203903: '1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402395_0.png', 1340204072: '1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3e66c195299681c77c9887e25f9225c7_91187927.png change filename to text .imagette209384421740768753/ imagette209384421740768753/1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402395_0.png.png imagette209384421740768753/1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403045_0.png.png imagette209384451740768753/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/32be344e770eaf28e3b5a844f782b2d0_25741752.png imagette209384421740768753 20938445 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=20938445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209384451740768753 20938435 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=20938435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340201718: '1740767591_3742764_1340201437_b4b6fc85b7a614baae8989519e43212e_rle_crop_3690396944_0.png', 1340201828: '1740767714_3744091_1340201640_ba670ce17c84fa090e4644de45ebe843_rle_crop_3690398014_0.png', 1340202908: '1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400983_0.png', 1340202910: '1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400985_0.png', 1340202911: '1740767852_3745729_1340201757_7ed7124035c4161e3978078bda22e749_rle_crop_3690401124_0.png', 1340202912: '1740767852_3745729_1340201757_7ed7124035c4161e3978078bda22e749_rle_crop_3690401130_0.png', 1340203141: '1740767870_3745977_1340201802_f6472514c47cf29f5ea197d9febfeb49_rle_crop_3690401182_0.png', 1340203751: '1740767970_3747106_1340202616_f35745a5e0f58a8c9cccbdb5ef920fd8_rle_crop_3690401644_0.png', 1340203880: '1740768072_3748284_1340203525_c003d105581844300fbfd18e077f46b1_rle_crop_3690402381_0.png', 1340203881: '1740768072_3748284_1340203520_7a11fd769efaf222f840337cb6bafaa7_rle_crop_3690402385_0.png', 1340203895: '1740768061_3748158_1340203021_7b4a0fd3e95582518d3f26e638883431_rle_crop_3690402426_0.png', 1340203976: '1740768192_3749638_1340203824_bac1b866e27ab7026f46228148d85c64_rle_crop_3690402740_0.png', 1340203977: '1740768192_3749638_1340203820_9937658fb74440829f3909199cf76eba_rle_crop_3690402745_0.png', 1340203991: '1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402774_0.png', 1340204123: '1740768332_3751294_1340203924_f564e1e63f0b354720c8a820a8698aca_rle_crop_3690404205_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fe938dd15a11bc350665b5100b6f32fa_87988213.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3cdfc2a5cacde2ab1263905a9a435ad6_68035301.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/63645dd0889995eefb5ecddccd1bb53e_7504362.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d21dd76348bf501552284c9581b69ec9_27219876.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9db1652c8be3a5c6496d7de24ca7bf92_29265746.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a5819fc46d7f21f6a8872b310ec01c9d_88677379.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/facbfee9c48abc4630cb20e29d2d705f_69132318.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/035cdeb446defead58a249c0d0e05050_66851624.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/289497322945c93e1132f3f0e83056e0_40053023.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7ba9ee38bcf4c4ce9ad60c9ccd00216b_75513476.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5df194ae12bba4ba2d67ea56a2487888_68977034.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b6b551b09beed279c4edf80282dfbc0f_43026878.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ae7cc5f9d04382abecbd395dd0de8c21_91645734.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7c1d681f1699a20b0c699ec950f88b4b_36977694.png change filename to text .imagette209384351740768753/ imagette209384351740768753/1740768192_3749638_1340203820_9937658fb74440829f3909199cf76eba_rle_crop_3690402745_0.png.png imagette209384351740768753/1740768072_3748284_1340203520_7a11fd769efaf222f840337cb6bafaa7_rle_crop_3690402385_0.png.png imagette209384351740768753/1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402774_0.png.png imagette209384351740768753/1740768072_3748284_1340203525_c003d105581844300fbfd18e077f46b1_rle_crop_3690402381_0.png.png imagette209384351740768753/1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400983_0.png.png imagette209384351740768753/1740767714_3744091_1340201640_ba670ce17c84fa090e4644de45ebe843_rle_crop_3690398014_0.png.png imagette209384351740768753/1740768061_3748158_1340203021_7b4a0fd3e95582518d3f26e638883431_rle_crop_3690402426_0.png.png imagette209384351740768753/1740767591_3742764_1340201437_b4b6fc85b7a614baae8989519e43212e_rle_crop_3690396944_0.png.png imagette209384351740768753/1740768192_3749638_1340203824_bac1b866e27ab7026f46228148d85c64_rle_crop_3690402740_0.png.png imagette209384351740768753/1740767852_3745729_1340201757_7ed7124035c4161e3978078bda22e749_rle_crop_3690401124_0.png.png imagette209384351740768753/1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400985_0.png.png imagette209384351740768753/1740767870_3745977_1340201802_f6472514c47cf29f5ea197d9febfeb49_rle_crop_3690401182_0.png.png imagette209384351740768753/1740767970_3747106_1340202616_f35745a5e0f58a8c9cccbdb5ef920fd8_rle_crop_3690401644_0.png.png imagette209384351740768753/1740768332_3751294_1340203924_f564e1e63f0b354720c8a820a8698aca_rle_crop_3690404205_0.png.png imagette209384351740768753/1740767852_3745729_1340201757_7ed7124035c4161e3978078bda22e749_rle_crop_3690401130_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5247019a9d4b758cb202c6bf97dd660a_20974078.png imagette209384351740768753 20938439 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=20938439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340203616: '1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401628_0.png', 1340204051: '1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403094_0.png', 1340204050: '1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403075_0.png', 1340204049: '1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403061_0.png', 1340204048: '1740768231_3750105_1340203793_ec5a94e71e51d15979c742257ab54fdd_rle_crop_3690403029_0.png', 1340204047: '1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403011_0.png', 1340204046: '1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403013_0.png', 1340203974: '1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402730_0.png', 1340203891: '1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402402_0.png', 1340203890: '1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402394_0.png', 1340201824: '1740767714_3744091_1340201634_7ffeccdf238aebba288f9f2619408f39_rle_crop_3690398162_0.png', 1340203614: '1740767951_3746878_1340202537_39936383743cb969587d3326b82c4bb9_rle_crop_3690401604_0.png', 1340203613: '1740767951_3746878_1340202610_297c725649b796a9b2a8ec6f65ec4b59_rle_crop_3690401588_0.png', 1340203612: '1740767951_3746878_1340202610_297c725649b796a9b2a8ec6f65ec4b59_rle_crop_3690401589_0.png', 1340203127: '1740767870_3745977_1340201802_f6472514c47cf29f5ea197d9febfeb49_rle_crop_3690401188_0.png', 1340202892: '1740767852_3745729_1340201754_11ab22dde98a367f8a12cedc23267e87_rle_crop_3690401145_0.png', 1340202891: '1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400986_0.png', 1340201850: '1740767732_3744317_1340201666_3d770e4fd50a175558ede8e33895540c_rle_crop_3690399624_0.png', 1340201849: '1740767732_3744317_1340201674_f110d70e1c3dbfa614d10d4a9637c7b1_rle_crop_3690398234_0.png', 1340201848: '1740767732_3744317_1340201679_f0a2ffc132a9beda664b2a4c35692e1f_rle_crop_3690398213_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/06854169127e6478e6f6ed216d36ac0a_27253291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9a4f9b17a419a49e2080e93626bee474_84118623.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/655ff132e53b56685dc1d7c38a51b79a_46851563.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/86be9dde9d55a24020ef90921afdc843_52710887.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/001d58c38d43b96e8fe406eb09d78cbf_69006185.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e6b360ec1bd907026105e9a110624438_16284993.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4f36736aaaa3a4ad126f07131bc74ab9_68737905.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/fa8ba8a185b672e0b44777f02ddb4881_27921887.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/86a77f0df744ca2ba14c39aedd685e01_86883926.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9ba4c2790e58cafcd06aad7f69d62e16_40008450.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4b7d5a59957e69a5ad163e8c982d1719_93220579.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8f80223f46d50db79c68dd85e805e525_45044720.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8c978696a408d8f9f43360a24719b8f9_79131091.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/28a85efc43b983a9874a4ad6f3574006_30314260.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/954abe80887881ec923e54f95593072c_20386503.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/62d62c7a962b851ab141c7f7f9a4ac25_7761575.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4347f178703817149aefceec61a8d001_21214156.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/081db9538fce23008d98595c4dc209b3_33268356.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b2cbaf4ff52827ed5bdccc6c643394b3_65793766.png change filename to text .imagette209384391740768754/ imagette209384391740768754/1740768231_3750105_1340203793_ec5a94e71e51d15979c742257ab54fdd_rle_crop_3690403029_0.png.png imagette209384391740768754/1740767951_3746878_1340202610_297c725649b796a9b2a8ec6f65ec4b59_rle_crop_3690401589_0.png.png imagette209384391740768754/1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403075_0.png.png imagette209384391740768754/1740767870_3745977_1340201802_f6472514c47cf29f5ea197d9febfeb49_rle_crop_3690401188_0.png.png imagette209384391740768754/1740767714_3744091_1340201634_7ffeccdf238aebba288f9f2619408f39_rle_crop_3690398162_0.png.png imagette209384391740768754/1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402402_0.png.png imagette209384391740768754/1740767951_3746878_1340202436_ec7c7925197064ead1f56da7f769ff1a_rle_crop_3690401628_0.png.png imagette209384391740768754/1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402394_0.png.png imagette209384391740768754/1740767732_3744317_1340201679_f0a2ffc132a9beda664b2a4c35692e1f_rle_crop_3690398213_0.png.png imagette209384391740768754/1740767732_3744317_1340201666_3d770e4fd50a175558ede8e33895540c_rle_crop_3690399624_0.png.png imagette209384391740768754/1740768192_3749638_1340203833_b6b54af06baa5a93497431ade83e5124_rle_crop_3690402730_0.png.png imagette209384391740768754/1740767852_3745729_1340201807_b9cee87a8d5dc6acd1c8ea5373dede40_rle_crop_3690400986_0.png.png imagette209384391740768754/1740767852_3745729_1340201754_11ab22dde98a367f8a12cedc23267e87_rle_crop_3690401145_0.png.png imagette209384391740768754/1740767951_3746878_1340202610_297c725649b796a9b2a8ec6f65ec4b59_rle_crop_3690401588_0.png.png imagette209384391740768754/1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403061_0.png.png imagette209384391740768754/1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403094_0.png.png imagette209384391740768754/1740767951_3746878_1340202537_39936383743cb969587d3326b82c4bb9_rle_crop_3690401604_0.png.png imagette209384391740768754/1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403011_0.png.png imagette209384391740768754/1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403013_0.png.png imagette209384391740768754/1740767732_3744317_1340201674_f110d70e1c3dbfa614d10d4a9637c7b1_rle_crop_3690398234_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/77257f43b953346cf0563836a3121bc0_80036652.png imagette209384391740768754 20938444 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=20938444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340204065: '1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403059_0.png', 1340203897: '1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402412_0.png', 1340203898: '1740768061_3748158_1340203021_7b4a0fd3e95582518d3f26e638883431_rle_crop_3690402430_0.png', 1340203899: '1740768061_3748158_1340202938_60d5d7e11fa30b5dc037c73f51b8c0f0_rle_crop_3690402436_0.png', 1340203900: '1740768061_3748158_1340202889_b78a725c5a5e15bc9e11cab4fe484eb0_rle_crop_3690402446_0.png', 1340203901: '1740768061_3748158_1340202889_b78a725c5a5e15bc9e11cab4fe484eb0_rle_crop_3690402451_0.png', 1340203902: '1740768061_3748158_1340202886_12b2ff10eb53570361ffbd6651140bfc_rle_crop_3690402461_0.png', 1340203992: '1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402778_0.png', 1340203993: '1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402776_0.png', 1340204062: '1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403007_0.png', 1340204064: '1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403042_0.png', 1340203896: '1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402396_0.png', 1340204066: '1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403065_0.png', 1340204067: '1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403060_0.png', 1340204068: '1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403070_0.png', 1340204069: '1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403071_0.png', 1340204070: '1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403089_0.png', 1340204071: '1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403087_0.png', 1340204125: '1740768332_3751294_1340203924_f564e1e63f0b354720c8a820a8698aca_rle_crop_3690404204_0.png', 1340204126: '1740768311_3750925_1340203915_bac37cb252c9e849790eb020a194583d_rle_crop_3690403481_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/906f097df4fa0bc73868357960a54425_4935877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/f37425300adda705bcc9991c79a0659a_5734605.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/58a9bc5b3c47750182b030bb647fd2d3_46520343.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/d0d79be8bd77a618c2e18e790e9703ec_17491652.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a39ab4b2a8e2351db039d221aa89714c_50165331.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/dfe7ef9f79ad647dcad475759c7e3992_52557926.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/210588d18271bef9ccf4dcd9be3e9722_18392638.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3a09c267ea73f443fdbfd5781fb87c5c_9701815.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e93c4ec9c87672d24543cc0f7b113cb4_84959046.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/964bf8928572da36a29ae537e20b9d86_93974685.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a7c9ec7133dba326c3b9fc37a5317e46_90235115.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a902708831f40dc7998c02745e372e1e_59939648.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9cb32a91c368ef603bf71f354b60f00e_62211789.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2025518a009892f56eef365b65886dca_46878136.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e6b2f91b9544747827515737d1c6b806_66057015.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9b1bfdec963f16ca77c4c4f4cfa019ac_48114105.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c169ba4573589243f6b3415fb5b1ed4f_73934783.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/85a18aa60d747cdae93923416e7ceec9_23880555.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5460bd3000585ad72b224509f1d5c9f8_65100911.png change filename to text .imagette209384441740768755/ imagette209384441740768755/1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403060_0.png.png imagette209384441740768755/1740768061_3748158_1340202889_b78a725c5a5e15bc9e11cab4fe484eb0_rle_crop_3690402446_0.png.png imagette209384441740768755/1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403071_0.png.png imagette209384441740768755/1740768332_3751294_1340203924_f564e1e63f0b354720c8a820a8698aca_rle_crop_3690404204_0.png.png imagette209384441740768755/1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403087_0.png.png imagette209384441740768755/1740768231_3750105_1340203840_9645727e83b66996fae166aa83c7f2ac_rle_crop_3690403007_0.png.png imagette209384441740768755/1740768061_3748158_1340203021_7b4a0fd3e95582518d3f26e638883431_rle_crop_3690402430_0.png.png imagette209384441740768755/1740768061_3748158_1340202889_b78a725c5a5e15bc9e11cab4fe484eb0_rle_crop_3690402451_0.png.png imagette209384441740768755/1740768061_3748158_1340203532_9982c9a4f2408cc583b1f4a9967c87a2_rle_crop_3690402396_0.png.png imagette209384441740768755/1740768231_3750105_1340203783_0b3b24f2a1a90cf156eb980025a4c7dd_rle_crop_3690403070_0.png.png imagette209384441740768755/1740768311_3750925_1340203915_bac37cb252c9e849790eb020a194583d_rle_crop_3690403481_0.png.png imagette209384441740768755/1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403059_0.png.png imagette209384441740768755/1740768231_3750105_1340203779_32d989cab7cb38ace1fc64c25dc951a6_rle_crop_3690403089_0.png.png imagette209384441740768755/1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402778_0.png.png imagette209384441740768755/1740768061_3748158_1340203040_6213bc30a40012ddd50a9f282572ad55_rle_crop_3690402412_0.png.png imagette209384441740768755/1740768061_3748158_1340202938_60d5d7e11fa30b5dc037c73f51b8c0f0_rle_crop_3690402436_0.png.png imagette209384441740768755/1740768211_3749842_1340203798_094cb30a29c4899922ebaa0d5955ac80_rle_crop_3690402776_0.png.png imagette209384441740768755/1740768061_3748158_1340202886_12b2ff10eb53570361ffbd6651140bfc_rle_crop_3690402461_0.png.png imagette209384441740768755/1740768231_3750105_1340203790_276c01c56ad1e8f028b5baacb5ca09a8_rle_crop_3690403042_0.png.png imagette209384441740768755/1740768231_3750105_1340203786_53170f149217d2ebe38f4bbb18d15875_rle_crop_3690403065_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b6cd827406eb361e0d9a9c2d3092c61d_73425345.png imagette209384441740768755 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20938430 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20938446,20938447,20938448,20938449,20938450,20938451,20938452,20938453,20938454,20938455,20938456,20938457?tags=plastique,Carton_gris,environnement,mal_croppe,cartonnette,Teint_Dans_La_Masse,autre_refus,metal,kraft,papier,Carton_brun,flou your option no_mail is active, we will not send the real mail to your client args[1340205846] : ('0.11342680958395596',) no score found for photo 1340205846 We are sending mail with results at report@fotonower.com refus_total : 0.11342680958395596 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=20938430 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_P20938430_28-02-2025_19_52_31.pdf results_Auto_P20938430_28-02-2025_19_52_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20938430','results_Auto_P20938430_28-02-2025_19_52_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf','pdf','','0.38','0.11342680958395596') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20938430]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340205846] map_info['map_portfolio_photo'] : {20938430: [1340205846, 1340203924, 1340203922, 1340203918, 1340203915, 1340203911, 1340203840, 1340203833, 1340203824, 1340203820, 1340203798, 1340203793, 1340203790, 1340203786, 1340203783, 1340203779, 1340203532, 1340203528, 1340203525, 1340203520, 1340203054, 1340203040, 1340203021, 1340202938, 1340202889, 1340202886, 1340202616, 1340202614, 1340202610, 1340202537, 1340202436, 1340201865, 1340201860, 1340201847, 1340201842, 1340201807, 1340201802, 1340201796, 1340201790, 1340201786, 1340201762, 1340201757, 1340201754, 1340201749, 1340201682, 1340201679, 1340201674, 1340201669, 1340201666, 1340201643, 1340201640, 1340201634, 1340201631, 1340201626, 1340201505, 1340201501, 1340201437]} final : False mtd_id 4302 list_pids : [1340205846] 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, '2624893') ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '20938430', '1340205846', None, None, None, None, None, '2624893')] time used for this insertion : 0.011941194534301758 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.563424825668335 time spend to save output : 0.012244939804077148 total time spend for step 4 : 6.575669765472412 step5:split_time_score Fri Feb 28 19:52:37 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20938430'] 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 : [('20938430',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20938430) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340205846: {'path': 'temp/1740768751_2625238_1340205846_8517fc131c834ac221f1b6ed848ccae3.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 = 20938430; (('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 = 20938430 group by h (('19', 57),) 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=20938430 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 (20938430) 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 (20938430) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20938430 Nombre de photos uploadées : 57 / 23040 (0%) 28022025 20938430 Nombre de photos taguées (types de déchets): 0 / 57 (0%) 28022025 20938430 Nombre de photos taguées (volume) : 0 / 57 (0%) [{'photo_id': 1340201505, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/1840bafe15070dcb90da015d947f44bd.jpg', 'username': None, 'uploaded_at': 1740767473, 'text': 'image_28022025_19_30_04_10144.jpg'}, {'photo_id': 1340201501, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7840ea56ec6b53ddcd63ff1c0a3d6bd4.jpg', 'username': None, 'uploaded_at': 1740767473, 'text': 'image_28022025_19_30_13_9123.jpg'}, {'photo_id': 1340201437, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b4b6fc85b7a614baae8989519e43212e.jpg', 'username': None, 'uploaded_at': 1740767473, 'text': 'image_28022025_19_30_33_10135.jpg'}, {'photo_id': 1340201643, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/507df997bf829957328dfed72127e5a6.jpg', 'username': None, 'uploaded_at': 1740767533, 'text': 'image_28022025_19_30_43_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019459724426269531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20938430, '2025-02-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1629471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024109363555908203 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= 1629471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1629471, 'dashboard_run_id': 1639451, 'mtr_portfolio_id': 20937500, 'dashboard_result_id': 9144288, '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_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1639451, 'mtr_portfolio_id': 20937873, 'dashboard_result_id': 9144289, '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_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1639451, 'mtr_portfolio_id': 20938430, 'dashboard_result_id': 9144290, '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_P20938430_28-02-2025_19_45_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, '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 = 20937500 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': 2624824, 'mtr_portfolio_id': 20937500, 'created_at': datetime.datetime(2025, 2, 28, 19, 16, 58), 'result': '0.1178325574289863', 'result_long': None, 'result_double': None}] Qualite : 0.1178325574289863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20937500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20937500 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_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, 'pht': 3726}}" where mtr_portfolio_id = 20937500 and dashboard_run_id = 1639451 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`=20937500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9144288, 0.1178325574289863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937500_28-02-2025_19_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937505, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937509, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937511, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937513, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937514, '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 = 20937873 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': 2624855, 'mtr_portfolio_id': 20937873, 'created_at': datetime.datetime(2025, 2, 28, 19, 32, 59), 'result': '0.11793626118023766', 'result_long': None, 'result_double': None}] Qualite : 0.11793626118023766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20937873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20937873 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_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, 'pht': 3726}}" where mtr_portfolio_id = 20937873 and dashboard_run_id = 1639451 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`=20937873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9144289, 0.11793626118023766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20937873_28-02-2025_19_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20937899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20937900, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20937901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20937902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20937903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20937904, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20937905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20937906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20937907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20937908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20937909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20937910, '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 = 20938430 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': 2624893, 'mtr_portfolio_id': 20938430, 'created_at': datetime.datetime(2025, 2, 28, 19, 52, 30), 'result': '0.11342680958395596', 'result_long': None, 'result_double': None}] Qualite : 0.11342680958395596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20938430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20938430 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_P20938430_28-02-2025_19_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, 'pht': 3726}}" where mtr_portfolio_id = 20938430 and dashboard_run_id = 1639451 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`=20938430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9144290, 0.11342680958395596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20938430_28-02-2025_19_52_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20938434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20938435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20938436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20938437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20938438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20938439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20938440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20938441, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20938442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20938443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20938444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20938445, '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 (20937500,20937873,20938430) result : ((1340196931,), (1340196936,), (1340196995,), (1340197000,), (1340197006,), (1340197010,), (1340197013,), (1340197017,), (1340197038,), (1340197044,), (1340197048,), (1340197052,), (1340197058,), (1340197069,), (1340197106,), (1340197111,), (1340197114,), (1340197117,), (1340197145,), (1340197150,), (1340197154,), (1340197159,), (1340197315,), (1340197564,), (1340198069,), (1340198075,), (1340198166,), (1340198272,), (1340198411,), (1340198415,), (1340198419,), (1340198425,), (1340198429,), (1340198470,), (1340198476,), (1340198479,), (1340198483,), (1340198486,), (1340198490,), (1340198515,), (1340198519,), (1340198524,), (1340198528,), (1340198574,), (1340198577,), (1340198582,), (1340198587,), (1340198590,), (1340198595,), (1340198614,), (1340198618,), (1340198622,), (1340198627,), (1340198630,), (1340198633,), (1340198662,), (1340198666,), (1340198669,), (1340198673,), (1340198707,), (1340198749,), (1340198753,), (1340198759,), (1340198773,), (1340198778,), (1340198799,), (1340198802,), (1340198806,), (1340198811,), (1340198819,), (1340198826,), (1340198854,), (1340198848,), (1340198852,), (1340198897,), (1340198902,), (1340198906,), (1340198911,), (1340198915,), (1340198919,), (1340198946,), (1340198948,), (1340198956,), (1340198967,), (1340198971,), (1340199005,), (1340199009,), (1340199013,), (1340199017,), (1340199020,), (1340199054,), (1340199058,), (1340199061,), (1340199065,), (1340199068,), (1340199071,), (1340199728,), (1340199752,), (1340199757,), (1340199759,), (1340199765,), (1340200088,), (1340200134,), (1340200191,), (1340200299,), (1340200349,), (1340200354,), (1340200492,), (1340200496,), (1340200538,), (1340200655,), (1340200879,), (1340200995,), (1340201000,), (1340201004,), (1340201009,), (1340201012,), (1340201017,), (1340201064,), (1340201071,), (1340201077,), (1340201083,), (1340201088,), (1340201128,), (1340201138,), (1340201142,), (1340201160,), (1340201164,), (1340201175,), (1340201239,), (1340201241,), (1340201277,), (1340201289,), (1340201298,), (1340201305,), (1340201307,), (1340201336,), (1340201345,), (1340201348,), (1340201355,), (1340201358,), (1340201510,), (1340201437,), (1340201501,), (1340201505,), (1340201626,), (1340201631,), (1340201634,), (1340201640,), (1340201643,), (1340201666,), (1340201669,), (1340201674,), (1340201679,), (1340201682,), (1340201749,), (1340201754,), (1340201757,), (1340201762,), (1340201786,), (1340201790,), (1340201796,), (1340201802,), (1340201807,), (1340201842,), (1340201847,), (1340201860,), (1340201865,), (1340202436,), (1340202537,), (1340202610,), (1340202614,), (1340202616,), (1340202886,), (1340202889,), (1340202938,), (1340203021,), (1340203040,), (1340203054,), (1340203520,), (1340203525,), (1340203528,), (1340203532,), (1340203779,), (1340203783,), (1340203786,), (1340203790,), (1340203793,), (1340203798,), (1340203820,), (1340203824,), (1340203833,), (1340203840,), (1340203911,), (1340203915,), (1340203918,), (1340203922,), (1340203924,), (1340205846,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 57, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20938430]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340205846] map_info['map_portfolio_photo'] : {20938430: [1340205846, 1340203924, 1340203922, 1340203918, 1340203915, 1340203911, 1340203840, 1340203833, 1340203824, 1340203820, 1340203798, 1340203793, 1340203790, 1340203786, 1340203783, 1340203779, 1340203532, 1340203528, 1340203525, 1340203520, 1340203054, 1340203040, 1340203021, 1340202938, 1340202889, 1340202886, 1340202616, 1340202614, 1340202610, 1340202537, 1340202436, 1340201865, 1340201860, 1340201847, 1340201842, 1340201807, 1340201802, 1340201796, 1340201790, 1340201786, 1340201762, 1340201757, 1340201754, 1340201749, 1340201682, 1340201679, 1340201674, 1340201669, 1340201666, 1340201643, 1340201640, 1340201634, 1340201631, 1340201626, 1340201505, 1340201501, 1340201437]} final : True mtd_id 4302 list_pids : [1340205846] Looping around the photos to save general results len do output : 1 /20938430Didn'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, '2624893') ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '20938430', 'None', None, None, None, None, '2624893'), ('4302', '20938430', '1340205846', None, None, None, None, None, '2624893')] time used for this insertion : 0.013182878494262695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2905759811401367 time spend to save output : 0.013406515121459961 total time spend for step 5 : 0.3039824962615967 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 (2624893) 2.36user 2.02system 0:13.20elapsed 33%CPU (0avgtext+0avgdata 156584maxresident)k 272inputs+18648outputs (15major+75238minor)pagefaults 0swaps