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 : 1593810 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 (3312661) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3312661) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119655 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3312661'] with mtr_portfolio_ids : ['25119655'] and first list_photo_ids : [] new path : /proc/1593810/ Name: python3 Umask: 0002 State: R (running) Tgid: 1593810 Ngid: 0 Pid: 1593810 PPid: 1593809 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1593810 NSpid: 1593810 NSpgid: 1592956 NSsid: 1592956 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98772 kB VmRSS: 98772 kB RssAnon: 59796 kB RssFile: 38976 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/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: 43 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1593810', 'Ngid': '0', 'Pid': '1593810', 'PPid': '1593809', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1593810', 'NSpid': '1593810', 'NSpgid': '1592956', 'NSsid': '1592956', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98772 kB', 'VmRSS': '98772 kB', 'RssAnon': '59796 kB', 'RssFile': '38976 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/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': '43', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1593810', '1106884', '0', '1106884', '865636', '98772', b'', 'marlene', '3312661') 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 (25119655) 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 (3312661 ) ) 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 (25119655) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372968341, 'portfolio_id': 25119655}, {'photo_id': 1372968337, 'portfolio_id': 25119655}, {'photo_id': 1372968334, 'portfolio_id': 25119655}, {'photo_id': 1372968323, 'portfolio_id': 25119655}, {'photo_id': 1372968314, 'portfolio_id': 25119655}, {'photo_id': 1372968309, 'portfolio_id': 25119655}, {'photo_id': 1372968296, 'portfolio_id': 25119655}, {'photo_id': 1372968295, 'portfolio_id': 25119655}, {'photo_id': 1372968294, 'portfolio_id': 25119655}, {'photo_id': 1372968292, 'portfolio_id': 25119655}, {'photo_id': 1372968290, 'portfolio_id': 25119655}, {'photo_id': 1372968289, 'portfolio_id': 25119655}, {'photo_id': 1372968268, 'portfolio_id': 25119655}, {'photo_id': 1372968267, 'portfolio_id': 25119655}, {'photo_id': 1372968266, 'portfolio_id': 25119655}, {'photo_id': 1372968264, 'portfolio_id': 25119655}, {'photo_id': 1372968263, 'portfolio_id': 25119655}, {'photo_id': 1372968261, 'portfolio_id': 25119655}, {'photo_id': 1372968242, 'portfolio_id': 25119655}, {'photo_id': 1372968240, 'portfolio_id': 25119655}, {'photo_id': 1372968239, 'portfolio_id': 25119655}, {'photo_id': 1372968238, 'portfolio_id': 25119655}, {'photo_id': 1372968237, 'portfolio_id': 25119655}, {'photo_id': 1372968236, 'portfolio_id': 25119655}, {'photo_id': 1372968216, 'portfolio_id': 25119655}, {'photo_id': 1372968212, 'portfolio_id': 25119655}, {'photo_id': 1372968210, 'portfolio_id': 25119655}, {'photo_id': 1372968208, 'portfolio_id': 25119655}, {'photo_id': 1372968207, 'portfolio_id': 25119655}, {'photo_id': 1372968206, 'portfolio_id': 25119655}, {'photo_id': 1372968189, 'portfolio_id': 25119655}, {'photo_id': 1372968187, 'portfolio_id': 25119655}, {'photo_id': 1372968184, 'portfolio_id': 25119655}, {'photo_id': 1372968182, 'portfolio_id': 25119655}, {'photo_id': 1372968180, 'portfolio_id': 25119655}, {'photo_id': 1372968177, 'portfolio_id': 25119655}, {'photo_id': 1372968168, 'portfolio_id': 25119655}, {'photo_id': 1372968166, 'portfolio_id': 25119655}, {'photo_id': 1372968163, 'portfolio_id': 25119655}, {'photo_id': 1372968158, 'portfolio_id': 25119655}, {'photo_id': 1372968154, 'portfolio_id': 25119655}, {'photo_id': 1372968149, 'portfolio_id': 25119655}, {'photo_id': 1372968140, 'portfolio_id': 25119655}, {'photo_id': 1372968138, 'portfolio_id': 25119655}, {'photo_id': 1372968136, 'portfolio_id': 25119655}, {'photo_id': 1372968135, 'portfolio_id': 25119655}, {'photo_id': 1372968133, 'portfolio_id': 25119655}, {'photo_id': 1372968131, 'portfolio_id': 25119655}, {'photo_id': 1372968116, 'portfolio_id': 25119655}, {'photo_id': 1372968115, 'portfolio_id': 25119655}, {'photo_id': 1372968114, 'portfolio_id': 25119655}, {'photo_id': 1372968113, 'portfolio_id': 25119655}, {'photo_id': 1372968112, 'portfolio_id': 25119655}, {'photo_id': 1372968111, 'portfolio_id': 25119655}, {'photo_id': 1372968094, 'portfolio_id': 25119655}, {'photo_id': 1372968072, 'portfolio_id': 25119655}, {'photo_id': 1372968070, 'portfolio_id': 25119655}, {'photo_id': 1372968068, 'portfolio_id': 25119655}, {'photo_id': 1372968066, 'portfolio_id': 25119655}, {'photo_id': 1372968064, 'portfolio_id': 25119655}, {'photo_id': 1372968062, 'portfolio_id': 25119655}, {'photo_id': 1372968042, 'portfolio_id': 25119655}, {'photo_id': 1372968041, 'portfolio_id': 25119655}, {'photo_id': 1372968040, 'portfolio_id': 25119655}, {'photo_id': 1372968039, 'portfolio_id': 25119655}, {'photo_id': 1372968037, 'portfolio_id': 25119655}, {'photo_id': 1372968035, 'portfolio_id': 25119655}, {'photo_id': 1372968012, 'portfolio_id': 25119655}, {'photo_id': 1372968011, 'portfolio_id': 25119655}, {'photo_id': 1372968010, 'portfolio_id': 25119655}, {'photo_id': 1372968009, 'portfolio_id': 25119655}, {'photo_id': 1372968007, 'portfolio_id': 25119655}, {'photo_id': 1372968001, 'portfolio_id': 25119655}, {'photo_id': 1372967969, 'portfolio_id': 25119655}, {'photo_id': 1372967959, 'portfolio_id': 25119655}, {'photo_id': 1372967958, 'portfolio_id': 25119655}, {'photo_id': 1372967957, 'portfolio_id': 25119655}, {'photo_id': 1372967956, 'portfolio_id': 25119655}, {'photo_id': 1372967954, 'portfolio_id': 25119655}, {'photo_id': 1372967948, 'portfolio_id': 25119655}] map_portfolio_id_photo_id: {25119655: [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309, 1372968296, 1372968295, 1372968294, 1372968292, 1372968290, 1372968289, 1372968268, 1372968267, 1372968266, 1372968264, 1372968263, 1372968261, 1372968242, 1372968240, 1372968239, 1372968238, 1372968237, 1372968236, 1372968216, 1372968212, 1372968210, 1372968208, 1372968207, 1372968206, 1372968189, 1372968187, 1372968184, 1372968182, 1372968180, 1372968177, 1372968168, 1372968166, 1372968163, 1372968158, 1372968154, 1372968149, 1372968140, 1372968138, 1372968136, 1372968135, 1372968133, 1372968131, 1372968116, 1372968115, 1372968114, 1372968113, 1372968112, 1372968111, 1372968094, 1372968072, 1372968070, 1372968068, 1372968066, 1372968064, 1372968062, 1372968042, 1372968041, 1372968040, 1372968039, 1372968037, 1372968035, 1372968012, 1372968011, 1372968010, 1372968009, 1372968007, 1372968001, 1372967969, 1372967959, 1372967958, 1372967957, 1372967956, 1372967954, 1372967948]} ##### 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.01572871208190918 #### 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 Mon Jul 21 06:33:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25119655) 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 : 25119655 get user id for portfolio 25119655 get sub ptf for main ptf 25119655, type 3726 and hashtags ['cartonnette', 'autre_refus', 'metal', 'mal_croppe', 'kraft', 'Carton_gris', 'Teint_Dans_La_Masse', 'flou', 'papier', 'plastique', 'Carton_brun', 'environnement'] 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`=25119655 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','flou','papier','plastique','Carton_brun','environnement')) 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`=25119655 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','flou','papier','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25119655, 'sub_port_id': 25119661, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936075, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'mal_croppe': {'main_port_id': 25119655, 'sub_port_id': 25119662, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936076, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 25119655, 'sub_port_id': 25119663, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936077, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'Carton_gris': {'main_port_id': 25119655, 'sub_port_id': 25119664, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936078, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'papier': {'main_port_id': 25119655, 'sub_port_id': 25119665, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936079, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'cartonnette': {'main_port_id': 25119655, 'sub_port_id': 25119666, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936080, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'autre_refus': {'main_port_id': 25119655, 'sub_port_id': 25119667, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936081, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'environnement': {'main_port_id': 25119655, 'sub_port_id': 25119668, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936082, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'Carton_brun': {'main_port_id': 25119655, 'sub_port_id': 25119669, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936083, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'plastique': {'main_port_id': 25119655, 'sub_port_id': 25119670, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936084, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'metal': {'main_port_id': 25119655, 'sub_port_id': 25119671, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936085, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}, 'flou': {'main_port_id': 25119655, 'sub_port_id': 25119672, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936086, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119661 , 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=25119655 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 (25119661) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119662 , 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=25119655 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 (25119662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119663 , 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=25119655 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 (25119663) result : ((1372967994,), (1372967995,), (1372967996,), (1372967997,), (1372968052,), (1372968053,), (1372968054,), (1372968055,), (1372968056,), (1372968108,), (1372968117,), (1372968118,), (1372968119,), (1372968120,), (1372968121,), (1372968122,), (1372968123,), (1372968124,), (1372968200,), (1372968258,), (1372968275,), (1372968276,), (1372968277,), (1372968312,), (1372968358,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119664 , 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=25119655 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 (25119664) result : ((1372968002,), (1372968003,), (1372968004,), (1372968110,), (1372968202,), (1372968227,), (1372968228,), (1372968278,), (1372968280,), (1372968317,), (1372968318,), (1372968319,), (1372968320,), (1372968321,), (1372968359,), (1372968360,), (1372968395,), (1372968396,), (1372968397,), (1372968398,), (1372968399,), (1372968415,), (1372968416,), (1372968417,), (1372968418,), (1372968419,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119665 , 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=25119655 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 (25119665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119666 , 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=25119655 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 (25119666) result : ((1372968005,), (1372968006,), (1372968203,), (1372968230,), (1372968231,), (1372968259,), (1372968281,), (1372968324,), (1372968361,), (1372968401,), (1372968402,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119667 , 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=25119655 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 (25119667) result : ((1372967998,), (1372967999,), (1372968109,), (1372968125,), (1372968201,), (1372968225,), (1372968315,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119668 , 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=25119655 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 (25119668) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119669 , 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=25119655 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 (25119669) result : ((1372968008,), (1372968204,), (1372968327,), (1372968328,), (1372968329,), (1372968330,), (1372968331,), (1372968363,), (1372968404,), (1372968405,), (1372968406,), (1372968407,), (1372968408,), (1372968420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119670 , 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=25119655 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 (25119670) result : ((1372968058,), (1372968127,), (1372968128,), (1372968129,), (1372968130,), (1372968233,), (1372968284,), (1372968285,), (1372968332,), (1372968364,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119671 , 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=25119655 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 (25119671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25119672 , 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=25119655 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 (25119672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25119655) result : ((1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25119655 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','flou','papier','plastique','Carton_brun','environnement')) 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`=25119655 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','mal_croppe','kraft','Carton_gris','Teint_Dans_La_Masse','flou','papier','plastique','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25119655, 'sub_port_id': 25119673, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936087, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'mal_croppe': {'main_port_id': 25119655, 'sub_port_id': 25119674, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936088, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25119655, 'sub_port_id': 25119675, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936089, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'Carton_gris': {'main_port_id': 25119655, 'sub_port_id': 25119676, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936090, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'papier': {'main_port_id': 25119655, 'sub_port_id': 25119677, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936091, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'cartonnette': {'main_port_id': 25119655, 'sub_port_id': 25119678, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936092, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'autre_refus': {'main_port_id': 25119655, 'sub_port_id': 25119679, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936093, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'environnement': {'main_port_id': 25119655, 'sub_port_id': 25119680, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936094, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'Carton_brun': {'main_port_id': 25119655, 'sub_port_id': 25119681, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936095, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'plastique': {'main_port_id': 25119655, 'sub_port_id': 25119682, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936096, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'metal': {'main_port_id': 25119655, 'sub_port_id': 25119683, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936097, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 17, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}, 'flou': {'main_port_id': 25119655, 'sub_port_id': 25119684, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16936098, 'last_updated_at': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_desc': datetime.datetime(2025, 7, 21, 6, 30, 39), 'last_updated_at_asc': datetime.datetime(2025, 7, 21, 6, 17, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25119684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25119672 lien utilise dans velours : https://www.fotonower.com/velours/25119673,25119674,25119675,25119676,25119677,25119678,25119679,25119680,25119681,25119682,25119683,25119684?tags=kraft,mal_croppe,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,autre_refus,environnement,Carton_brun,plastique,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25119655]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] map_info['map_portfolio_photo'] : {25119655: [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309, 1372968296, 1372968295, 1372968294, 1372968292, 1372968290, 1372968289, 1372968268, 1372968267, 1372968266, 1372968264, 1372968263, 1372968261, 1372968242, 1372968240, 1372968239, 1372968238, 1372968237, 1372968236, 1372968216, 1372968212, 1372968210, 1372968208, 1372968207, 1372968206, 1372968189, 1372968187, 1372968184, 1372968182, 1372968180, 1372968177, 1372968168, 1372968166, 1372968163, 1372968158, 1372968154, 1372968149, 1372968140, 1372968138, 1372968136, 1372968135, 1372968133, 1372968131, 1372968116, 1372968115, 1372968114, 1372968113, 1372968112, 1372968111, 1372968094, 1372968072, 1372968070, 1372968068, 1372968066, 1372968064, 1372968062, 1372968042, 1372968041, 1372968040, 1372968039, 1372968037, 1372968035, 1372968012, 1372968011, 1372968010, 1372968009, 1372968007, 1372968001, 1372967969, 1372967959, 1372967958, 1372967957, 1372967956, 1372967954, 1372967948]} final : False mtd_id 4302 list_pids : [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] Looping around the photos to save general results len do output : 1 /25119655. 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, '3312661') ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '25119655', "{'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672}", None, None, None, None, '3312661'), ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661')] time used for this insertion : 0.017709732055664062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.833510398864746 time spend to save output : 0.017963647842407227 total time spend for step 1 : 1.8514740467071533 step2:final Mon Jul 21 06:33:02 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 (25119655) 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 25119655 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372967959,1372967958,1372967957,1372967956,1372967954,1372967948,1372967969,1372968012,1372968011,1372968010,1372968009,1372968007,1372968001,1372968042,1372968041,1372968040,1372968039,1372968037,1372968035,1372968072,1372968070,1372968068,1372968066,1372968064,1372968062,1372968094,1372968116,1372968115,1372968114,1372968113,1372968112,1372968111,1372968140,1372968138,1372968136,1372968135,1372968133,1372968131,1372968168,1372968166,1372968163,1372968158,1372968154,1372968149,1372968189,1372968187,1372968184,1372968182,1372968180,1372968177,1372968216,1372968212,1372968210,1372968208,1372968207,1372968206,1372968242,1372968240,1372968239,1372968238,1372968237,1372968236,1372968268,1372968267,1372968266,1372968264,1372968263,1372968261,1372968296,1372968295,1372968294,1372968292,1372968290,1372968289,1372968341,1372968337,1372968334,1372968323,1372968314,1372968309); 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([25119655]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} new output for save of step final : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] map_info['map_portfolio_photo'] : {25119655: [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309, 1372968296, 1372968295, 1372968294, 1372968292, 1372968290, 1372968289, 1372968268, 1372968267, 1372968266, 1372968264, 1372968263, 1372968261, 1372968242, 1372968240, 1372968239, 1372968238, 1372968237, 1372968236, 1372968216, 1372968212, 1372968210, 1372968208, 1372968207, 1372968206, 1372968189, 1372968187, 1372968184, 1372968182, 1372968180, 1372968177, 1372968168, 1372968166, 1372968163, 1372968158, 1372968154, 1372968149, 1372968140, 1372968138, 1372968136, 1372968135, 1372968133, 1372968131, 1372968116, 1372968115, 1372968114, 1372968113, 1372968112, 1372968111, 1372968094, 1372968072, 1372968070, 1372968068, 1372968066, 1372968064, 1372968062, 1372968042, 1372968041, 1372968040, 1372968039, 1372968037, 1372968035, 1372968012, 1372968011, 1372968010, 1372968009, 1372968007, 1372968001, 1372967969, 1372967959, 1372967958, 1372967957, 1372967956, 1372967954, 1372967948]} final : False mtd_id 4302 list_pids : [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] Looping around the photos to save general results len do output : 6 /1372968341.Didn't retrieve data . /1372968337.Didn't retrieve data . /1372968334.Didn't retrieve data . /1372968323.Didn't retrieve data . /1372968314.Didn't retrieve data . /1372968309.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, '3312661') ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '25119655', '1372968341', '0.0418259510549791', None, None, None, None, '3312661'), ('4302', '25119655', '1372968337', '0.0418259510549791', None, None, None, None, '3312661'), ('4302', '25119655', '1372968334', '0.0418259510549791', None, None, None, None, '3312661'), ('4302', '25119655', '1372968323', '0.0418259510549791', None, None, None, None, '3312661'), ('4302', '25119655', '1372968314', '0.0418259510549791', None, None, None, None, '3312661'), ('4302', '25119655', '1372968309', '0.0418259510549791', None, None, None, None, '3312661')] time used for this insertion : 0.42012858390808105 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3065962791442871 time spend to save output : 0.4205448627471924 total time spend for step 2 : 0.7271411418914795 step3:velours_tree Mon Jul 21 06:33:02 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 : {25119655: [{'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672}]} input_args_next_step : {25119655: ()} output_args : {25119655: [{'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672}]} args : 25119655 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 : ({'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25119655) 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([25119655]) 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.3022911548614502 time spend to save output : 4.291534423828125e-05 total time spend for step 3 : 0.3023340702056885 step4:send_mail_cod Mon Jul 21 06:33:03 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 : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} input_args_next_step : {1372968341: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968341 depend.output_id : 0 input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968337 depend.output_id : 0 input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968334 depend.output_id : 0 input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968323 depend.output_id : 0 input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968314 depend.output_id : 0 input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ()} output_args : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',)} args : 1372968309 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 : {25119655: [{'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672}]} input_args_next_step : {1372968341: ('0.0418259510549791',), 1372968337: ('0.0418259510549791',), 1372968334: ('0.0418259510549791',), 1372968323: ('0.0418259510549791',), 1372968314: ('0.0418259510549791',), 1372968309: ('0.0418259510549791',), 25119655: ()} output_args : {25119655: [{'kraft': 25119661, 'mal_croppe': 25119662, 'Teint_Dans_La_Masse': 25119663, 'Carton_gris': 25119664, 'papier': 25119665, 'cartonnette': 25119666, 'autre_refus': 25119667, 'environnement': 25119668, 'Carton_brun': 25119669, 'plastique': 25119670, 'metal': 25119671, 'flou': 25119672}]} args : 25119655 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 :7, first value : ('0.0418259510549791',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25119655) 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 (1372968341,1372968337,1372968334,1372968323,1372968314,1372968309) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372968309 begin to download photo : 1372968323 begin to download photo : 1372968337 download finish for photo 1372968309 begin to download photo : 1372968314 download finish for photo 1372968323 begin to download photo : 1372968334 download finish for photo 1372968337 begin to download photo : 1372968341 download finish for photo 1372968314 download finish for photo 1372968334 download finish for photo 1372968341 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette251196611753072383/ imagette251196621753072383/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P25119655_21-07-2025_06_33_03.pdf 25119661 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=25119661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251196611753072383 25119662 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=25119662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251196621753072383 25119666 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=25119666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372968005: '1753071445_2918774_1372967957_2d5822442c73a48ef971e95d68ebe68b_rle_crop_3888659398_0.png', 1372968006: '1753071445_2918774_1372967948_9d0bbc38c2ae7ce8d3280f8a5a10e502_rle_crop_3888659436_0.png', 1372968203: '1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660565_0.png', 1372968230: '1753071967_1916540_1372968138_29081af7df256b73381247a3549e3db2_rle_crop_3888660779_0.png', 1372968231: '1753071967_1916540_1372968135_779a90dfbdcdf2ae31a85316ddb63e19_rle_crop_3888660808_0.png', 1372968259: '1753072047_2932170_1372968177_6d66a4fc745d1f4abd162b9a47759998_rle_crop_3888660925_0.png', 1372968281: '1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661101_0.png', 1372968324: '1753072166_2935374_1372968261_296ebf8a297dd0f116586bb17739e483_rle_crop_3888661421_0.png', 1372968361: '1753072204_1926909_1372968210_f0b43021bb04f65ffcb520dd7b1814e3_rle_crop_3888661661_0.png', 1372968401: '1753072286_2939307_1372968295_d6ce0cfb2a010ab1649250344907a82f_rle_crop_3888662294_0.png', 1372968402: '1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662333_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a5a6c87dd181f6e9bbd067234976f6e5_5004450.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/849080b32671516710599cdb064d47c5_24238606.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5b863a4a2ffb4f6620f9c1c887d9edf0_66592161.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/1175f92f0bdfd1eb5d4936994f01268d_21807730.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/0fd46f4a346b2b067f4a4ee0e6b43848_39743696.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/68b939a4922a329ba20bffcd92fd3af0_40135813.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/383b49a952cb89f5aff56a6fe11ce61d_54702794.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cd89f3c237986331fffbb77d897f011b_91724016.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/797d0662354d1a8cb7f2e139e5fa00ef_98749056.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/964b1701a6e6d8149edb2fd88115cf4c_27692323.png change filename to text .imagette251196661753072383/ imagette251196661753072383/1753071967_1916540_1372968138_29081af7df256b73381247a3549e3db2_rle_crop_3888660779_0.png.png imagette251196661753072383/1753071445_2918774_1372967957_2d5822442c73a48ef971e95d68ebe68b_rle_crop_3888659398_0.png.png imagette251196661753072383/1753072166_2935374_1372968261_296ebf8a297dd0f116586bb17739e483_rle_crop_3888661421_0.png.png imagette251196661753072383/1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660565_0.png.png imagette251196661753072383/1753071967_1916540_1372968135_779a90dfbdcdf2ae31a85316ddb63e19_rle_crop_3888660808_0.png.png imagette251196661753072383/1753072204_1926909_1372968210_f0b43021bb04f65ffcb520dd7b1814e3_rle_crop_3888661661_0.png.png imagette251196661753072383/1753071445_2918774_1372967948_9d0bbc38c2ae7ce8d3280f8a5a10e502_rle_crop_3888659436_0.png.png imagette251196661753072383/1753072047_2932170_1372968177_6d66a4fc745d1f4abd162b9a47759998_rle_crop_3888660925_0.png.png imagette251196661753072383/1753072286_2939307_1372968295_d6ce0cfb2a010ab1649250344907a82f_rle_crop_3888662294_0.png.png imagette251196661753072383/1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661101_0.png.png imagette251196661753072383/1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662333_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/da6d30c1ae99327450949e510fc19173_68446051.png imagette251196661753072383 25119667 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=25119667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372967998: '1753071445_2918774_1372967956_fe8e8107b809028f9aac0152653e6224_rle_crop_3888659408_0.png', 1372967999: '1753071445_2918774_1372967954_f3312c5f39cdf027f1a67ca95a993fa5_rle_crop_3888659420_0.png', 1372968109: '1753071685_2924510_1372968062_73941ee1b78fd312ec9014f9266b924b_rle_crop_3888660279_0.png', 1372968125: '1753071728_1910593_1372968040_da54d7b20567188b7a8343ebcc8113c1_rle_crop_3888660437_0.png', 1372968201: '1753071926_2928600_1372968111_2533e8447a6cd9fe8325f45181336f83_rle_crop_3888660580_0.png', 1372968225: '1753071967_1916540_1372968133_9bcfe2738791c1509bd579748a204e43_rle_crop_3888660815_0.png', 1372968315: '1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c549b764a9a2c84661c2f60efb2c4ccb_63619239.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/4389345755d6fcc8fddd5ce211e1cfc9_65198073.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2dd229dcdac63027d062ab38861d097c_63543257.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/35234787623de77e9852fba86147256d_59979024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cead7d6eaa188710031c47f613bf8c45_98802624.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/9a29e5ac23de6ec6d2ed31e17b7cbc63_66756974.png change filename to text .imagette251196671753072384/ imagette251196671753072384/1753071445_2918774_1372967954_f3312c5f39cdf027f1a67ca95a993fa5_rle_crop_3888659420_0.png.png imagette251196671753072384/1753071926_2928600_1372968111_2533e8447a6cd9fe8325f45181336f83_rle_crop_3888660580_0.png.png imagette251196671753072384/1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661407_0.png.png imagette251196671753072384/1753071445_2918774_1372967956_fe8e8107b809028f9aac0152653e6224_rle_crop_3888659408_0.png.png imagette251196671753072384/1753071685_2924510_1372968062_73941ee1b78fd312ec9014f9266b924b_rle_crop_3888660279_0.png.png imagette251196671753072384/1753071728_1910593_1372968040_da54d7b20567188b7a8343ebcc8113c1_rle_crop_3888660437_0.png.png imagette251196671753072384/1753071967_1916540_1372968133_9bcfe2738791c1509bd579748a204e43_rle_crop_3888660815_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e4af1506a179f6bd3a27f53d20fa0c45_19235202.png imagette251196671753072384 25119670 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=25119670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372968058: '1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659950_0.png', 1372968127: '1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660420_0.png', 1372968128: '1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660432_0.png', 1372968129: '1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660446_0.png', 1372968130: '1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660447_0.png', 1372968233: '1753071967_1916540_1372968140_2cb46c0f4ddd5929351a4e0c3bfc70aa_rle_crop_3888660765_0.png', 1372968284: '1753072084_1922297_1372968166_0e65d653241e5925e4cd57e4155da28a_rle_crop_3888661070_0.png', 1372968285: '1753072084_1922297_1372968163_2b0e7aa569014242798617d5f443bb62_rle_crop_3888661078_0.png', 1372968332: '1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661413_0.png', 1372968364: '1753072204_1926909_1372968210_f0b43021bb04f65ffcb520dd7b1814e3_rle_crop_3888661670_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b33074e0edf2e31ebabc737334742274_24869782.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/010879be3493231583af13c10e9e27a1_17735746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/4763830edf93d1f98df2b886e4e8eba3_53539098.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/318875047a0d497530745c5a127261e3_88501056.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/92b63196b60e5d305f12e1af0738a69a_42911889.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f0733933f2e93214a6b343154b67f4ef_69041644.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ca44a2e678d7924fd8f5af3692a324d5_71532290.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/78bdef1891ec98c015001058f871ce61_78679693.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c0c3378569b57932285475474a6f2293_56945882.png change filename to text .imagette251196701753072384/ imagette251196701753072384/1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660420_0.png.png imagette251196701753072384/1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660432_0.png.png imagette251196701753072384/1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660447_0.png.png imagette251196701753072384/1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659950_0.png.png imagette251196701753072384/1753072084_1922297_1372968163_2b0e7aa569014242798617d5f443bb62_rle_crop_3888661078_0.png.png imagette251196701753072384/1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660446_0.png.png imagette251196701753072384/1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661413_0.png.png imagette251196701753072384/1753072204_1926909_1372968210_f0b43021bb04f65ffcb520dd7b1814e3_rle_crop_3888661670_0.png.png imagette251196701753072384/1753071967_1916540_1372968140_2cb46c0f4ddd5929351a4e0c3bfc70aa_rle_crop_3888660765_0.png.png imagette251196701753072384/1753072084_1922297_1372968166_0e65d653241e5925e4cd57e4155da28a_rle_crop_3888661070_0.png.png imagette251196711753072385/ imagette251196721753072385/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8bdc5cf73a43a8cd706cd6acfbde2ff1_23543800.png imagette251196701753072384 25119671 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=25119671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251196711753072385 25119672 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=25119672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251196721753072385 25119663 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=25119663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372968119: '1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660428_0.png', 1372968358: '1753072204_1926909_1372968212_8b183512e206184708c8be9d29071183_rle_crop_3888661651_0.png', 1372968312: '1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661412_0.png', 1372968277: '1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661108_0.png', 1372968276: '1753072084_1922297_1372968163_2b0e7aa569014242798617d5f443bb62_rle_crop_3888661079_0.png', 1372968275: '1753072084_1922297_1372968166_0e65d653241e5925e4cd57e4155da28a_rle_crop_3888661071_0.png', 1372968258: '1753072047_2932170_1372968177_6d66a4fc745d1f4abd162b9a47759998_rle_crop_3888660922_0.png', 1372968200: '1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660566_0.png', 1372968124: '1753071728_1910593_1372968035_f9142ad0c7e4abfdd9daee1245e2cebc_rle_crop_3888660468_0.png', 1372968123: '1753071728_1910593_1372968037_ecd765180346aa49f312850f0a8e4abb_rle_crop_3888660458_0.png', 1372968122: '1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660452_0.png', 1372968121: '1753071728_1910593_1372968040_da54d7b20567188b7a8343ebcc8113c1_rle_crop_3888660442_0.png', 1372968120: '1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660429_0.png', 1372967994: '1753071445_2918774_1372967958_8f8d65811274b016cabb1b769766fd9d_rle_crop_3888659389_0.png', 1372968118: '1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660416_0.png', 1372968117: '1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660417_0.png', 1372968108: '1753071685_2924510_1372968062_73941ee1b78fd312ec9014f9266b924b_rle_crop_3888660282_0.png', 1372968056: '1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659949_0.png', 1372968055: '1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659947_0.png', 1372968054: '1753071565_2921572_1372968007_a93dd8245b9c7a3fc1c1949b2afcd9bf_rle_crop_3888659927_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/000c12516990d758bbb25ba4d0f69bfc_90378485.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/af2f0fe1c3c6e6f7e0bc4d15ae86e6dd_60735838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a2a0f234c709e9f6c149a8ad4686006c_83919305.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/1d0ba9830520df8ad36d32536c4113e6_43088485.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/975008e1290e9cd7e70e87dc795a07db_73407378.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5973a42a1c49b3f2c1e05e5206955583_12065226.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ee1c408b33acd2c556954f67fb00921d_21120050.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/17e08d8751686307eae3a9caa2768456_99442640.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d8ea32ed5d652c9d79de12ef47296434_67774497.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/bc2583c1f3daca5cbf694b0bd913f789_25437802.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5a8db8709aa6677eff24e6ee5a6b35f3_74537290.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/01ee7a73dd8d9420d72b708efdd7bb05_13046971.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/86b49f998201b18aa7eb932d524b3f3d_38131579.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f6b1963e39140e800aed8c52eea600f5_72767782.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8005eace14947f35752d38ea1f2c6cfe_31985322.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e91bc34f578e209a81d81da6ea64bf83_26719893.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/f2476a31f4b2b1ae849a202d63a59c0e_4394369.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b6e2c554b23cd64b940d25700e2e397d_69526107.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a07c2ea1219bebbd02754989309b9fcd_10958190.png change filename to text .imagette251196631753072385/ imagette251196631753072385/1753071728_1910593_1372968037_ecd765180346aa49f312850f0a8e4abb_rle_crop_3888660458_0.png.png imagette251196631753072385/1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660428_0.png.png imagette251196631753072385/1753071728_1910593_1372968039_60730d87fc2e827c9e95c6d67c60ac30_rle_crop_3888660452_0.png.png imagette251196631753072385/1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661108_0.png.png imagette251196631753072385/1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660566_0.png.png imagette251196631753072385/1753071565_2921572_1372968007_a93dd8245b9c7a3fc1c1949b2afcd9bf_rle_crop_3888659927_0.png.png imagette251196631753072385/1753072084_1922297_1372968166_0e65d653241e5925e4cd57e4155da28a_rle_crop_3888661071_0.png.png imagette251196631753072385/1753072204_1926909_1372968212_8b183512e206184708c8be9d29071183_rle_crop_3888661651_0.png.png imagette251196631753072385/1753072047_2932170_1372968177_6d66a4fc745d1f4abd162b9a47759998_rle_crop_3888660922_0.png.png imagette251196631753072385/1753071728_1910593_1372968041_5b9b08445871f3d8245a82d429cae7d4_rle_crop_3888660429_0.png.png imagette251196631753072385/1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660416_0.png.png imagette251196631753072385/1753072084_1922297_1372968163_2b0e7aa569014242798617d5f443bb62_rle_crop_3888661079_0.png.png imagette251196631753072385/1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659947_0.png.png imagette251196631753072385/1753071728_1910593_1372968042_9bfc10f008fd82686af823adab1437b5_rle_crop_3888660417_0.png.png imagette251196631753072385/1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661412_0.png.png imagette251196631753072385/1753071728_1910593_1372968040_da54d7b20567188b7a8343ebcc8113c1_rle_crop_3888660442_0.png.png imagette251196631753072385/1753071565_2921572_1372968001_90ec7e3705558476add2580204641f65_rle_crop_3888659949_0.png.png imagette251196631753072385/1753071445_2918774_1372967958_8f8d65811274b016cabb1b769766fd9d_rle_crop_3888659389_0.png.png imagette251196631753072385/1753071728_1910593_1372968035_f9142ad0c7e4abfdd9daee1245e2cebc_rle_crop_3888660468_0.png.png imagette251196631753072385/1753071685_2924510_1372968062_73941ee1b78fd312ec9014f9266b924b_rle_crop_3888660282_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8c07be02c7ba7d2a76f127a1f443a28f_42766370.png imagette251196631753072385 25119664 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=25119664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372968321: '1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661410_0.png', 1372968419: '1753072327_1935431_1372968237_05f1aa0da01fb1f1ad71ed7f121c2929_rle_crop_3888662050_0.png', 1372968418: '1753072327_1935431_1372968238_fc088947b580a75f3a5787094d9e1136_rle_crop_3888662031_0.png', 1372968417: '1753072327_1935431_1372968239_27f9fc9931b47997ac2849f272ace98a_rle_crop_3888662010_0.png', 1372968416: '1753072327_1935431_1372968240_1b8baa8818cc19bba6c0f5dc9e519770_rle_crop_3888661993_0.png', 1372968415: '1753072327_1935431_1372968242_4c5fbf103fecb85e36d8baa6da563a87_rle_crop_3888661976_0.png', 1372968399: '1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662347_0.png', 1372968398: '1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662348_0.png', 1372968397: '1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662332_0.png', 1372968396: '1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662305_0.png', 1372968395: '1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662304_0.png', 1372968360: '1753072204_1926909_1372968206_e29e1427958ae7eabdb932e87d46196e_rle_crop_3888661738_0.png', 1372968359: '1753072204_1926909_1372968208_23cf102a229b6f3a2f5a38de8106c535_rle_crop_3888661701_0.png', 1372968002: '1753071445_2918774_1372967959_ca4b8d548541846ffcf30919c6b2e88d_rle_crop_3888659371_0.png', 1372968320: '1753072166_2935374_1372968264_31c55ce313fb109eeb9d41a8ea182ecb_rle_crop_3888661385_0.png', 1372968319: '1753072166_2935374_1372968266_2a8585cb03ecdeea56b3e7d0bdd7dd3d_rle_crop_3888661365_0.png', 1372968318: '1753072166_2935374_1372968267_f6c7fad881a86529391f080e6784b854_rle_crop_3888661345_0.png', 1372968317: '1753072166_2935374_1372968268_bbb2adcb9896d6cb407e40cf1f04a085_rle_crop_3888661328_0.png', 1372968280: '1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661106_0.png', 1372968278: '1753072084_1922297_1372968158_cc4e4b234dc0fbfd4831185a832690d3_rle_crop_3888661082_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/492c41d4fbc113dc78ab5581503fb9b5_63275244.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c24ac2d37c2a0fcc4d0dfc8a138bdeed_44522099.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/81fd56c10a45e052998a7b37728a46de_50537386.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cd2d6596baae930af3beff9686fc6626_46183389.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/c166fc3dae8221a4740e5e27811bb5d7_83633542.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/82b1cd72ac51cee6c490c96dff415a5d_63644399.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7589a4e4d0c46a73ec1237d0546b7b94_96973637.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/af10d0aa2ec387d9167eb22053a88354_28780585.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/fd2f2855cdf19678750f98bd6bd75da9_88658063.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/548408b16ded4673fa94f96a831146c3_66918628.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/cd960c197c493a4057b967c73f42396e_36124872.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/e4100982efd2d8b0344cbdb0ed066848_66344541.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/da58bf08e4a1f2b92591223141b4f07b_5013999.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/3cc9b1565387df293378b141500334e9_34461486.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/b7e71987992dce09a2010c3078842c93_27546671.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/51bb64e16357aafb48e6ed7fe0ff52e8_38308423.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7683e2152a40f3db0f3ccf8dbc7d52ba_625943.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/5d46fffab91a133c5172bf8f0e5b88b4_16416447.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7f547d54bdae160347643be9367602ff_26496265.png change filename to text .imagette251196641753072386/ imagette251196641753072386/1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662348_0.png.png imagette251196641753072386/1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662305_0.png.png imagette251196641753072386/1753072204_1926909_1372968208_23cf102a229b6f3a2f5a38de8106c535_rle_crop_3888661701_0.png.png imagette251196641753072386/1753072166_2935374_1372968266_2a8585cb03ecdeea56b3e7d0bdd7dd3d_rle_crop_3888661365_0.png.png imagette251196641753072386/1753071445_2918774_1372967959_ca4b8d548541846ffcf30919c6b2e88d_rle_crop_3888659371_0.png.png imagette251196641753072386/1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662332_0.png.png imagette251196641753072386/1753072166_2935374_1372968264_31c55ce313fb109eeb9d41a8ea182ecb_rle_crop_3888661385_0.png.png imagette251196641753072386/1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662347_0.png.png imagette251196641753072386/1753072084_1922297_1372968158_cc4e4b234dc0fbfd4831185a832690d3_rle_crop_3888661082_0.png.png imagette251196641753072386/1753072327_1935431_1372968238_fc088947b580a75f3a5787094d9e1136_rle_crop_3888662031_0.png.png imagette251196641753072386/1753072166_2935374_1372968268_bbb2adcb9896d6cb407e40cf1f04a085_rle_crop_3888661328_0.png.png imagette251196641753072386/1753072327_1935431_1372968239_27f9fc9931b47997ac2849f272ace98a_rle_crop_3888662010_0.png.png imagette251196641753072386/1753072204_1926909_1372968206_e29e1427958ae7eabdb932e87d46196e_rle_crop_3888661738_0.png.png imagette251196641753072386/1753072327_1935431_1372968237_05f1aa0da01fb1f1ad71ed7f121c2929_rle_crop_3888662050_0.png.png imagette251196641753072386/1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662304_0.png.png imagette251196641753072386/1753072166_2935374_1372968267_f6c7fad881a86529391f080e6784b854_rle_crop_3888661345_0.png.png imagette251196641753072386/1753072327_1935431_1372968240_1b8baa8818cc19bba6c0f5dc9e519770_rle_crop_3888661993_0.png.png imagette251196641753072386/1753072166_2935374_1372968263_f8bd9f8328036cf7ab33d4e602e71279_rle_crop_3888661410_0.png.png imagette251196641753072386/1753072327_1935431_1372968242_4c5fbf103fecb85e36d8baa6da563a87_rle_crop_3888661976_0.png.png imagette251196641753072386/1753072084_1922297_1372968149_828cd358e282b95db30dade81c5b0d09_rle_crop_3888661106_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/a356e0d18e226ae6e5c2bc7d0f9499b7_22066161.png imagette251196641753072386 25119669 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=25119669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372968008: '1753071445_2918774_1372967959_ca4b8d548541846ffcf30919c6b2e88d_rle_crop_3888659372_0.png', 1372968204: '1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660568_0.png', 1372968327: '1753072166_2935374_1372968268_bbb2adcb9896d6cb407e40cf1f04a085_rle_crop_3888661333_0.png', 1372968328: '1753072166_2935374_1372968267_f6c7fad881a86529391f080e6784b854_rle_crop_3888661352_0.png', 1372968329: '1753072166_2935374_1372968266_2a8585cb03ecdeea56b3e7d0bdd7dd3d_rle_crop_3888661370_0.png', 1372968330: '1753072166_2935374_1372968264_31c55ce313fb109eeb9d41a8ea182ecb_rle_crop_3888661389_0.png', 1372968331: '1753072166_2935374_1372968261_296ebf8a297dd0f116586bb17739e483_rle_crop_3888661427_0.png', 1372968363: '1753072204_1926909_1372968206_e29e1427958ae7eabdb932e87d46196e_rle_crop_3888661742_0.png', 1372968404: '1753072286_2939307_1372968295_d6ce0cfb2a010ab1649250344907a82f_rle_crop_3888662296_0.png', 1372968405: '1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662308_0.png', 1372968406: '1753072286_2939307_1372968292_5e0ceaaf3415b3b73e9b440cf7467dc5_rle_crop_3888662325_0.png', 1372968407: '1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662338_0.png', 1372968408: '1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662352_0.png', 1372968420: '1753072327_1935431_1372968236_b3758e25ae7fa2fb316c698254cf9c63_rle_crop_3888662074_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/7a107bc9775143de895d8d9a5d7461c5_13727219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8a8aceab6d598bd018a257c72280ca07_11644055.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d82f7685a90343cafce64113c7a9a77a_16712121.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/1d2f5ae5c258f764a645abe3e09bd78c_16733480.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/bde2c08102c78c8e1c8039abb1d3b3e1_36766795.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/69a54e03c13d4a7cdf90c761697ab913_64317165.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/026d8e177163d57506bc86f88c4a9c13_65149871.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/94c0d08ef210d5360fe5465f081c195c_74189743.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/787d4cd6c41766b84f8e548ed705bd49_71554609.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/d18edf00665a5af3060e38d41c9dab1e_68449646.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8ebee83f0e2e50a6a89361339c80b382_82568535.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ca9f91c83c9aaf0a5f3736b7317d0c3d_31721736.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/45e603f1ff4247bd992765c16a15b9b9_38660333.png change filename to text .imagette251196691753072387/ imagette251196691753072387/1753072166_2935374_1372968267_f6c7fad881a86529391f080e6784b854_rle_crop_3888661352_0.png.png imagette251196691753072387/1753072166_2935374_1372968268_bbb2adcb9896d6cb407e40cf1f04a085_rle_crop_3888661333_0.png.png imagette251196691753072387/1753071926_2928600_1372968112_9d3d9643d58e5096491403b4bf73ef38_rle_crop_3888660568_0.png.png imagette251196691753072387/1753071445_2918774_1372967959_ca4b8d548541846ffcf30919c6b2e88d_rle_crop_3888659372_0.png.png imagette251196691753072387/1753072286_2939307_1372968295_d6ce0cfb2a010ab1649250344907a82f_rle_crop_3888662296_0.png.png imagette251196691753072387/1753072286_2939307_1372968294_729930dac17b11f4b186a5e2d8b16087_rle_crop_3888662308_0.png.png imagette251196691753072387/1753072166_2935374_1372968266_2a8585cb03ecdeea56b3e7d0bdd7dd3d_rle_crop_3888661370_0.png.png imagette251196691753072387/1753072286_2939307_1372968290_4b989d5fa0e8548ea6f07d87b462f864_rle_crop_3888662338_0.png.png imagette251196691753072387/1753072166_2935374_1372968261_296ebf8a297dd0f116586bb17739e483_rle_crop_3888661427_0.png.png imagette251196691753072387/1753072327_1935431_1372968236_b3758e25ae7fa2fb316c698254cf9c63_rle_crop_3888662074_0.png.png imagette251196691753072387/1753072204_1926909_1372968206_e29e1427958ae7eabdb932e87d46196e_rle_crop_3888661742_0.png.png imagette251196691753072387/1753072286_2939307_1372968292_5e0ceaaf3415b3b73e9b440cf7467dc5_rle_crop_3888662325_0.png.png imagette251196691753072387/1753072286_2939307_1372968289_ac2daf247d1cce14e02ebc26877dddc3_rle_crop_3888662352_0.png.png imagette251196691753072387/1753072166_2935374_1372968264_31c55ce313fb109eeb9d41a8ea182ecb_rle_crop_3888661389_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/194796381c8d33c702c35cbb2b185176_11136121.png imagette251196691753072387 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25119655 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25119673,25119674,25119675,25119676,25119677,25119678,25119679,25119680,25119681,25119682,25119683,25119684?tags=kraft,mal_croppe,Teint_Dans_La_Masse,Carton_gris,papier,cartonnette,autre_refus,environnement,Carton_brun,plastique,metal,flou your option no_mail is active, we will not send the real mail to your client args[1372968341] : ('0.0418259510549791',) no score found for photo 1372968341 We are sending mail with results at report@fotonower.com args[1372968337] : ('0.0418259510549791',) no score found for photo 1372968337 We are sending mail with results at report@fotonower.com args[1372968334] : ('0.0418259510549791',) no score found for photo 1372968334 We are sending mail with results at report@fotonower.com args[1372968323] : ('0.0418259510549791',) no score found for photo 1372968323 We are sending mail with results at report@fotonower.com args[1372968314] : ('0.0418259510549791',) no score found for photo 1372968314 We are sending mail with results at report@fotonower.com args[1372968309] : ('0.0418259510549791',) no score found for photo 1372968309 We are sending mail with results at report@fotonower.com refus_total : 0.0418259510549791 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=25119655 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_P25119655_21-07-2025_06_33_03.pdf results_Auto_P25119655_21-07-2025_06_33_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.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','25119655','results_Auto_P25119655_21-07-2025_06_33_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf','pdf','','0.26','0.0418259510549791') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25119655]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] map_info['map_portfolio_photo'] : {25119655: [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309, 1372968296, 1372968295, 1372968294, 1372968292, 1372968290, 1372968289, 1372968268, 1372968267, 1372968266, 1372968264, 1372968263, 1372968261, 1372968242, 1372968240, 1372968239, 1372968238, 1372968237, 1372968236, 1372968216, 1372968212, 1372968210, 1372968208, 1372968207, 1372968206, 1372968189, 1372968187, 1372968184, 1372968182, 1372968180, 1372968177, 1372968168, 1372968166, 1372968163, 1372968158, 1372968154, 1372968149, 1372968140, 1372968138, 1372968136, 1372968135, 1372968133, 1372968131, 1372968116, 1372968115, 1372968114, 1372968113, 1372968112, 1372968111, 1372968094, 1372968072, 1372968070, 1372968068, 1372968066, 1372968064, 1372968062, 1372968042, 1372968041, 1372968040, 1372968039, 1372968037, 1372968035, 1372968012, 1372968011, 1372968010, 1372968009, 1372968007, 1372968001, 1372967969, 1372967959, 1372967958, 1372967957, 1372967956, 1372967954, 1372967948]} final : False mtd_id 4302 list_pids : [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] 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, '3312661') ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25119655', '1372968341', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661')] time used for this insertion : 0.014941215515136719 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.242938041687012 time spend to save output : 0.015132427215576172 total time spend for step 4 : 6.258070468902588 step5:split_time_score Mon Jul 21 06:33:09 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 : ['25119655'] 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 : [('25119655',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25119655) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372968309: {'path': 'temp/1753072383_1593810_1372968309_a0fec104959bf4d9d553c10b9fea2584.jpg', 'extension': 'jpg'}, 1372968314: {'path': 'temp/1753072383_1593810_1372968314_a11444d3902c9f7f6be7acece4b0bb9a.jpg', 'extension': 'jpg'}, 1372968323: {'path': 'temp/1753072383_1593810_1372968323_6a1242007ba9a3eff46ce828b69185d3.jpg', 'extension': 'jpg'}, 1372968334: {'path': 'temp/1753072383_1593810_1372968334_9e9fab1b965362c44de908cfa960b90e.jpg', 'extension': 'jpg'}, 1372968337: {'path': 'temp/1753072383_1593810_1372968337_857551628391f85edc134e8c798b1bd5.jpg', 'extension': 'jpg'}, 1372968341: {'path': 'temp/1753072383_1593810_1372968341_a94dfdaaea391d26cd0c106c77e24f27.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 = 25119655; (('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 = 25119655 group by h (('06', 80),) 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=25119655 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 (25119655) 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 (25119655) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21072025 25119655 Nombre de photos uploadées : 80 / 23040 (0%) 21072025 25119655 Nombre de photos taguées (types de déchets): 0 / 80 (0%) 21072025 25119655 Nombre de photos taguées (volume) : 0 / 80 (0%) [{'photo_id': 1372967959, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/ca4b8d548541846ffcf30919c6b2e88d.jpg', 'username': None, 'uploaded_at': 1753071363, 'text': 'image_21072025_06_15_04_010137m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1372967958, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/8f8d65811274b016cabb1b769766fd9d.jpg', 'username': None, 'uploaded_at': 1753071363, 'text': 'image_21072025_06_15_14_010141m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1372967957, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/2d5822442c73a48ef971e95d68ebe68b.jpg', 'username': None, 'uploaded_at': 1753071363, 'text': 'image_21072025_06_15_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1372967956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/21/fe8e8107b809028f9aac0152653e6224.jpg', 'username': None, 'uploaded_at': 1753071363, 'text': 'image_21072025_06_15_34_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003506183624267578 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25119655, '2025-07-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1992378,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0764014720916748 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= 1992378 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25117802, 'dashboard_result_id': 12778729, '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_P25117802_21-07-2025_05_16_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25118162, 'dashboard_result_id': 12778730, '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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25118583, 'dashboard_result_id': 12778731, '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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25118867, 'dashboard_result_id': 12778732, '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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25119309, 'dashboard_result_id': 12778733, '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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}"}, {'dashboat_entry_day': 1992378, 'dashboard_run_id': 1999881, 'mtr_portfolio_id': 25119655, 'dashboard_result_id': 12778734, '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_P25119655_21-07-2025_06_30_40.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, '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 = 25117802 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': 3312464, 'mtr_portfolio_id': 25117802, 'created_at': datetime.datetime(2025, 7, 21, 5, 16, 27), 'result': '0.03593403662891448', 'result_long': None, 'result_double': None}] Qualite : 0.03593403662891448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25117802 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_05_16_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25117802 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_P25117802_21-07-2025_05_16_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, 'pht': 3726}}" where mtr_portfolio_id = 25117802 and dashboard_run_id = 1999881 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`=25117802 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778729, 0.03593403662891448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25117802_21-07-2025_05_16_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25117803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25117804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25117805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25117806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25117807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25117808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25117809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25117810, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25117811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25117812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25117813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25117814, '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 = 25118162 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': 3312503, 'mtr_portfolio_id': 25118162, 'created_at': datetime.datetime(2025, 7, 21, 5, 32, 58), 'result': '0.032502647683057155', 'result_long': None, 'result_double': None}] Qualite : 0.032502647683057155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118162 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_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, 'pht': 3726}}" where mtr_portfolio_id = 25118162 and dashboard_run_id = 1999881 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`=25118162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778730, 0.032502647683057155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118162_21-07-2025_05_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118179, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118180, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118182, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118184, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118185, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118186, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118188, '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 = 25118583 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': 3312548, 'mtr_portfolio_id': 25118583, 'created_at': datetime.datetime(2025, 7, 21, 5, 46, 57), 'result': '0.03308538033732772', 'result_long': None, 'result_double': None}] Qualite : 0.03308538033732772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118583 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_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, 'pht': 3726}}" where mtr_portfolio_id = 25118583 and dashboard_run_id = 1999881 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`=25118583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778731, 0.03308538033732772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118583_21-07-2025_05_46_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118612, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118614, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25118616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118617, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118619, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118621, '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 = 25118867 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': 3312576, 'mtr_portfolio_id': 25118867, 'created_at': datetime.datetime(2025, 7, 21, 6, 0, 30), 'result': '0.037794704530617076', 'result_long': None, 'result_double': None}] Qualite : 0.037794704530617076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25118867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25118867 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_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, 'pht': 3726}}" where mtr_portfolio_id = 25118867 and dashboard_run_id = 1999882 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`=25118867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778732, 0.037794704530617076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25118867_21-07-2025_06_00_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25118870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25118871, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25118872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25118873, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25118874, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25118875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25118876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25118877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25118878, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25118879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25118880, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25118881, '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 = 25119309 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': 3312628, 'mtr_portfolio_id': 25119309, 'created_at': datetime.datetime(2025, 7, 21, 6, 16, 58), 'result': '0.027272049655271604', 'result_long': None, 'result_double': None}] Qualite : 0.027272049655271604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119309 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_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, 'pht': 3726}}" where mtr_portfolio_id = 25119309 and dashboard_run_id = 1999882 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`=25119309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778733, 0.027272049655271604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119309_21-07-2025_06_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25119362, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119366, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119369, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119372, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119376, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119377, '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 = 25119655 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': 3312661, 'mtr_portfolio_id': 25119655, 'created_at': datetime.datetime(2025, 7, 21, 6, 33, 2), 'result': '0.0418259510549791', 'result_long': None, 'result_double': None}] Qualite : 0.0418259510549791 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25119655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25119655 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_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, 'pht': 3726}}" where mtr_portfolio_id = 25119655 and dashboard_run_id = 1999882 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`=25119655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12778734, 0.0418259510549791, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25119655_21-07-2025_06_33_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25119661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25119662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25119663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25119664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25119665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25119666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25119667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25119668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25119669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25119670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25119671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25119672, '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 (25117802,25118162,25118583,25118867,25119309,25119655) result : ((1372964074,), (1372964101,), (1372964128,), (1372964152,), (1372964177,), (1372964403,), (1372964596,), (1372964606,), (1372964608,), (1372964610,), (1372964612,), (1372964614,), (1372964631,), (1372964635,), (1372964637,), (1372964641,), (1372964645,), (1372964648,), (1372964668,), (1372964691,), (1372964692,), (1372964693,), (1372964694,), (1372964695,), (1372964696,), (1372964720,), (1372964722,), (1372964723,), (1372964724,), (1372964725,), (1372964726,), (1372964739,), (1372964741,), (1372964742,), (1372964743,), (1372964744,), (1372964745,), (1372964758,), (1372964760,), (1372964761,), (1372964762,), (1372964764,), (1372964766,), (1372964792,), (1372964795,), (1372964798,), (1372964800,), (1372964802,), (1372964803,), (1372964831,), (1372964855,), (1372964857,), (1372964858,), (1372964860,), (1372964861,), (1372964862,), (1372964878,), (1372964880,), (1372964881,), (1372964883,), (1372964884,), (1372964885,), (1372964898,), (1372964900,), (1372964902,), (1372964904,), (1372964905,), (1372964906,), (1372964930,), (1372964933,), (1372964935,), (1372964936,), (1372964937,), (1372964938,), (1372964945,), (1372964946,), (1372964947,), (1372964948,), (1372964949,), (1372964951,), (1372964959,), (1372964960,), (1372964962,), (1372964964,), (1372964966,), (1372964968,), (1372964981,), (1372964983,), (1372964984,), (1372964985,), (1372964986,), (1372964987,), (1372965001,), (1372965003,), (1372965005,), (1372965006,), (1372965007,), (1372965008,), (1372965018,), (1372965021,), (1372965023,), (1372965024,), (1372965025,), (1372965026,), (1372965046,), (1372965063,), (1372965083,), (1372965088,), (1372965091,), (1372965092,), (1372965093,), (1372965095,), (1372965142,), (1372965147,), (1372965151,), (1372965153,), (1372965154,), (1372965155,), (1372965171,), (1372965173,), (1372965176,), (1372965179,), (1372965180,), (1372965181,), (1372965193,), (1372965195,), (1372965196,), (1372965197,), (1372965198,), (1372965199,), (1372965212,), (1372965213,), (1372965214,), (1372965219,), (1372965220,), (1372965221,), (1372965262,), (1372965264,), (1372965265,), (1372965266,), (1372965267,), (1372965269,), (1372965296,), (1372965297,), (1372965298,), (1372965299,), (1372965300,), (1372965301,), (1372965318,), (1372965322,), (1372965326,), (1372965327,), (1372965329,), (1372965331,), (1372965381,), (1372965402,), (1372965404,), (1372965405,), (1372965408,), (1372965410,), (1372965412,), (1372965425,), (1372965426,), (1372965428,), (1372965430,), (1372965431,), (1372965432,), (1372965444,), (1372965448,), (1372965452,), (1372965454,), (1372965455,), (1372965456,), (1372965469,), (1372965471,), (1372965472,), (1372965474,), (1372965475,), (1372965476,), (1372965484,), (1372965486,), (1372965489,), (1372965491,), (1372965493,), (1372965494,), (1372965509,), (1372965530,), (1372965536,), (1372965539,), (1372965540,), (1372965541,), (1372965542,), (1372965552,), (1372965554,), (1372965555,), (1372965556,), (1372965557,), (1372965558,), (1372965568,), (1372965577,), (1372965581,), (1372965582,), (1372965583,), (1372965584,), (1372965601,), (1372965602,), (1372965603,), (1372965604,), (1372965606,), (1372965607,), (1372965629,), (1372965645,), (1372965650,), (1372965652,), (1372965656,), (1372965658,), (1372965660,), (1372965672,), (1372965678,), (1372965679,), (1372965681,), (1372965682,), (1372965683,), (1372965693,), (1372965696,), (1372965697,), (1372965699,), (1372965700,), (1372965701,), (1372965706,), (1372965709,), (1372965711,), (1372965713,), (1372965715,), (1372965718,), (1372965732,), (1372965733,), (1372965734,), (1372965735,), (1372965736,), (1372965738,), (1372965752,), (1372965753,), (1372965754,), (1372965755,), (1372965756,), (1372965757,), (1372965772,), (1372965774,), (1372965776,), (1372965778,), (1372965779,), (1372965781,), (1372965805,), (1372965808,), (1372965810,), (1372965811,), (1372965812,), (1372965813,), (1372965839,), (1372965842,), (1372965845,), (1372965847,), (1372965849,), (1372965850,), (1372965861,), (1372965882,), (1372965884,), (1372965886,), (1372965887,), (1372965888,), (1372965889,), (1372965907,), (1372965909,), (1372965910,), (1372965913,), (1372965914,), (1372965916,), (1372965928,), (1372965931,), (1372965933,), (1372965935,), (1372965936,), (1372965937,), (1372965942,), (1372965944,), (1372965946,), (1372965948,), (1372965949,), (1372965950,), (1372965968,), (1372966179,), (1372966220,), (1372966267,), (1372966312,), (1372966357,), (1372966434,), (1372967508,), (1372967622,), (1372967625,), (1372967628,), (1372967630,), (1372967633,), (1372967641,), (1372967659,), (1372967686,), (1372967690,), (1372967693,), (1372967695,), (1372967696,), (1372967697,), (1372967710,), (1372967711,), (1372967713,), (1372967715,), (1372967716,), (1372967717,), (1372967722,), (1372967724,), (1372967726,), (1372967727,), (1372967728,), (1372967729,), (1372967740,), (1372967764,), (1372967766,), (1372967767,), (1372967768,), (1372967769,), (1372967770,), (1372967780,), (1372967784,), (1372967788,), (1372967791,), (1372967793,), (1372967794,), (1372967802,), (1372967803,), (1372967805,), (1372967808,), (1372967810,), (1372967812,), (1372967836,), (1372967838,), (1372967839,), (1372967841,), (1372967842,), (1372967843,), (1372967871,), (1372967886,), (1372967888,), (1372967890,), (1372967891,), (1372967892,), (1372967893,), (1372967909,), (1372967911,), (1372967913,), (1372967914,), (1372967915,), (1372967916,), (1372967934,), (1372967936,), (1372967939,), (1372967940,), (1372967941,), (1372967942,), (1372967948,), (1372967954,), (1372967956,), (1372967957,), (1372967958,), (1372967959,), (1372967969,), (1372968001,), (1372968007,), (1372968009,), (1372968010,), (1372968011,), (1372968012,), (1372968035,), (1372968037,), (1372968039,), (1372968040,), (1372968041,), (1372968042,), (1372968062,), (1372968064,), (1372968066,), (1372968068,), (1372968070,), (1372968072,), (1372968094,), (1372968111,), (1372968112,), (1372968113,), (1372968114,), (1372968115,), (1372968116,), (1372968131,), (1372968133,), (1372968135,), (1372968136,), (1372968138,), (1372968140,), (1372968149,), (1372968154,), (1372968158,), (1372968163,), (1372968166,), (1372968168,), (1372968177,), (1372968180,), (1372968182,), (1372968184,), (1372968187,), (1372968189,), (1372968206,), (1372968207,), (1372968208,), (1372968210,), (1372968212,), (1372968216,), (1372968236,), (1372968237,), (1372968238,), (1372968239,), (1372968240,), (1372968242,), (1372968261,), (1372968263,), (1372968264,), (1372968266,), (1372968267,), (1372968268,), (1372968289,), (1372968290,), (1372968292,), (1372968294,), (1372968295,), (1372968296,), (1372968309,), (1372968314,), (1372968323,), (1372968334,), (1372968337,), (1372968341,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21072025': {'nb_upload': 80, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25119655]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] map_info['map_portfolio_photo'] : {25119655: [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309, 1372968296, 1372968295, 1372968294, 1372968292, 1372968290, 1372968289, 1372968268, 1372968267, 1372968266, 1372968264, 1372968263, 1372968261, 1372968242, 1372968240, 1372968239, 1372968238, 1372968237, 1372968236, 1372968216, 1372968212, 1372968210, 1372968208, 1372968207, 1372968206, 1372968189, 1372968187, 1372968184, 1372968182, 1372968180, 1372968177, 1372968168, 1372968166, 1372968163, 1372968158, 1372968154, 1372968149, 1372968140, 1372968138, 1372968136, 1372968135, 1372968133, 1372968131, 1372968116, 1372968115, 1372968114, 1372968113, 1372968112, 1372968111, 1372968094, 1372968072, 1372968070, 1372968068, 1372968066, 1372968064, 1372968062, 1372968042, 1372968041, 1372968040, 1372968039, 1372968037, 1372968035, 1372968012, 1372968011, 1372968010, 1372968009, 1372968007, 1372968001, 1372967969, 1372967959, 1372967958, 1372967957, 1372967956, 1372967954, 1372967948]} final : True mtd_id 4302 list_pids : [1372968341, 1372968337, 1372968334, 1372968323, 1372968314, 1372968309] Looping around the photos to save general results len do output : 1 /25119655Didn'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, '3312661') ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661') ('4302', None, None, None, None, None, None, None, '3312661') ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '25119655', 'None', None, None, None, None, '3312661'), ('4302', '25119655', '1372968341', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968337', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968334', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968323', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968314', None, None, None, None, None, '3312661'), ('4302', '25119655', '1372968309', None, None, None, None, None, '3312661')] time used for this insertion : 0.014043331146240234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9445328712463379 time spend to save output : 0.014285087585449219 total time spend for step 5 : 0.9588179588317871 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 (3312661) 2.00user 2.50system 0:14.32elapsed 31%CPU (0avgtext+0avgdata 159316maxresident)k 224inputs+12976outputs (21major+64060minor)pagefaults 0swaps