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 : 442842 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 (3262605) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3262605) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778356 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3262605'] with mtr_portfolio_ids : ['24778356'] and first list_photo_ids : [] new path : /proc/442842/ Name: python3 Umask: 0002 State: R (running) Tgid: 442842 Ngid: 0 Pid: 442842 PPid: 442841 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 442842 NSpid: 442842 NSpgid: 441062 NSsid: 441062 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100020 kB VmRSS: 100020 kB RssAnon: 59808 kB RssFile: 40212 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 572 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 48 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '442842', 'Ngid': '0', 'Pid': '442842', 'PPid': '442841', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '442842', 'NSpid': '442842', 'NSpgid': '441062', 'NSsid': '441062', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100020 kB', 'VmRSS': '100020 kB', 'RssAnon': '59808 kB', 'RssFile': '40212 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '572 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '48', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '442842', '1106868', '0', '1106868', '865620', '100020', b'', 'marlene', '3262605') 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 (24778356) 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 (3262605 ) ) 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 (24778356) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371468169, 'portfolio_id': 24778356}, {'photo_id': 1371468166, 'portfolio_id': 24778356}, {'photo_id': 1371468163, 'portfolio_id': 24778356}, {'photo_id': 1371468161, 'portfolio_id': 24778356}, {'photo_id': 1371468158, 'portfolio_id': 24778356}, {'photo_id': 1371468156, 'portfolio_id': 24778356}, {'photo_id': 1371468129, 'portfolio_id': 24778356}, {'photo_id': 1371468125, 'portfolio_id': 24778356}, {'photo_id': 1371468121, 'portfolio_id': 24778356}, {'photo_id': 1371468118, 'portfolio_id': 24778356}, {'photo_id': 1371468115, 'portfolio_id': 24778356}, {'photo_id': 1371468113, 'portfolio_id': 24778356}, {'photo_id': 1371468075, 'portfolio_id': 24778356}, {'photo_id': 1371468073, 'portfolio_id': 24778356}, {'photo_id': 1371468072, 'portfolio_id': 24778356}, {'photo_id': 1371468070, 'portfolio_id': 24778356}, {'photo_id': 1371468067, 'portfolio_id': 24778356}, {'photo_id': 1371468064, 'portfolio_id': 24778356}, {'photo_id': 1371468049, 'portfolio_id': 24778356}, {'photo_id': 1371468046, 'portfolio_id': 24778356}, {'photo_id': 1371468044, 'portfolio_id': 24778356}, {'photo_id': 1371468041, 'portfolio_id': 24778356}, {'photo_id': 1371468039, 'portfolio_id': 24778356}, {'photo_id': 1371468036, 'portfolio_id': 24778356}, {'photo_id': 1371468008, 'portfolio_id': 24778356}, {'photo_id': 1371468004, 'portfolio_id': 24778356}, {'photo_id': 1371468000, 'portfolio_id': 24778356}, {'photo_id': 1371467997, 'portfolio_id': 24778356}, {'photo_id': 1371467995, 'portfolio_id': 24778356}, {'photo_id': 1371467993, 'portfolio_id': 24778356}, {'photo_id': 1371467936, 'portfolio_id': 24778356}, {'photo_id': 1371467931, 'portfolio_id': 24778356}, {'photo_id': 1371467928, 'portfolio_id': 24778356}, {'photo_id': 1371467926, 'portfolio_id': 24778356}, {'photo_id': 1371467924, 'portfolio_id': 24778356}, {'photo_id': 1371467921, 'portfolio_id': 24778356}, {'photo_id': 1371467912, 'portfolio_id': 24778356}, {'photo_id': 1371467910, 'portfolio_id': 24778356}, {'photo_id': 1371467909, 'portfolio_id': 24778356}, {'photo_id': 1371467908, 'portfolio_id': 24778356}, {'photo_id': 1371467906, 'portfolio_id': 24778356}, {'photo_id': 1371467905, 'portfolio_id': 24778356}, {'photo_id': 1371467903, 'portfolio_id': 24778356}, {'photo_id': 1371467902, 'portfolio_id': 24778356}, {'photo_id': 1371467901, 'portfolio_id': 24778356}, {'photo_id': 1371467900, 'portfolio_id': 24778356}, {'photo_id': 1371467897, 'portfolio_id': 24778356}, {'photo_id': 1371467896, 'portfolio_id': 24778356}, {'photo_id': 1371467868, 'portfolio_id': 24778356}, {'photo_id': 1371467863, 'portfolio_id': 24778356}, {'photo_id': 1371467859, 'portfolio_id': 24778356}, {'photo_id': 1371467856, 'portfolio_id': 24778356}, {'photo_id': 1371467854, 'portfolio_id': 24778356}, {'photo_id': 1371467851, 'portfolio_id': 24778356}, {'photo_id': 1371467801, 'portfolio_id': 24778356}, {'photo_id': 1371467798, 'portfolio_id': 24778356}, {'photo_id': 1371467795, 'portfolio_id': 24778356}, {'photo_id': 1371467794, 'portfolio_id': 24778356}, {'photo_id': 1371467792, 'portfolio_id': 24778356}, {'photo_id': 1371467791, 'portfolio_id': 24778356}, {'photo_id': 1371467787, 'portfolio_id': 24778356}, {'photo_id': 1371467786, 'portfolio_id': 24778356}, {'photo_id': 1371467784, 'portfolio_id': 24778356}, {'photo_id': 1371467783, 'portfolio_id': 24778356}, {'photo_id': 1371467781, 'portfolio_id': 24778356}, {'photo_id': 1371467780, 'portfolio_id': 24778356}, {'photo_id': 1371467776, 'portfolio_id': 24778356}, {'photo_id': 1371467775, 'portfolio_id': 24778356}, {'photo_id': 1371467771, 'portfolio_id': 24778356}, {'photo_id': 1371467770, 'portfolio_id': 24778356}, {'photo_id': 1371467764, 'portfolio_id': 24778356}, {'photo_id': 1371467763, 'portfolio_id': 24778356}, {'photo_id': 1371467738, 'portfolio_id': 24778356}, {'photo_id': 1371467735, 'portfolio_id': 24778356}, {'photo_id': 1371467733, 'portfolio_id': 24778356}, {'photo_id': 1371467730, 'portfolio_id': 24778356}, {'photo_id': 1371467727, 'portfolio_id': 24778356}, {'photo_id': 1371467725, 'portfolio_id': 24778356}, {'photo_id': 1371467695, 'portfolio_id': 24778356}, {'photo_id': 1371467692, 'portfolio_id': 24778356}, {'photo_id': 1371467690, 'portfolio_id': 24778356}, {'photo_id': 1371467687, 'portfolio_id': 24778356}, {'photo_id': 1371467683, 'portfolio_id': 24778356}, {'photo_id': 1371467682, 'portfolio_id': 24778356}, {'photo_id': 1371467664, 'portfolio_id': 24778356}, {'photo_id': 1371467661, 'portfolio_id': 24778356}, {'photo_id': 1371467659, 'portfolio_id': 24778356}, {'photo_id': 1371467656, 'portfolio_id': 24778356}, {'photo_id': 1371467654, 'portfolio_id': 24778356}, {'photo_id': 1371467650, 'portfolio_id': 24778356}, {'photo_id': 1371467583, 'portfolio_id': 24778356}, {'photo_id': 1371467574, 'portfolio_id': 24778356}, {'photo_id': 1371467559, 'portfolio_id': 24778356}, {'photo_id': 1371467531, 'portfolio_id': 24778356}, {'photo_id': 1371467504, 'portfolio_id': 24778356}, {'photo_id': 1371467459, 'portfolio_id': 24778356}, {'photo_id': 1371467272, 'portfolio_id': 24778356}, {'photo_id': 1371467242, 'portfolio_id': 24778356}, {'photo_id': 1371467215, 'portfolio_id': 24778356}, {'photo_id': 1371467188, 'portfolio_id': 24778356}, {'photo_id': 1371467156, 'portfolio_id': 24778356}] map_portfolio_id_photo_id: {24778356: [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113, 1371468075, 1371468073, 1371468072, 1371468070, 1371468067, 1371468064, 1371468049, 1371468046, 1371468044, 1371468041, 1371468039, 1371468036, 1371468008, 1371468004, 1371468000, 1371467997, 1371467995, 1371467993, 1371467936, 1371467931, 1371467928, 1371467926, 1371467924, 1371467921, 1371467912, 1371467910, 1371467909, 1371467908, 1371467906, 1371467905, 1371467903, 1371467902, 1371467901, 1371467900, 1371467897, 1371467896, 1371467868, 1371467863, 1371467859, 1371467856, 1371467854, 1371467851, 1371467801, 1371467798, 1371467795, 1371467794, 1371467792, 1371467791, 1371467787, 1371467786, 1371467784, 1371467783, 1371467781, 1371467780, 1371467776, 1371467775, 1371467771, 1371467770, 1371467764, 1371467763, 1371467738, 1371467735, 1371467733, 1371467730, 1371467727, 1371467725, 1371467695, 1371467692, 1371467690, 1371467687, 1371467683, 1371467682, 1371467664, 1371467661, 1371467659, 1371467656, 1371467654, 1371467650, 1371467583, 1371467574, 1371467559, 1371467531, 1371467504, 1371467459, 1371467272, 1371467242, 1371467215, 1371467188, 1371467156]} ##### 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.015778064727783203 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 10 02:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24778356) 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 : 24778356 get user id for portfolio 24778356 get sub ptf for main ptf 24778356, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'Carton_brun', 'papier', 'autre_refus', 'plastique', 'environnement', 'cartonnette', 'flou', 'kraft', 'mal_croppe', 'metal'] 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`=24778356 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','autre_refus','plastique','environnement','cartonnette','flou','kraft','mal_croppe','metal')) 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`=24778356 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','autre_refus','plastique','environnement','cartonnette','flou','kraft','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24778356, 'sub_port_id': 24778433, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662560, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'environnement': {'main_port_id': 24778356, 'sub_port_id': 24778434, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662561, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'plastique': {'main_port_id': 24778356, 'sub_port_id': 24778435, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662562, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'metal': {'main_port_id': 24778356, 'sub_port_id': 24778436, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662563, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'cartonnette': {'main_port_id': 24778356, 'sub_port_id': 24778437, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662564, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'mal_croppe': {'main_port_id': 24778356, 'sub_port_id': 24778438, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662565, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'kraft': {'main_port_id': 24778356, 'sub_port_id': 24778439, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662566, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24778356, 'sub_port_id': 24778440, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662567, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'flou': {'main_port_id': 24778356, 'sub_port_id': 24778441, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662568, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'papier': {'main_port_id': 24778356, 'sub_port_id': 24778442, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662569, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'Carton_brun': {'main_port_id': 24778356, 'sub_port_id': 24778443, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662570, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}, 'autre_refus': {'main_port_id': 24778356, 'sub_port_id': 24778444, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662571, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778433 , 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=24778356 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 (24778433) result : ((1371467699,), (1371467744,), (1371467745,), (1371467746,), (1371467864,), (1371467970,), (1371467971,), (1371467972,), (1371467973,), (1371467974,), (1371467975,), (1371467976,), (1371467977,), (1371467978,), (1371467979,), (1371467980,), (1371467981,), (1371467982,), (1371467983,), (1371468022,), (1371468057,), (1371468058,), (1371468103,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778434 , 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=24778356 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 (24778434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778435 , 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=24778356 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 (24778435) result : ((1371467700,), (1371467701,), (1371467867,), (1371467990,), (1371467991,), (1371468065,), (1371468066,), (1371468109,), (1371468192,), (1371468193,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778436 , 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=24778356 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 (24778436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778437 , 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=24778356 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 (24778437) result : ((1371467865,), (1371467917,), (1371467918,), (1371467984,), (1371467985,), (1371467986,), (1371467987,), (1371467988,), (1371467989,), (1371468059,), (1371468060,), (1371468104,), (1371468105,), (1371468124,), (1371468180,), (1371468181,), (1371468182,), (1371468183,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778438 , 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=24778356 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 (24778438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778439 , 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=24778356 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 (24778439) result : ((1371468024,), (1371468195,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778440 , 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=24778356 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 (24778440) result : ((1371467697,), (1371467742,), (1371467913,), (1371467914,), (1371467915,), (1371467916,), (1371467960,), (1371467961,), (1371467962,), (1371467963,), (1371467964,), (1371467965,), (1371468019,), (1371468098,), (1371468100,), (1371468173,), (1371468174,), (1371468175,), (1371468176,), (1371468177,), (1371468189,), (1371468208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778441 , 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=24778356 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 (24778441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778442 , 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=24778356 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 (24778442) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778443 , 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=24778356 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 (24778443) result : ((1371467769,), (1371467919,), (1371468023,), (1371468061,), (1371468062,), (1371468108,), (1371468186,), (1371468187,), (1371468188,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24778444 , 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=24778356 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 (24778444) result : ((1371467698,), (1371467768,), (1371467862,), (1371467967,), (1371467968,), (1371468053,), (1371468054,), (1371468055,), (1371468056,), (1371468102,), (1371468178,), (1371468179,), (1371468190,), (1371468209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24778356) result : ((1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) 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 (1371467900,1371468000) and cspi.crop_hashtag_id = chi.id; 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`=24778356 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','autre_refus','plastique','environnement','cartonnette','flou','kraft','mal_croppe','metal')) 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`=24778356 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','Carton_brun','papier','autre_refus','plastique','environnement','cartonnette','flou','kraft','mal_croppe','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24778356, 'sub_port_id': 24778446, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662572, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'environnement': {'main_port_id': 24778356, 'sub_port_id': 24778447, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662573, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'plastique': {'main_port_id': 24778356, 'sub_port_id': 24778448, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662574, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'metal': {'main_port_id': 24778356, 'sub_port_id': 24778449, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662575, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'cartonnette': {'main_port_id': 24778356, 'sub_port_id': 24778450, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662576, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'mal_croppe': {'main_port_id': 24778356, 'sub_port_id': 24778451, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662577, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'kraft': {'main_port_id': 24778356, 'sub_port_id': 24778452, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662578, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 24778356, 'sub_port_id': 24778453, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662579, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'flou': {'main_port_id': 24778356, 'sub_port_id': 24778454, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662580, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'papier': {'main_port_id': 24778356, 'sub_port_id': 24778455, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662581, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'Carton_brun': {'main_port_id': 24778356, 'sub_port_id': 24778456, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662582, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}, 'autre_refus': {'main_port_id': 24778356, 'sub_port_id': 24778457, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16662583, 'last_updated_at': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 2, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 2, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24778457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24778444 lien utilise dans velours : https://www.fotonower.com/velours/24778446,24778447,24778448,24778449,24778450,24778451,24778452,24778453,24778454,24778455,24778456,24778457?tags=Carton_gris,environnement,plastique,metal,cartonnette,mal_croppe,kraft,Teint_Dans_La_Masse,flou,papier,Carton_brun,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24778356]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] map_info['map_portfolio_photo'] : {24778356: [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113, 1371468075, 1371468073, 1371468072, 1371468070, 1371468067, 1371468064, 1371468049, 1371468046, 1371468044, 1371468041, 1371468039, 1371468036, 1371468008, 1371468004, 1371468000, 1371467997, 1371467995, 1371467993, 1371467936, 1371467931, 1371467928, 1371467926, 1371467924, 1371467921, 1371467912, 1371467910, 1371467909, 1371467908, 1371467906, 1371467905, 1371467903, 1371467902, 1371467901, 1371467900, 1371467897, 1371467896, 1371467868, 1371467863, 1371467859, 1371467856, 1371467854, 1371467851, 1371467801, 1371467798, 1371467795, 1371467794, 1371467792, 1371467791, 1371467787, 1371467786, 1371467784, 1371467783, 1371467781, 1371467780, 1371467776, 1371467775, 1371467771, 1371467770, 1371467764, 1371467763, 1371467738, 1371467735, 1371467733, 1371467730, 1371467727, 1371467725, 1371467695, 1371467692, 1371467690, 1371467687, 1371467683, 1371467682, 1371467664, 1371467661, 1371467659, 1371467656, 1371467654, 1371467650, 1371467583, 1371467574, 1371467559, 1371467531, 1371467504, 1371467459, 1371467272, 1371467242, 1371467215, 1371467188, 1371467156]} final : False mtd_id 4302 list_pids : [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] Looping around the photos to save general results len do output : 1 /24778356. 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, '3262605') ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24778356', "{'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444}", None, None, None, None, '3262605'), ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605')] time used for this insertion : 0.01476287841796875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5144193172454834 time spend to save output : 0.015053987503051758 total time spend for step 1 : 0.5294733047485352 step2:final Thu Jul 10 02:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (24778356) 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 24778356 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371467272,1371467242,1371467215,1371467188,1371467156,1371467583,1371467574,1371467559,1371467531,1371467504,1371467459,1371467664,1371467661,1371467659,1371467656,1371467654,1371467650,1371467695,1371467692,1371467690,1371467687,1371467683,1371467682,1371467738,1371467735,1371467733,1371467730,1371467727,1371467725,1371467786,1371467787,1371467783,1371467784,1371467780,1371467781,1371467775,1371467776,1371467770,1371467771,1371467763,1371467764,1371467801,1371467798,1371467795,1371467794,1371467792,1371467791,1371467868,1371467863,1371467859,1371467856,1371467854,1371467851,1371467910,1371467912,1371467908,1371467909,1371467905,1371467906,1371467902,1371467903,1371467900,1371467901,1371467896,1371467897,1371467936,1371467931,1371467928,1371467926,1371467924,1371467921,1371468008,1371468004,1371468000,1371467997,1371467995,1371467993,1371468049,1371468046,1371468044,1371468041,1371468039,1371468036,1371468075,1371468073,1371468072,1371468070,1371468067,1371468064,1371468129,1371468125,1371468121,1371468118,1371468115,1371468113,1371468169,1371468166,1371468163,1371468161,1371468158,1371468156); 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([24778356]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} new output for save of step final : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] map_info['map_portfolio_photo'] : {24778356: [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113, 1371468075, 1371468073, 1371468072, 1371468070, 1371468067, 1371468064, 1371468049, 1371468046, 1371468044, 1371468041, 1371468039, 1371468036, 1371468008, 1371468004, 1371468000, 1371467997, 1371467995, 1371467993, 1371467936, 1371467931, 1371467928, 1371467926, 1371467924, 1371467921, 1371467912, 1371467910, 1371467909, 1371467908, 1371467906, 1371467905, 1371467903, 1371467902, 1371467901, 1371467900, 1371467897, 1371467896, 1371467868, 1371467863, 1371467859, 1371467856, 1371467854, 1371467851, 1371467801, 1371467798, 1371467795, 1371467794, 1371467792, 1371467791, 1371467787, 1371467786, 1371467784, 1371467783, 1371467781, 1371467780, 1371467776, 1371467775, 1371467771, 1371467770, 1371467764, 1371467763, 1371467738, 1371467735, 1371467733, 1371467730, 1371467727, 1371467725, 1371467695, 1371467692, 1371467690, 1371467687, 1371467683, 1371467682, 1371467664, 1371467661, 1371467659, 1371467656, 1371467654, 1371467650, 1371467583, 1371467574, 1371467559, 1371467531, 1371467504, 1371467459, 1371467272, 1371467242, 1371467215, 1371467188, 1371467156]} final : False mtd_id 4302 list_pids : [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] Looping around the photos to save general results len do output : 12 /1371468169.Didn't retrieve data . /1371468166.Didn't retrieve data . /1371468163.Didn't retrieve data . /1371468161.Didn't retrieve data . /1371468158.Didn't retrieve data . /1371468156.Didn't retrieve data . /1371468129.Didn't retrieve data . /1371468125.Didn't retrieve data . /1371468121.Didn't retrieve data . /1371468118.Didn't retrieve data . /1371468115.Didn't retrieve data . /1371468113.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, '3262605') ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24778356', '1371468169', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468166', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468163', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468161', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468158', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468156', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468129', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468125', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468121', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468118', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468115', '0.03744010060349559', None, None, None, None, '3262605'), ('4302', '24778356', '1371468113', '0.03744010060349559', None, None, None, None, '3262605')] time used for this insertion : 0.01749110221862793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07993340492248535 time spend to save output : 0.01807260513305664 total time spend for step 2 : 0.09800601005554199 step3:velours_tree Thu Jul 10 02:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {24778356: [{'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444}]} input_args_next_step : {24778356: ()} output_args : {24778356: [{'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444}]} args : 24778356 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24778356) 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([24778356]) 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.30022215843200684 time spend to save output : 7.224082946777344e-05 total time spend for step 3 : 0.3002943992614746 step4:send_mail_cod Thu Jul 10 02:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} input_args_next_step : {1371468169: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468169 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468166 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468163 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468161 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468158 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468156 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468129 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468125 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468121 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468118 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468115 depend.output_id : 0 input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ()} output_args : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',)} args : 1371468113 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {24778356: [{'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444}]} input_args_next_step : {1371468169: ('0.03744010060349559',), 1371468166: ('0.03744010060349559',), 1371468163: ('0.03744010060349559',), 1371468161: ('0.03744010060349559',), 1371468158: ('0.03744010060349559',), 1371468156: ('0.03744010060349559',), 1371468129: ('0.03744010060349559',), 1371468125: ('0.03744010060349559',), 1371468121: ('0.03744010060349559',), 1371468118: ('0.03744010060349559',), 1371468115: ('0.03744010060349559',), 1371468113: ('0.03744010060349559',), 24778356: ()} output_args : {24778356: [{'Carton_gris': 24778433, 'environnement': 24778434, 'plastique': 24778435, 'metal': 24778436, 'cartonnette': 24778437, 'mal_croppe': 24778438, 'kraft': 24778439, 'Teint_Dans_La_Masse': 24778440, 'flou': 24778441, 'papier': 24778442, 'Carton_brun': 24778443, 'autre_refus': 24778444}]} args : 24778356 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 :13, first value : ('0.03744010060349559',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24778356) 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 (1371468169,1371468166,1371468163,1371468161,1371468158,1371468156,1371468129,1371468125,1371468121,1371468118,1371468115,1371468113) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371468113 begin to download photo : 1371468121 begin to download photo : 1371468156 begin to download photo : 1371468163 download finish for photo 1371468113 begin to download photo : 1371468115 download finish for photo 1371468121 begin to download photo : 1371468125 download finish for photo 1371468156 begin to download photo : 1371468158 download finish for photo 1371468163 begin to download photo : 1371468166 download finish for photo 1371468125 begin to download photo : 1371468129 download finish for photo 1371468115 begin to download photo : 1371468118 download finish for photo 1371468166 begin to download photo : 1371468169 download finish for photo 1371468158 begin to download photo : 1371468161 download finish for photo 1371468129 download finish for photo 1371468169 download finish for photo 1371468118 download finish for photo 1371468161 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24778356_10-07-2025_02_16_58.pdf 24778435 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=24778435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371467700: '1752105847_2162948_1371467156_a8ef8c6f73bef93a3b52ccc51ca32b46_rle_crop_3877827849_0.png', 1371467701: '1752105847_2162948_1371467156_a8ef8c6f73bef93a3b52ccc51ca32b46_rle_crop_3877827850_0.png', 1371467867: '1752106085_2171032_1371467735_3cae414190c9aba20cd53ed8414fde7f_rle_crop_3877828798_0.png', 1371467990: '1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829367_0.png', 1371467991: '1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829381_0.png', 1371468065: '1752106327_2177193_1371467901_87b463b99bf1743b592c265124677f66_rle_crop_3877830060_0.png', 1371468066: '1752106327_2177193_1371467900_6310a9fb1ca69e55981dc186835700c8_rle_crop_3877830070_0.png', 1371468109: '1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830307_0.png', 1371468192: '1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830748_0.png', 1371468193: '1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/930a95d03dcb91bb74419bd2c0a1a629_12906443.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/0c485c5c30f3ec18bf74fa721369b803_50269658.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/252963d7c4a06b6f1f33fae44beaaee5_3056194.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/07574390a2db26673e2fc9a9776dab3b_62692558.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/07574390a2db26673e2fc9a9776dab3b_843223.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c716a5fae71d692382c97ec6254f9e84_8716898.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c716a5fae71d692382c97ec6254f9e84_81729202.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d32e9f35a90fe9d5ebed852d119c0ffb_60079119.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/7b02e852b456c5eb3ba6ab6351112425_67039269.png change filename to text .imagette247784351752106618/ imagette247784351752106618/1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829367_0.png.png imagette247784351752106618/1752105847_2162948_1371467156_a8ef8c6f73bef93a3b52ccc51ca32b46_rle_crop_3877827850_0.png.png imagette247784351752106618/1752106327_2177193_1371467900_6310a9fb1ca69e55981dc186835700c8_rle_crop_3877830070_0.png.png imagette247784351752106618/1752106327_2177193_1371467901_87b463b99bf1743b592c265124677f66_rle_crop_3877830060_0.png.png imagette247784351752106618/1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829381_0.png.png imagette247784351752106618/1752105847_2162948_1371467156_a8ef8c6f73bef93a3b52ccc51ca32b46_rle_crop_3877827849_0.png.png imagette247784351752106618/1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830748_0.png.png imagette247784351752106618/1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830307_0.png.png imagette247784351752106618/1752106085_2171032_1371467735_3cae414190c9aba20cd53ed8414fde7f_rle_crop_3877828798_0.png.png imagette247784351752106618/1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830765_0.png.png imagette247784361752106619/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/777f19bd4bc1a6436c834ff2fa5d3060_69988257.png imagette247784351752106618 24778436 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=24778436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247784361752106619 24778437 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=24778437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371468059: '1752106327_2177193_1371467897_1731c894a49d8f1e9c7554ba6a500796_rle_crop_3877830078_0.png', 1371468183: '1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830747_0.png', 1371468182: '1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830734_0.png', 1371468181: '1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830716_0.png', 1371468180: '1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830717_0.png', 1371468124: '1752106446_2182221_1371467921_6ec21dd08463331b40cc819365d8e243_rle_crop_3877830437_0.png', 1371468105: '1752106405_2299493_1371467997_326045ca96f894268c0c1a4ef99bbf28_rle_crop_3877830331_0.png', 1371468104: '1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830304_0.png', 1371468060: '1752106327_2177193_1371467896_b09c43047c6e5c9535fefa981e5340a4_rle_crop_3877830093_0.png', 1371467865: '1752106085_2171032_1371467738_48fc73e3a6104697e481afed11515ff3_rle_crop_3877828788_0.png', 1371467989: '1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829378_0.png', 1371467988: '1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829377_0.png', 1371467987: '1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829364_0.png', 1371467986: '1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829363_0.png', 1371467985: '1752106204_2174045_1371467783_ba305a7cc689ca7d9cf6a8d170e35053_rle_crop_3877829333_0.png', 1371467984: '1752106204_2174045_1371467784_dc013f0f7f9ce2d1f208cc46b8f71fcb_rle_crop_3877829317_0.png', 1371467918: '1752106167_2293637_1371467791_dffe02cdec1de4bcf89581fab6070439_rle_crop_3877828957_0.png', 1371467917: '1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828931_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a3e13dcfaa93f6132454647c360d9c45_21737670.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/56d6874c169e7ab348796c22c1692403_7080882.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/acd7f6dfe3939c51adc4e3074231c1d7_81330478.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/32c75b4ed311deee5ec4c1cfc1f5ac0c_15585509.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/de31d31075b54aad44e3d289bec82c2d_15834075.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/fa2fc75de367783f7f46b2f41475b3e5_47476220.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/9b70e5cdd0af1ee9701b3e58ea234cbb_26069164.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/aa2ea26c9f18c3e5681f8bdc476e2d97_7197635.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a3e13dcfaa93f6132454647c360d9c45_74493477.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/2ff1e171b0b9ab5439407eb5d37015a6_46087594.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f9bde8e7c40a976f441c0cce20d084d9_87545220.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c0896140ab7eb7c56ea988de9346702e_55765824.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f9bde8e7c40a976f441c0cce20d084d9_18111916.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c0896140ab7eb7c56ea988de9346702e_54574319.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/24d9c5f4e6e34932a874894e776f682f_41104527.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/24d9c5f4e6e34932a874894e776f682f_80356663.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/e65188c4d1411c3eadf5eab6c8321b18_70924027.png change filename to text .imagette247784371752106619/ imagette247784371752106619/1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829378_0.png.png imagette247784371752106619/1752106085_2171032_1371467738_48fc73e3a6104697e481afed11515ff3_rle_crop_3877828788_0.png.png imagette247784371752106619/1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828931_0.png.png imagette247784371752106619/1752106204_2174045_1371467783_ba305a7cc689ca7d9cf6a8d170e35053_rle_crop_3877829333_0.png.png imagette247784371752106619/1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830734_0.png.png imagette247784371752106619/1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829377_0.png.png imagette247784371752106619/1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830747_0.png.png imagette247784371752106619/1752106405_2299493_1371467997_326045ca96f894268c0c1a4ef99bbf28_rle_crop_3877830331_0.png.png imagette247784371752106619/1752106446_2182221_1371467921_6ec21dd08463331b40cc819365d8e243_rle_crop_3877830437_0.png.png imagette247784371752106619/1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830717_0.png.png imagette247784371752106619/1752106204_2174045_1371467784_dc013f0f7f9ce2d1f208cc46b8f71fcb_rle_crop_3877829317_0.png.png imagette247784371752106619/1752106167_2293637_1371467791_dffe02cdec1de4bcf89581fab6070439_rle_crop_3877828957_0.png.png imagette247784371752106619/1752106327_2177193_1371467897_1731c894a49d8f1e9c7554ba6a500796_rle_crop_3877830078_0.png.png imagette247784371752106619/1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830304_0.png.png imagette247784371752106619/1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829364_0.png.png imagette247784371752106619/1752106327_2177193_1371467896_b09c43047c6e5c9535fefa981e5340a4_rle_crop_3877830093_0.png.png imagette247784371752106619/1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829363_0.png.png imagette247784371752106619/1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830716_0.png.png imagette247784381752106620/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/aa4d255f88c8795acb33274b2fe2dfff_4875465.png imagette247784371752106619 24778438 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=24778438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247784381752106620 24778439 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=24778439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371468024: '1752106285_2296670_1371467851_ffb8b2bd77a2bcceebc48e482a0d391d_rle_crop_3877829667_0.png', 1371468195: '1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/bcaaef33e751432dc195ab1386e296f0_21754204.png change filename to text .imagette247784391752106620/ imagette247784391752106620/1752106285_2296670_1371467851_ffb8b2bd77a2bcceebc48e482a0d391d_rle_crop_3877829667_0.png.png imagette247784391752106620/1752106526_2302108_1371468049_c3bad2c4e457c72ba05edd43ef39fdff_rle_crop_3877830720_0.png.png imagette247784411752106620/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/1c1371ffb9143f5bd58f5e3d7aaff424_74411569.png imagette247784391752106620 24778441 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=24778441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247784411752106620 24778444 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=24778444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371467698: '1752105847_2162948_1371467242_f0dc77b53259048d370c351864eb4ec6_rle_crop_3877827819_0.png', 1371467768: '1752105965_2165981_1371467531_b60d95beb4ca524e0b3aac21ca4d8958_rle_crop_3877828250_0.png', 1371467862: '1752106085_2171032_1371467725_b95875f199b31bd700b1cd3c53273be8_rle_crop_3877828854_0.png', 1371467967: '1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829414_0.png', 1371467968: '1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829426_0.png', 1371468053: '1752106327_2177193_1371467906_371db9ad0ec41e76af65fbc0a2f1783f_rle_crop_3877830002_0.png', 1371468054: '1752106327_2177193_1371467905_e63205799e5a106a7b67a0570f410903_rle_crop_3877830017_0.png', 1371468055: '1752106327_2177193_1371467901_87b463b99bf1743b592c265124677f66_rle_crop_3877830054_0.png', 1371468056: '1752106327_2177193_1371467900_6310a9fb1ca69e55981dc186835700c8_rle_crop_3877830064_0.png', 1371468102: '1752106405_2299493_1371467993_9f9aff8b7e92bd1f6baafc8ba516d9b6_rle_crop_3877830370_0.png', 1371468178: '1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830732_0.png', 1371468179: '1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830751_0.png', 1371468190: '1752106536_2185048_1371468075_6662b80b0c1fd62884986fec5e8a4f06_rle_crop_3877830807_0.png', 1371468209: '1752106567_2187857_1371467683_d65181b35a3fb4c54ea22e83da8e301a_rle_crop_3877830973_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/4427450e2f810292c3592ea22b00fd6b_41314451.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/1037c0a87675a0c7e1ccc9d0818c515c_19663327.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/94deb019e1a0dd663abac5191bb2482c_51422012.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d390e2264f71a02469f7d2003a6390b6_99622863.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d390e2264f71a02469f7d2003a6390b6_14693797.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8aa98585deb57c2744541e4e908bc450_1905164.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8aa98585deb57c2744541e4e908bc450_56427804.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/46061a242c42861217bff058dceadd21_28389507.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/46061a242c42861217bff058dceadd21_93374166.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/fd4306998fece19f790cf894abf749c8_47590454.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/cad9cb1cc8cdfa7c7ed13fcf61c8f4fc_78448692.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/31572fed36351dd3ea698cf7ce0cd5b1_3880684.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/44e36afc7ec7095fdefd74203b9e72ca_83830985.png change filename to text .imagette247784441752106620/ imagette247784441752106620/1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829414_0.png.png imagette247784441752106620/1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830751_0.png.png imagette247784441752106620/1752106327_2177193_1371467905_e63205799e5a106a7b67a0570f410903_rle_crop_3877830017_0.png.png imagette247784441752106620/1752106327_2177193_1371467900_6310a9fb1ca69e55981dc186835700c8_rle_crop_3877830064_0.png.png imagette247784441752106620/1752106327_2177193_1371467906_371db9ad0ec41e76af65fbc0a2f1783f_rle_crop_3877830002_0.png.png imagette247784441752106620/1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830732_0.png.png imagette247784441752106620/1752105965_2165981_1371467531_b60d95beb4ca524e0b3aac21ca4d8958_rle_crop_3877828250_0.png.png imagette247784441752106620/1752106405_2299493_1371467993_9f9aff8b7e92bd1f6baafc8ba516d9b6_rle_crop_3877830370_0.png.png imagette247784441752106620/1752106536_2185048_1371468075_6662b80b0c1fd62884986fec5e8a4f06_rle_crop_3877830807_0.png.png imagette247784441752106620/1752105847_2162948_1371467242_f0dc77b53259048d370c351864eb4ec6_rle_crop_3877827819_0.png.png imagette247784441752106620/1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829426_0.png.png imagette247784441752106620/1752106085_2171032_1371467725_b95875f199b31bd700b1cd3c53273be8_rle_crop_3877828854_0.png.png imagette247784441752106620/1752106327_2177193_1371467901_87b463b99bf1743b592c265124677f66_rle_crop_3877830054_0.png.png imagette247784441752106620/1752106567_2187857_1371467683_d65181b35a3fb4c54ea22e83da8e301a_rle_crop_3877830973_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/e870f5ad75f7d5d674bd74f557346532_85930732.png imagette247784441752106620 24778433 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=24778433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371467976: '1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829340_0.png', 1371468103: '1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830308_0.png', 1371468058: '1752106327_2177193_1371467902_b474da080496eb27183d7b8754be8e4b_rle_crop_3877830048_0.png', 1371468057: '1752106327_2177193_1371467903_fbd9b8f1714a27ecd14fe701d6149d51_rle_crop_3877830037_0.png', 1371468022: '1752106285_2296670_1371467851_ffb8b2bd77a2bcceebc48e482a0d391d_rle_crop_3877829666_0.png', 1371467983: '1752106204_2174045_1371467770_9aba8fa277ed6637890c55dbfc8bbe47_rle_crop_3877829406_0.png', 1371467982: '1752106204_2174045_1371467771_ec6d219cee9d512fa3d8821f15b142b7_rle_crop_3877829393_0.png', 1371467981: '1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829380_0.png', 1371467980: '1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829366_0.png', 1371467979: '1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829351_0.png', 1371467978: '1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829353_0.png', 1371467977: '1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829352_0.png', 1371467699: '1752105847_2162948_1371467215_c32322768daa7b78e0b8d9087c196f78_rle_crop_3877827831_0.png', 1371467975: '1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829342_0.png', 1371467974: '1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829341_0.png', 1371467973: '1752106204_2174045_1371467783_ba305a7cc689ca7d9cf6a8d170e35053_rle_crop_3877829325_0.png', 1371467972: '1752106204_2174045_1371467784_dc013f0f7f9ce2d1f208cc46b8f71fcb_rle_crop_3877829309_0.png', 1371467971: '1752106204_2174045_1371467786_ba4d4470b9309765486210d6819164f6_rle_crop_3877829300_0.png', 1371467970: '1752106204_2174045_1371467787_387d0b7a6dd6c89089b5c4eb93750e25_rle_crop_3877829281_0.png', 1371467864: '1752106085_2171032_1371467725_b95875f199b31bd700b1cd3c53273be8_rle_crop_3877828857_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c0575dd8d4f20e6a75dfbcc72e921f2c_52876011.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6c8855cbb823fd8eb0595afde3041d9d_61890159.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c8a44503ed6b75c39a1a888a77c9648c_90595961.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c8a44503ed6b75c39a1a888a77c9648c_34298617.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/dbfd3af93345ecddc45312c5ccd586e3_12195425.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c9759381b04d17bccbf4c917e3d3b7f1_79787036.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c9759381b04d17bccbf4c917e3d3b7f1_33260988.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c055c486839bb7bae0a3aaeb0cad1c8d_81611287.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c055c486839bb7bae0a3aaeb0cad1c8d_1761573.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c0575dd8d4f20e6a75dfbcc72e921f2c_93304703.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/06faab21718838b107daa78be39a7c4e_90295349.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/418aba8bb94223ca025715fa3a3959d6_98167343.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/bd0bf468e3daa53f19fb77bce7fc88c0_77535238.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/06faab21718838b107daa78be39a7c4e_91749212.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/418aba8bb94223ca025715fa3a3959d6_55055175.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/777b7e00289533d2224366c695ab07a8_35890859.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/777b7e00289533d2224366c695ab07a8_96001292.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/b47f2ec846262206d0509f3ce24dbfa9_8975445.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/b47f2ec846262206d0509f3ce24dbfa9_651158.png change filename to text .imagette247784331752106621/ imagette247784331752106621/1752106204_2174045_1371467783_ba305a7cc689ca7d9cf6a8d170e35053_rle_crop_3877829325_0.png.png imagette247784331752106621/1752106327_2177193_1371467903_fbd9b8f1714a27ecd14fe701d6149d51_rle_crop_3877830037_0.png.png imagette247784331752106621/1752106085_2171032_1371467725_b95875f199b31bd700b1cd3c53273be8_rle_crop_3877828857_0.png.png imagette247784331752106621/1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829351_0.png.png imagette247784331752106621/1752106204_2174045_1371467786_ba4d4470b9309765486210d6819164f6_rle_crop_3877829300_0.png.png imagette247784331752106621/1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829342_0.png.png imagette247784331752106621/1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829340_0.png.png imagette247784331752106621/1752106204_2174045_1371467776_06fb114567ac840291bdd24d44055309_rle_crop_3877829366_0.png.png imagette247784331752106621/1752106285_2296670_1371467851_ffb8b2bd77a2bcceebc48e482a0d391d_rle_crop_3877829666_0.png.png imagette247784331752106621/1752106204_2174045_1371467770_9aba8fa277ed6637890c55dbfc8bbe47_rle_crop_3877829406_0.png.png imagette247784331752106621/1752105847_2162948_1371467215_c32322768daa7b78e0b8d9087c196f78_rle_crop_3877827831_0.png.png imagette247784331752106621/1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829352_0.png.png imagette247784331752106621/1752106327_2177193_1371467902_b474da080496eb27183d7b8754be8e4b_rle_crop_3877830048_0.png.png imagette247784331752106621/1752106405_2299493_1371468004_5467c6328bbd3e21b822b896febb8dc9_rle_crop_3877830308_0.png.png imagette247784331752106621/1752106204_2174045_1371467787_387d0b7a6dd6c89089b5c4eb93750e25_rle_crop_3877829281_0.png.png imagette247784331752106621/1752106204_2174045_1371467771_ec6d219cee9d512fa3d8821f15b142b7_rle_crop_3877829393_0.png.png imagette247784331752106621/1752106204_2174045_1371467780_52beb1a8cbf59d0d3802e87ab33d43c2_rle_crop_3877829353_0.png.png imagette247784331752106621/1752106204_2174045_1371467781_074fc0ee7a3631cc30819c2289b005ba_rle_crop_3877829341_0.png.png imagette247784331752106621/1752106204_2174045_1371467784_dc013f0f7f9ce2d1f208cc46b8f71fcb_rle_crop_3877829309_0.png.png imagette247784331752106621/1752106204_2174045_1371467775_edccc643e69aec405eb94ebd5fab4a66_rle_crop_3877829380_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/e4505ac030831af8643323ae348d8504_6177323.png imagette247784331752106621 24778440 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=24778440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371467965: '1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829431_0.png', 1371468208: '1752106567_2187857_1371467682_2a832fd94bffd24813c4a25908b6369b_rle_crop_3877830988_0.png', 1371468189: '1752106536_2185048_1371468072_b60fb2deab7822704fb5513f5924b3f3_rle_crop_3877830831_0.png', 1371468177: '1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830769_0.png', 1371468176: '1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830772_0.png', 1371468175: '1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830759_0.png', 1371468174: '1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830736_0.png', 1371468173: '1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830738_0.png', 1371468100: '1752106405_2299493_1371467993_9f9aff8b7e92bd1f6baafc8ba516d9b6_rle_crop_3877830372_0.png', 1371468098: '1752106405_2299493_1371467995_bfb7b01664dafeee9b3ae0e072631825_rle_crop_3877830358_0.png', 1371468019: '1752106285_2296670_1371467868_cc2c483c77e315a958abbef9e55bcf72_rle_crop_3877829599_0.png', 1371467697: '1752105847_2162948_1371467188_3ef9af6cacc6bfa5aafbc69577b42fea_rle_crop_3877827840_0.png', 1371467964: '1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829434_0.png', 1371467963: '1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829419_0.png', 1371467962: '1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829422_0.png', 1371467961: '1752106204_2174045_1371467770_9aba8fa277ed6637890c55dbfc8bbe47_rle_crop_3877829407_0.png', 1371467960: '1752106204_2174045_1371467771_ec6d219cee9d512fa3d8821f15b142b7_rle_crop_3877829394_0.png', 1371467916: '1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828939_0.png', 1371467915: '1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828938_0.png', 1371467914: '1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828936_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f5c755aad27e11289c4aa587d5a7414c_12321831.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/5050e78f79d0f26f36cf84f503eefcb6_58606099.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/cddb27b3825104f32247691539bed5fa_41529686.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/e4128d8090a38e33dabc305dbfef1407_4377032.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/78b7a1f7f11ad86e1069fe49def22083_2483502.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/2c71276129542366491e504b2cc01f4c_12122081.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/4ad418ea8a97a57974b3ff6ba0ac58ae_11612761.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f03037c41ebcfa593f4f825d2fad93e7_37612805.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/2be7d232f79cc9b71fc6c2cf57db66db_84402647.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6c89552e0e2c4d70bb7527ba086329d7_68192999.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a8e0a59f19fed1c9999d9344bfb4e1dd_53898565.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f269f86a544561e2be233b70ee6852c5_23905483.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/69c0bb2ee5a8475efdec921b8a232b5b_55690606.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f5c755aad27e11289c4aa587d5a7414c_28906595.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/69c0bb2ee5a8475efdec921b8a232b5b_11842649.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/637de044d21e85be66f99c73749cb1f8_53199527.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/637de044d21e85be66f99c73749cb1f8_27641427.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/01053e0b60aff125e7aeb1b89a4e1eb2_38996914.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/cd764be7eb35c11e8bc0ad3078d5cf4f_16162691.png change filename to text .imagette247784401752106622/ imagette247784401752106622/1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828938_0.png.png imagette247784401752106622/1752106536_2185048_1371468072_b60fb2deab7822704fb5513f5924b3f3_rle_crop_3877830831_0.png.png imagette247784401752106622/1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829434_0.png.png imagette247784401752106622/1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829419_0.png.png imagette247784401752106622/1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828939_0.png.png imagette247784401752106622/1752106405_2299493_1371467995_bfb7b01664dafeee9b3ae0e072631825_rle_crop_3877830358_0.png.png imagette247784401752106622/1752106204_2174045_1371467771_ec6d219cee9d512fa3d8821f15b142b7_rle_crop_3877829394_0.png.png imagette247784401752106622/1752106526_2302108_1371468044_4bda0d6c982cae9ed3b1cfc7f2ebe764_rle_crop_3877830759_0.png.png imagette247784401752106622/1752105847_2162948_1371467188_3ef9af6cacc6bfa5aafbc69577b42fea_rle_crop_3877827840_0.png.png imagette247784401752106622/1752106567_2187857_1371467682_2a832fd94bffd24813c4a25908b6369b_rle_crop_3877830988_0.png.png imagette247784401752106622/1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828936_0.png.png imagette247784401752106622/1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830772_0.png.png imagette247784401752106622/1752106204_2174045_1371467764_d0745fd411fce12ede78ee7d367801b7_rle_crop_3877829422_0.png.png imagette247784401752106622/1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830736_0.png.png imagette247784401752106622/1752106405_2299493_1371467993_9f9aff8b7e92bd1f6baafc8ba516d9b6_rle_crop_3877830372_0.png.png imagette247784401752106622/1752106285_2296670_1371467868_cc2c483c77e315a958abbef9e55bcf72_rle_crop_3877829599_0.png.png imagette247784401752106622/1752106204_2174045_1371467770_9aba8fa277ed6637890c55dbfc8bbe47_rle_crop_3877829407_0.png.png imagette247784401752106622/1752106526_2302108_1371468046_0469611b5a2778af1df848fb5e65f8b2_rle_crop_3877830738_0.png.png imagette247784401752106622/1752106204_2174045_1371467763_646fe168f0fe24456caf0c465b938f4c_rle_crop_3877829431_0.png.png imagette247784401752106622/1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830769_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c67e02fc6f5a34d2ceca8931599d16c1_35631049.png imagette247784401752106622 24778443 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=24778443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371467769: '1752105965_2165981_1371467504_e17c2554b612863b35c075f97cd2109f_rle_crop_3877828267_0.png', 1371467919: '1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828932_0.png', 1371468023: '1752106285_2296670_1371467863_68d6fe5d414b7048409bf488371422bb_rle_crop_3877829614_0.png', 1371468061: '1752106327_2177193_1371467906_371db9ad0ec41e76af65fbc0a2f1783f_rle_crop_3877830004_0.png', 1371468062: '1752106327_2177193_1371467905_e63205799e5a106a7b67a0570f410903_rle_crop_3877830019_0.png', 1371468108: '1752106405_2299493_1371467997_326045ca96f894268c0c1a4ef99bbf28_rle_crop_3877830342_0.png', 1371468186: '1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830770_0.png', 1371468187: '1752106526_2302108_1371468039_68d22370a4c6e45d456edd6d648a7c85_rle_crop_3877830783_0.png', 1371468188: '1752106526_2302108_1371468036_959a24d5ed246ec1a354ff2c65acb56e_rle_crop_3877830794_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/51f5d27feb78e572b6300b8401d8ec9a_97435052.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/4a37d07c813a6c7a83a526a4a177ff75_85529614.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/436df932c42017a7b80d24cfc690eef2_10383493.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c3e6dfc70eaa66817544750e145adac8_9923364.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c3e6dfc70eaa66817544750e145adac8_89154548.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/765702a7f6ce085bcd0ddf20ea15bd77_78426683.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/12ddd82711ed1c8ff892ae40e26ea7ee_434149.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/761d3d99cf83c65868f25f0109d5d134_85160913.png change filename to text .imagette247784431752106624/ imagette247784431752106624/1752106526_2302108_1371468036_959a24d5ed246ec1a354ff2c65acb56e_rle_crop_3877830794_0.png.png imagette247784431752106624/1752106327_2177193_1371467905_e63205799e5a106a7b67a0570f410903_rle_crop_3877830019_0.png.png imagette247784431752106624/1752106167_2293637_1371467801_82e62e7b96d2ca061d21929a2cd11a99_rle_crop_3877828932_0.png.png imagette247784431752106624/1752106285_2296670_1371467863_68d6fe5d414b7048409bf488371422bb_rle_crop_3877829614_0.png.png imagette247784431752106624/1752106526_2302108_1371468041_e01fa7b5705d9ec3bc2d2a083c451428_rle_crop_3877830770_0.png.png imagette247784431752106624/1752106526_2302108_1371468039_68d22370a4c6e45d456edd6d648a7c85_rle_crop_3877830783_0.png.png imagette247784431752106624/1752105965_2165981_1371467504_e17c2554b612863b35c075f97cd2109f_rle_crop_3877828267_0.png.png imagette247784431752106624/1752106327_2177193_1371467906_371db9ad0ec41e76af65fbc0a2f1783f_rle_crop_3877830004_0.png.png imagette247784431752106624/1752106405_2299493_1371467997_326045ca96f894268c0c1a4ef99bbf28_rle_crop_3877830342_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/43db2ffaa271041bb134ebb17adf7594_85126823.png imagette247784431752106624 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24778356 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24778446,24778447,24778448,24778449,24778450,24778451,24778452,24778453,24778454,24778455,24778456,24778457?tags=Carton_gris,environnement,plastique,metal,cartonnette,mal_croppe,kraft,Teint_Dans_La_Masse,flou,papier,Carton_brun,autre_refus your option no_mail is active, we will not send the real mail to your client args[1371468169] : ('0.03744010060349559',) no score found for photo 1371468169 We are sending mail with results at report@fotonower.com args[1371468166] : ('0.03744010060349559',) no score found for photo 1371468166 We are sending mail with results at report@fotonower.com args[1371468163] : ('0.03744010060349559',) no score found for photo 1371468163 We are sending mail with results at report@fotonower.com args[1371468161] : ('0.03744010060349559',) no score found for photo 1371468161 We are sending mail with results at report@fotonower.com args[1371468158] : ('0.03744010060349559',) no score found for photo 1371468158 We are sending mail with results at report@fotonower.com args[1371468156] : ('0.03744010060349559',) no score found for photo 1371468156 We are sending mail with results at report@fotonower.com args[1371468129] : ('0.03744010060349559',) no score found for photo 1371468129 We are sending mail with results at report@fotonower.com args[1371468125] : ('0.03744010060349559',) no score found for photo 1371468125 We are sending mail with results at report@fotonower.com args[1371468121] : ('0.03744010060349559',) no score found for photo 1371468121 We are sending mail with results at report@fotonower.com args[1371468118] : ('0.03744010060349559',) no score found for photo 1371468118 We are sending mail with results at report@fotonower.com args[1371468115] : ('0.03744010060349559',) no score found for photo 1371468115 We are sending mail with results at report@fotonower.com args[1371468113] : ('0.03744010060349559',) no score found for photo 1371468113 We are sending mail with results at report@fotonower.com refus_total : 0.03744010060349559 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=24778356 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_P24778356_10-07-2025_02_16_58.pdf results_Auto_P24778356_10-07-2025_02_16_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24778356_10-07-2025_02_16_58.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','24778356','results_Auto_P24778356_10-07-2025_02_16_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24778356_10-07-2025_02_16_58.pdf','pdf','','0.31','0.03744010060349559') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24778356]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] map_info['map_portfolio_photo'] : {24778356: [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113, 1371468075, 1371468073, 1371468072, 1371468070, 1371468067, 1371468064, 1371468049, 1371468046, 1371468044, 1371468041, 1371468039, 1371468036, 1371468008, 1371468004, 1371468000, 1371467997, 1371467995, 1371467993, 1371467936, 1371467931, 1371467928, 1371467926, 1371467924, 1371467921, 1371467912, 1371467910, 1371467909, 1371467908, 1371467906, 1371467905, 1371467903, 1371467902, 1371467901, 1371467900, 1371467897, 1371467896, 1371467868, 1371467863, 1371467859, 1371467856, 1371467854, 1371467851, 1371467801, 1371467798, 1371467795, 1371467794, 1371467792, 1371467791, 1371467787, 1371467786, 1371467784, 1371467783, 1371467781, 1371467780, 1371467776, 1371467775, 1371467771, 1371467770, 1371467764, 1371467763, 1371467738, 1371467735, 1371467733, 1371467730, 1371467727, 1371467725, 1371467695, 1371467692, 1371467690, 1371467687, 1371467683, 1371467682, 1371467664, 1371467661, 1371467659, 1371467656, 1371467654, 1371467650, 1371467583, 1371467574, 1371467559, 1371467531, 1371467504, 1371467459, 1371467272, 1371467242, 1371467215, 1371467188, 1371467156]} final : False mtd_id 4302 list_pids : [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] 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, '3262605') ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24778356', '1371468169', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605')] time used for this insertion : 0.014775753021240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.085359334945679 time spend to save output : 0.015014410018920898 total time spend for step 4 : 7.1003737449646 step5:split_time_score Thu Jul 10 02:17:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24778356'] 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 : [('24778356',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24778356) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371468121: {'path': 'temp/1752106618_442842_1371468121_eb8b0b7611adad27b22a488b18f869d2.jpg', 'extension': 'jpg'}, 1371468125: {'path': 'temp/1752106618_442842_1371468125_b15b0600360d86af61577ed2a9fa84cd.jpg', 'extension': 'jpg'}, 1371468129: {'path': 'temp/1752106618_442842_1371468129_8c1bca1c170bb2b4aec9d947761ff857.jpg', 'extension': 'jpg'}, 1371468163: {'path': 'temp/1752106618_442842_1371468163_602d026caf331cab5ca7bab5921e0231.jpg', 'extension': 'jpg'}, 1371468166: {'path': 'temp/1752106618_442842_1371468166_7e08b47ad2855d2a22179f60da84f7a7.jpg', 'extension': 'jpg'}, 1371468169: {'path': 'temp/1752106618_442842_1371468169_5dc877d69d7660defc3bc6d1b1d6087b.jpg', 'extension': 'jpg'}, 1371468113: {'path': 'temp/1752106618_442842_1371468113_571a5343b02605b18271070e9dc78b5e.jpg', 'extension': 'jpg'}, 1371468115: {'path': 'temp/1752106618_442842_1371468115_e0db5d6644da5ab025ac28db0f92e1c2.jpg', 'extension': 'jpg'}, 1371468118: {'path': 'temp/1752106618_442842_1371468118_fcd957a094f9855b3d43e6fd9b6cb3a1.jpg', 'extension': 'jpg'}, 1371468156: {'path': 'temp/1752106618_442842_1371468156_7cd1042c904ae19c3315e66ba923f267.jpg', 'extension': 'jpg'}, 1371468158: {'path': 'temp/1752106618_442842_1371468158_d1f4e0827139f02fc11c4979096a39ce.jpg', 'extension': 'jpg'}, 1371468161: {'path': 'temp/1752106618_442842_1371468161_e8d8e8b3bc94e0ab8628966f93be5674.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 = 24778356; (('arc_en_ciel_jrm_live',), ('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 = 24778356 group by h (('02', 101),) 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=24778356 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 (24778356) 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 (24778356) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10072025 24778356 Nombre de photos uploadées : 101 / 23040 (0%) 10072025 24778356 Nombre de photos taguées (types de déchets): 0 / 101 (0%) 10072025 24778356 Nombre de photos taguées (volume) : 0 / 101 (0%) [{'photo_id': 1371467272, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/946c01681c60cf49b3f0073af0642b02.jpg', 'username': None, 'uploaded_at': 1752105672, 'text': 'image_10072025_02_00_14_010158m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371467242, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f0dc77b53259048d370c351864eb4ec6.jpg', 'username': None, 'uploaded_at': 1752105672, 'text': 'image_10072025_02_00_24_010138m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1371467215, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c32322768daa7b78e0b8d9087c196f78.jpg', 'username': None, 'uploaded_at': 1752105672, 'text': 'image_10072025_02_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371467188, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/3ef9af6cacc6bfa5aafbc69577b42fea.jpg', 'username': None, 'uploaded_at': 1752105672, 'text': 'image_10072025_02_00_44_010137m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004358530044555664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24778356, '2025-07-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1965352,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024202823638916016 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= 1965352 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24774220, 'dashboard_result_id': 12339393, '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_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24774919, 'dashboard_result_id': 12339394, '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_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24775410, 'dashboard_result_id': 12339395, '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_P24775410_10-07-2025_00_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24775941, 'dashboard_result_id': 12339396, '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_P24775941_10-07-2025_01_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775955, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24776384, 'dashboard_result_id': 12339397, '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_P24776384_10-07-2025_01_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24776420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776424, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24776944, 'dashboard_result_id': 12339398, '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_P24776944_10-07-2025_01_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24776973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776984, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24777415, 'dashboard_result_id': 12339399, '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_P24777415_10-07-2025_01_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24777451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777456, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24777881, 'dashboard_result_id': 12339400, '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_P24777881_10-07-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24777907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777918, 'pht': 3726}}"}, {'dashboat_entry_day': 1965352, 'dashboard_run_id': 1972963, 'mtr_portfolio_id': 24778356, 'dashboard_result_id': 12339401, '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_P24778356_10-07-2025_02_14_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24778433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24778434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24778435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24778436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24778437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24778438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24778439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24778440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24778441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24778442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24778443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24778444, '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 = 24774220 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': 3262208, 'mtr_portfolio_id': 24774220, 'created_at': datetime.datetime(2025, 7, 10, 0, 16, 57), 'result': '0.0439887508083733', 'result_long': None, 'result_double': None}] Qualite : 0.0439887508083733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24774220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774220_10-07-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24774220 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_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, 'pht': 3726}}" where mtr_portfolio_id = 24774220 and dashboard_run_id = 1972963 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`=24774220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339393, 0.0439887508083733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, '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 = 24774919 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': 3262258, 'mtr_portfolio_id': 24774919, 'created_at': datetime.datetime(2025, 7, 10, 0, 32, 58), 'result': '0.04397998394299902', 'result_long': None, 'result_double': None}] Qualite : 0.04397998394299902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24774919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774919_10-07-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24774919 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_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, 'pht': 3726}}" where mtr_portfolio_id = 24774919 and dashboard_run_id = 1972963 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`=24774919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339394, 0.04397998394299902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, '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 = 24775410 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': 3262300, 'mtr_portfolio_id': 24775410, 'created_at': datetime.datetime(2025, 7, 10, 0, 46, 58), 'result': '0.03411792418508311', 'result_long': None, 'result_double': None}] Qualite : 0.03411792418508311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24775410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24775410 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_P24775410_10-07-2025_00_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, 'pht': 3726}}" where mtr_portfolio_id = 24775410 and dashboard_run_id = 1972963 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`=24775410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339395, 0.03411792418508311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, '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 = 24775941 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': 3262342, 'mtr_portfolio_id': 24775941, 'created_at': datetime.datetime(2025, 7, 10, 1, 0, 59), 'result': '0.044946745018685286', 'result_long': None, 'result_double': None}] Qualite : 0.044946745018685286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24775941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775941_10-07-2025_01_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24775941 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_P24775941_10-07-2025_01_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775955, 'pht': 3726}}" where mtr_portfolio_id = 24775941 and dashboard_run_id = 1972963 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`=24775941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339396, 0.044946745018685286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775941_10-07-2025_01_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775946, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775947, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775952, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775953, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775955, '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 = 24776384 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': 3262393, 'mtr_portfolio_id': 24776384, 'created_at': datetime.datetime(2025, 7, 10, 1, 16, 57), 'result': '0.03134340908142172', 'result_long': None, 'result_double': None}] Qualite : 0.03134340908142172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24776384 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776384_10-07-2025_01_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24776384 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_P24776384_10-07-2025_01_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24776420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776424, 'pht': 3726}}" where mtr_portfolio_id = 24776384 and dashboard_run_id = 1972963 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`=24776384 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339397, 0.03134340908142172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776384_10-07-2025_01_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776414, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776417, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24776420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776424, '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 = 24776944 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': 3262449, 'mtr_portfolio_id': 24776944, 'created_at': datetime.datetime(2025, 7, 10, 1, 32, 58), 'result': '0.020695254561592224', 'result_long': None, 'result_double': None}] Qualite : 0.020695254561592224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24776944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776944_10-07-2025_01_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24776944 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_P24776944_10-07-2025_01_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24776973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776984, 'pht': 3726}}" where mtr_portfolio_id = 24776944 and dashboard_run_id = 1972963 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`=24776944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339398, 0.020695254561592224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24776944_10-07-2025_01_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24776973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24776974, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24776975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24776976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24776977, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24776978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24776979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24776980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24776981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24776982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24776983, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24776984, '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 = 24777415 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': 3262493, 'mtr_portfolio_id': 24777415, 'created_at': datetime.datetime(2025, 7, 10, 1, 46, 30), 'result': '0.09581637459819202', 'result_long': None, 'result_double': None}] Qualite : 0.09581637459819202 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24777415 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777415_10-07-2025_01_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24777415 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_P24777415_10-07-2025_01_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24777451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777456, 'pht': 3726}}" where mtr_portfolio_id = 24777415 and dashboard_run_id = 1972963 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`=24777415 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339399, 0.09581637459819202, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777415_10-07-2025_01_46_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777445, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777446, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777449, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24777451, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777456, '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 = 24777881 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': 3262538, 'mtr_portfolio_id': 24777881, 'created_at': datetime.datetime(2025, 7, 10, 2, 2, 58), 'result': '0.05343706622571296', 'result_long': None, 'result_double': None}] Qualite : 0.05343706622571296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24777881 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777881_10-07-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24777881 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_P24777881_10-07-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24777907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777918, 'pht': 3726}}" where mtr_portfolio_id = 24777881 and dashboard_run_id = 1972963 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`=24777881 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339400, 0.05343706622571296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24777881_10-07-2025_02_02_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24777907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24777908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24777909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24777910, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24777911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24777912, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24777913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24777914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24777915, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24777916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24777917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24777918, '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 = 24778356 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': 3262605, 'mtr_portfolio_id': 24778356, 'created_at': datetime.datetime(2025, 7, 10, 2, 16, 58), 'result': '0.03744010060349559', 'result_long': None, 'result_double': None}] Qualite : 0.03744010060349559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24778356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24778356_10-07-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24778356 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_P24778356_10-07-2025_02_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24778433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24778434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24778435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24778436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24778437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24778438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24778439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24778440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24778441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24778442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24778443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24778444, 'pht': 3726}}" where mtr_portfolio_id = 24778356 and dashboard_run_id = 1972962 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`=24778356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12339401, 0.03744010060349559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24778356_10-07-2025_02_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24778433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24778434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24778435, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24778436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24778437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24778438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24778439, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24778440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24778441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24778442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24778443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24778444, '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 (24774220,24774919,24775410,24775941,24776384,24776944,24777415,24777881,24778356) result : ((1371451315,), (1371451337,), (1371451345,), (1371451375,), (1371451396,), (1371451416,), (1371451436,), (1371451438,), (1371451442,), (1371451444,), (1371451447,), (1371451451,), (1371451488,), (1371451491,), (1371451495,), (1371451498,), (1371451502,), (1371451505,), (1371451525,), (1371451528,), (1371451530,), (1371451531,), (1371451541,), (1371451547,), (1371451595,), (1371451623,), (1371451648,), (1371451663,), (1371451665,), (1371451685,), (1371452002,), (1371452052,), (1371452098,), (1371452136,), (1371452175,), (1371452214,), (1371452488,), (1371452515,), (1371452541,), (1371452566,), (1371452573,), (1371452575,), (1371452627,), (1371452631,), (1371452634,), (1371452646,), (1371452691,), (1371452722,), (1371452876,), (1371452878,), (1371452880,), (1371452883,), (1371452887,), (1371452891,), (1371452979,), (1371452981,), (1371452985,), (1371452989,), (1371453001,), (1371453002,), (1371453261,), (1371453276,), (1371453292,), (1371453303,), (1371453325,), (1371453335,), (1371453370,), (1371453372,), (1371453374,), (1371453376,), (1371453378,), (1371453381,), (1371453412,), (1371453414,), (1371453417,), (1371453419,), (1371453422,), (1371453425,), (1371453501,), (1371453512,), (1371453526,), (1371453528,), (1371453538,), (1371453544,), (1371453549,), (1371453551,), (1371453552,), (1371453559,), (1371453561,), (1371453562,), (1371453821,), (1371453831,), (1371453834,), (1371453837,), (1371453839,), (1371453843,), (1371453933,), (1371453936,), (1371453938,), (1371453941,), (1371453943,), (1371453945,), (1371454134,), (1371454153,), (1371454165,), (1371454166,), (1371454172,), (1371454194,), (1371454267,), (1371454294,), (1371454320,), (1371454348,), (1371454389,), (1371454436,), (1371454809,), (1371454836,), (1371454861,), (1371454888,), (1371454912,), (1371454943,), (1371454975,), (1371454976,), (1371454978,), (1371454980,), (1371454982,), (1371455006,), (1371455329,), (1371455354,), (1371455379,), (1371455405,), (1371455431,), (1371455458,), (1371455631,), (1371455635,), (1371455637,), (1371455639,), (1371455640,), (1371455644,), (1371455654,), (1371455657,), (1371455674,), (1371455676,), (1371455677,), (1371455679,), (1371455798,), (1371455799,), (1371455802,), (1371455805,), (1371455808,), (1371455810,), (1371455842,), (1371455847,), (1371455851,), (1371455852,), (1371455856,), (1371455858,), (1371455878,), (1371455879,), (1371455883,), (1371455884,), (1371455887,), (1371455888,), (1371455892,), (1371455893,), (1371455895,), (1371455897,), (1371455900,), (1371455901,), (1371455911,), (1371455914,), (1371455916,), (1371455919,), (1371455922,), (1371455925,), (1371455968,), (1371455970,), (1371455973,), (1371455976,), (1371455978,), (1371455980,), (1371456036,), (1371456040,), (1371456043,), (1371456048,), (1371456052,), (1371456054,), (1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,), (1371457857,), (1371457884,), (1371457912,), (1371457936,), (1371457954,), (1371457956,), (1371457987,), (1371457989,), (1371457993,), (1371457996,), (1371457998,), (1371458002,), (1371458014,), (1371458016,), (1371458019,), (1371458020,), (1371458022,), (1371458024,), (1371458071,), (1371458072,), (1371458074,), (1371458076,), (1371458080,), (1371458083,), (1371458119,), (1371458124,), (1371458127,), (1371458129,), (1371458132,), (1371458134,), (1371458156,), (1371458158,), (1371458161,), (1371458164,), (1371458165,), (1371458168,), (1371458175,), (1371458178,), (1371458179,), (1371458181,), (1371458182,), (1371458185,), (1371458207,), (1371458209,), (1371458211,), (1371458213,), (1371458215,), (1371458218,), (1371458252,), (1371458254,), (1371458257,), (1371458261,), (1371458273,), (1371458276,), (1371458280,), (1371458282,), (1371458284,), (1371458286,), (1371458288,), (1371458313,), (1371458490,), (1371458492,), (1371458500,), (1371458501,), (1371458521,), (1371458524,), (1371458576,), (1371458579,), (1371458580,), (1371458630,), (1371458638,), (1371458654,), (1371458693,), (1371458699,), (1371458702,), (1371458705,), (1371458707,), (1371458709,), (1371458802,), (1371458804,), (1371458807,), (1371458809,), (1371458811,), (1371458813,), (1371458831,), (1371458834,), (1371458836,), (1371458839,), (1371458841,), (1371458843,), (1371458881,), (1371458882,), (1371458886,), (1371458888,), (1371458891,), (1371458893,), (1371458894,), (1371458895,), (1371458897,), (1371458898,), (1371458901,), (1371458902,), (1371459001,), (1371459028,), (1371459051,), (1371459078,), (1371459107,), (1371459134,), (1371459886,), (1371459943,), (1371459991,), (1371460035,), (1371460085,), (1371460136,), (1371460438,), (1371460468,), (1371460520,), (1371460565,), (1371460608,), (1371460884,), (1371460886,), (1371460889,), (1371460892,), (1371460895,), (1371460897,), (1371460924,), (1371460928,), (1371460932,), (1371460934,), (1371460937,), (1371460940,), (1371460946,), (1371460948,), (1371460950,), (1371460952,), (1371460955,), (1371460958,), (1371460980,), (1371460981,), (1371460983,), (1371460986,), (1371460989,), (1371460993,), (1371461014,), (1371461017,), (1371461020,), (1371461024,), (1371461027,), (1371461030,), (1371461061,), (1371461062,), (1371461066,), (1371461067,), (1371461069,), (1371461071,), (1371461072,), (1371461073,), (1371461076,), (1371461077,), (1371461080,), (1371461081,), (1371461105,), (1371461107,), (1371461109,), (1371461113,), (1371461116,), (1371461119,), (1371461174,), (1371461177,), (1371461181,), (1371461184,), (1371461188,), (1371461189,), (1371461276,), (1371461281,), (1371461284,), (1371461287,), (1371461290,), (1371461303,), (1371461395,), (1371461396,), (1371461399,), (1371461402,), (1371461405,), (1371461422,), (1371461490,), (1371461494,), (1371461514,), (1371461519,), (1371461522,), (1371461531,), (1371461560,), (1371461561,), (1371461567,), (1371461570,), (1371461594,), (1371461597,), (1371461618,), (1371461621,), (1371461644,), (1371461647,), (1371461671,), (1371461676,), (1371461764,), (1371461767,), (1371461768,), (1371461770,), (1371461772,), (1371461776,), (1371462046,), (1371462070,), (1371462097,), (1371462123,), (1371462151,), (1371462175,), (1371462297,), (1371462303,), (1371462318,), (1371462329,), (1371462331,), (1371462341,), (1371462359,), (1371462361,), (1371462381,), (1371462404,), (1371462409,), (1371462411,), (1371462531,), (1371462556,), (1371462580,), (1371462582,), (1371462585,), (1371462588,), (1371462782,), (1371462808,), (1371462842,), (1371462889,), (1371462937,), (1371462984,), (1371463112,), (1371463138,), (1371463166,), (1371463190,), (1371463220,), (1371463242,), (1371463575,), (1371463577,), (1371463592,), (1371463630,), (1371463659,), (1371463684,), (1371463935,), (1371463944,), (1371463968,), (1371463978,), (1371463980,), (1371463987,), (1371464012,), (1371464013,), (1371464016,), (1371464017,), (1371464020,), (1371464021,), (1371464023,), (1371464024,), (1371464027,), (1371464028,), (1371464032,), (1371464033,), (1371464050,), (1371464054,), (1371464055,), (1371464058,), (1371464061,), (1371464062,), (1371464088,), (1371464090,), (1371464093,), (1371464096,), (1371464099,), (1371464100,), (1371464137,), (1371464140,), (1371464143,), (1371464144,), (1371464154,), (1371464157,), (1371464160,), (1371464164,), (1371464167,), (1371464170,), (1371464174,), (1371464176,), (1371464213,), (1371464214,), (1371464218,), (1371464221,), (1371464225,), (1371464228,), (1371464258,), (1371464260,), (1371464263,), (1371464265,), (1371464267,), (1371464268,), (1371464300,), (1371464304,), (1371464312,), (1371464321,), (1371464325,), (1371464326,), (1371464337,), (1371464341,), (1371464344,), (1371464347,), (1371464351,), (1371464354,), (1371464387,), (1371464389,), (1371464391,), (1371464394,), (1371464396,), (1371464404,), (1371464432,), (1371464433,), (1371464435,), (1371464436,), (1371464439,), (1371464440,), (1371464442,), (1371464444,), (1371464447,), (1371464448,), (1371464452,), (1371464453,), (1371464474,), (1371464475,), (1371464477,), (1371464484,), (1371464488,), (1371464491,), (1371464497,), (1371464499,), (1371464501,), (1371464502,), (1371464504,), (1371464506,), (1371464530,), (1371464540,), (1371464552,), (1371464556,), (1371464558,), (1371464560,), (1371464597,), (1371464599,), (1371464600,), (1371464601,), (1371464602,), (1371464605,), (1371464651,), (1371464652,), (1371464653,), (1371464654,), (1371464661,), (1371464664,), (1371464669,), (1371464671,), (1371464672,), (1371464674,), (1371464676,), (1371464677,), (1371464683,), (1371464686,), (1371464688,), (1371464690,), (1371464692,), (1371464693,), (1371464729,), (1371464737,), (1371464749,), (1371464759,), (1371464762,), (1371464765,), (1371464831,), (1371464837,), (1371464840,), (1371464843,), (1371464847,), (1371464850,), (1371464863,), (1371464870,), (1371464881,), (1371464888,), (1371464890,), (1371464892,), (1371464935,), (1371464939,), (1371464949,), (1371464952,), (1371464953,), (1371464956,), (1371464996,), (1371464999,), (1371465001,), (1371465003,), (1371465005,), (1371465007,), (1371465067,), (1371465068,), (1371465069,), (1371465070,), (1371465071,), (1371465072,), (1371465073,), (1371465074,), (1371465075,), (1371465076,), (1371465078,), (1371465079,), (1371465090,), (1371465092,), (1371465095,), (1371465097,), (1371465100,), (1371465104,), (1371465122,), (1371465125,), (1371465130,), (1371465132,), (1371465134,), (1371465137,), (1371465157,), (1371465161,), (1371465164,), (1371465165,), (1371465173,), (1371465179,), (1371465185,), (1371465188,), (1371465190,), (1371465191,), (1371465194,), (1371465197,), (1371465228,), (1371465230,), (1371465232,), (1371465235,), (1371465238,), (1371465240,), (1371465279,), (1371465281,), (1371465283,), (1371465284,), (1371465285,), (1371465287,), (1371465291,), (1371465293,), (1371465297,), (1371465298,), (1371465301,), (1371465304,), (1371465346,), (1371465347,), (1371465349,), (1371465351,), (1371465353,), (1371465356,), (1371465399,), (1371465401,), (1371465403,), (1371465405,), (1371465407,), (1371465411,), (1371465447,), (1371465449,), (1371465451,), (1371465454,), (1371465455,), (1371465457,), (1371465458,), (1371465460,), (1371465461,), (1371465464,), (1371465465,), (1371465467,), (1371465471,), (1371465474,), (1371465476,), (1371465477,), (1371465479,), (1371465482,), (1371465517,), (1371465519,), (1371465521,), (1371465524,), (1371465525,), (1371465528,), (1371465872,), (1371465918,), (1371465958,), (1371465982,), (1371466019,), (1371466061,), (1371466624,), (1371466671,), (1371466719,), (1371466751,), (1371466777,), (1371466802,), (1371467156,), (1371467188,), (1371467215,), (1371467242,), (1371467272,), (1371467459,), (1371467504,), (1371467531,), (1371467559,), (1371467574,), (1371467583,), (1371467650,), (1371467654,), (1371467656,), (1371467659,), (1371467661,), (1371467664,), (1371467682,), (1371467683,), (1371467687,), (1371467690,), (1371467692,), (1371467695,), (1371467725,), (1371467727,), (1371467730,), (1371467733,), (1371467735,), (1371467738,), (1371467763,), (1371467764,), (1371467770,), (1371467771,), (1371467775,), (1371467776,), (1371467780,), (1371467781,), (1371467783,), (1371467784,), (1371467786,), (1371467787,), (1371467791,), (1371467792,), (1371467794,), (1371467795,), (1371467798,), (1371467801,), (1371467851,), (1371467854,), (1371467856,), (1371467859,), (1371467863,), (1371467868,), (1371467896,), (1371467897,), (1371467900,), (1371467901,), (1371467902,), (1371467903,), (1371467905,), (1371467906,), (1371467908,), (1371467909,), (1371467910,), (1371467912,), (1371467921,), (1371467924,), (1371467926,), (1371467928,), (1371467931,), (1371467936,), (1371467993,), (1371467995,), (1371467997,), (1371468000,), (1371468004,), (1371468008,), (1371468036,), (1371468039,), (1371468041,), (1371468044,), (1371468046,), (1371468049,), (1371468064,), (1371468067,), (1371468070,), (1371468072,), (1371468073,), (1371468075,), (1371468113,), (1371468115,), (1371468118,), (1371468121,), (1371468125,), (1371468129,), (1371468156,), (1371468158,), (1371468161,), (1371468163,), (1371468166,), (1371468169,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10072025': {'nb_upload': 101, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24778356]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] map_info['map_portfolio_photo'] : {24778356: [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113, 1371468075, 1371468073, 1371468072, 1371468070, 1371468067, 1371468064, 1371468049, 1371468046, 1371468044, 1371468041, 1371468039, 1371468036, 1371468008, 1371468004, 1371468000, 1371467997, 1371467995, 1371467993, 1371467936, 1371467931, 1371467928, 1371467926, 1371467924, 1371467921, 1371467912, 1371467910, 1371467909, 1371467908, 1371467906, 1371467905, 1371467903, 1371467902, 1371467901, 1371467900, 1371467897, 1371467896, 1371467868, 1371467863, 1371467859, 1371467856, 1371467854, 1371467851, 1371467801, 1371467798, 1371467795, 1371467794, 1371467792, 1371467791, 1371467787, 1371467786, 1371467784, 1371467783, 1371467781, 1371467780, 1371467776, 1371467775, 1371467771, 1371467770, 1371467764, 1371467763, 1371467738, 1371467735, 1371467733, 1371467730, 1371467727, 1371467725, 1371467695, 1371467692, 1371467690, 1371467687, 1371467683, 1371467682, 1371467664, 1371467661, 1371467659, 1371467656, 1371467654, 1371467650, 1371467583, 1371467574, 1371467559, 1371467531, 1371467504, 1371467459, 1371467272, 1371467242, 1371467215, 1371467188, 1371467156]} final : True mtd_id 4302 list_pids : [1371468169, 1371468166, 1371468163, 1371468161, 1371468158, 1371468156, 1371468129, 1371468125, 1371468121, 1371468118, 1371468115, 1371468113] Looping around the photos to save general results len do output : 1 /24778356Didn'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, '3262605') ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605') ('4302', None, None, None, None, None, None, None, '3262605') ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24778356', 'None', None, None, None, None, '3262605'), ('4302', '24778356', '1371468169', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468166', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468163', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468161', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468158', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468156', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468129', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468125', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468121', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468118', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468115', None, None, None, None, None, '3262605'), ('4302', '24778356', '1371468113', None, None, None, None, None, '3262605')] time used for this insertion : 0.016902923583984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6221950054168701 time spend to save output : 0.01717233657836914 total time spend for step 5 : 0.6393673419952393 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 (3262605) 2.32user 2.28system 0:11.85elapsed 38%CPU (0avgtext+0avgdata 163100maxresident)k 0inputs+19360outputs (9major+76658minor)pagefaults 0swaps