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 : 526878 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 (4007260) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4007260) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241637 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4007260'] with mtr_portfolio_ids : ['28241637'] and first list_photo_ids : [] new path : /proc/526878/ Name: python3 Umask: 0002 State: R (running) Tgid: 526878 Ngid: 0 Pid: 526878 PPid: 526877 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 526878 NSpid: 526878 NSpgid: 525477 NSsid: 525477 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98248 kB VmRSS: 98248 kB RssAnon: 59908 kB RssFile: 38340 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '526878', 'Ngid': '0', 'Pid': '526878', 'PPid': '526877', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '526878', 'NSpid': '526878', 'NSpgid': '525477', 'NSsid': '525477', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98248 kB', 'VmRSS': '98248 kB', 'RssAnon': '59908 kB', 'RssFile': '38340 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '88'} ('datou_batch_current', '526878', '1106908', '0', '1106884', '865636', '98248', b'', 'marlene', '4007260') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28241637) 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 (4007260 ) ) 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 (28241637) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392895671, 'portfolio_id': 28241637}, {'photo_id': 1392895668, 'portfolio_id': 28241637}, {'photo_id': 1392895663, 'portfolio_id': 28241637}, {'photo_id': 1392895660, 'portfolio_id': 28241637}, {'photo_id': 1392895526, 'portfolio_id': 28241637}, {'photo_id': 1392895524, 'portfolio_id': 28241637}, {'photo_id': 1392895523, 'portfolio_id': 28241637}, {'photo_id': 1392895522, 'portfolio_id': 28241637}, {'photo_id': 1392895507, 'portfolio_id': 28241637}, {'photo_id': 1392895505, 'portfolio_id': 28241637}, {'photo_id': 1392895504, 'portfolio_id': 28241637}, {'photo_id': 1392895502, 'portfolio_id': 28241637}, {'photo_id': 1392895479, 'portfolio_id': 28241637}, {'photo_id': 1392895477, 'portfolio_id': 28241637}, {'photo_id': 1392895474, 'portfolio_id': 28241637}, {'photo_id': 1392895472, 'portfolio_id': 28241637}, {'photo_id': 1392895468, 'portfolio_id': 28241637}, {'photo_id': 1392895461, 'portfolio_id': 28241637}, {'photo_id': 1392895430, 'portfolio_id': 28241637}, {'photo_id': 1392895428, 'portfolio_id': 28241637}, {'photo_id': 1392895427, 'portfolio_id': 28241637}, {'photo_id': 1392895426, 'portfolio_id': 28241637}, {'photo_id': 1392895376, 'portfolio_id': 28241637}, {'photo_id': 1392895365, 'portfolio_id': 28241637}, {'photo_id': 1392895362, 'portfolio_id': 28241637}, {'photo_id': 1392895359, 'portfolio_id': 28241637}, {'photo_id': 1392895357, 'portfolio_id': 28241637}, {'photo_id': 1392895354, 'portfolio_id': 28241637}, {'photo_id': 1392895183, 'portfolio_id': 28241637}, {'photo_id': 1392895166, 'portfolio_id': 28241637}, {'photo_id': 1392895163, 'portfolio_id': 28241637}, {'photo_id': 1392895160, 'portfolio_id': 28241637}, {'photo_id': 1392895058, 'portfolio_id': 28241637}, {'photo_id': 1392895022, 'portfolio_id': 28241637}, {'photo_id': 1392894987, 'portfolio_id': 28241637}, {'photo_id': 1392894956, 'portfolio_id': 28241637}, {'photo_id': 1392894924, 'portfolio_id': 28241637}, {'photo_id': 1392894893, 'portfolio_id': 28241637}, {'photo_id': 1392894486, 'portfolio_id': 28241637}, {'photo_id': 1392894474, 'portfolio_id': 28241637}, {'photo_id': 1392894457, 'portfolio_id': 28241637}, {'photo_id': 1392894425, 'portfolio_id': 28241637}, {'photo_id': 1392894222, 'portfolio_id': 28241637}, {'photo_id': 1392894189, 'portfolio_id': 28241637}, {'photo_id': 1392894156, 'portfolio_id': 28241637}, {'photo_id': 1392894124, 'portfolio_id': 28241637}, {'photo_id': 1392894090, 'portfolio_id': 28241637}, {'photo_id': 1392893970, 'portfolio_id': 28241637}, {'photo_id': 1392893967, 'portfolio_id': 28241637}, {'photo_id': 1392893931, 'portfolio_id': 28241637}, {'photo_id': 1392893899, 'portfolio_id': 28241637}, {'photo_id': 1392893867, 'portfolio_id': 28241637}, {'photo_id': 1392893831, 'portfolio_id': 28241637}, {'photo_id': 1392893371, 'portfolio_id': 28241637}, {'photo_id': 1392893338, 'portfolio_id': 28241637}, {'photo_id': 1392893301, 'portfolio_id': 28241637}] map_portfolio_id_photo_id: {28241637: [1392895671, 1392895668, 1392895663, 1392895660, 1392895526, 1392895524, 1392895523, 1392895522, 1392895507, 1392895505, 1392895504, 1392895502, 1392895479, 1392895477, 1392895474, 1392895472, 1392895468, 1392895461, 1392895430, 1392895428, 1392895427, 1392895426, 1392895376, 1392895365, 1392895362, 1392895359, 1392895357, 1392895354, 1392895183, 1392895166, 1392895163, 1392895160, 1392895058, 1392895022, 1392894987, 1392894956, 1392894924, 1392894893, 1392894486, 1392894474, 1392894457, 1392894425, 1392894222, 1392894189, 1392894156, 1392894124, 1392894090, 1392893970, 1392893967, 1392893931, 1392893899, 1392893867, 1392893831, 1392893371, 1392893338, 1392893301]} ##### 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.016121625900268555 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Nov 6 03:14:56 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 (28241637) 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 : 28241637 get user id for portfolio 28241637 get sub ptf for main ptf 28241637, type 3726 and hashtags ['kraft', 'cartonnette', 'flou', 'Carton_gris', 'mal_croppe', 'papier', 'environnement', 'plastique', 'autre_refus', 'metal', 'Teint_Dans_La_Masse', 'Carton_brun'] 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`=28241637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','Carton_gris','mal_croppe','papier','environnement','plastique','autre_refus','metal','Teint_Dans_La_Masse','Carton_brun')) 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`=28241637 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','Carton_gris','mal_croppe','papier','environnement','plastique','autre_refus','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 28241637, 'sub_port_id': 28241705, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108209, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'Carton_brun': {'main_port_id': 28241637, 'sub_port_id': 28241706, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108210, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'kraft': {'main_port_id': 28241637, 'sub_port_id': 28241707, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108211, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'autre_refus': {'main_port_id': 28241637, 'sub_port_id': 28241708, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108212, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'papier': {'main_port_id': 28241637, 'sub_port_id': 28241709, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108213, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'cartonnette': {'main_port_id': 28241637, 'sub_port_id': 28241710, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108214, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'environnement': {'main_port_id': 28241637, 'sub_port_id': 28241712, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108215, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'flou': {'main_port_id': 28241637, 'sub_port_id': 28241713, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108216, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'plastique': {'main_port_id': 28241637, 'sub_port_id': 28241714, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108217, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28241637, 'sub_port_id': 28241715, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108218, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'Carton_gris': {'main_port_id': 28241637, 'sub_port_id': 28241716, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108219, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}, 'metal': {'main_port_id': 28241637, 'sub_port_id': 28241717, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108220, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28241705 , 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=28241637 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 (28241705) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241706 , 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=28241637 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 (28241706) result : ((1392895464,), (1392895465,), (1392895486,), (1392895569,), (1392895705,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241707 , 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=28241637 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 (28241707) result : ((1392895574,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241708 , 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=28241637 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 (28241708) result : ((1392895455,), (1392895694,), (1392895695,), (1392895696,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241709 , 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=28241637 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 (28241709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241710 , 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=28241637 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 (28241710) result : ((1392895462,), (1392895463,), (1392895552,), (1392895566,), (1392895567,), (1392895568,), (1392895702,), (1392895703,), (1392895704,), (1392895733,), (1392895734,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241712 , 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=28241637 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 (28241712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241713 , 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=28241637 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 (28241713) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241714 , 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=28241637 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 (28241714) result : ((1392895466,), (1392895570,), (1392895573,), (1392895706,), (1392895707,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241715 , 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=28241637 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 (28241715) result : ((1392894763,), (1392895450,), (1392895451,), (1392895452,), (1392895453,), (1392895454,), (1392895482,), (1392895543,), (1392895544,), (1392895546,), (1392895547,), (1392895548,), (1392895549,), (1392895553,), (1392895554,), (1392895555,), (1392895556,), (1392895557,), (1392895558,), (1392895559,), (1392895560,), (1392895689,), (1392895690,), (1392895691,), (1392895692,), (1392895693,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241716 , 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=28241637 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 (28241716) result : ((1392895456,), (1392895457,), (1392895458,), (1392895484,), (1392895551,), (1392895562,), (1392895564,), (1392895565,), (1392895698,), (1392895699,), (1392895700,), (1392895732,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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 28241717 , 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=28241637 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 (28241717) result : ((1392895469,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28241637) result : ((1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) 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`=28241637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','Carton_gris','mal_croppe','papier','environnement','plastique','autre_refus','metal','Teint_Dans_La_Masse','Carton_brun')) 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`=28241637 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','flou','Carton_gris','mal_croppe','papier','environnement','plastique','autre_refus','metal','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 28241637, 'sub_port_id': 28241720, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108221, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'Carton_brun': {'main_port_id': 28241637, 'sub_port_id': 28241721, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108222, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'kraft': {'main_port_id': 28241637, 'sub_port_id': 28241722, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108223, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'autre_refus': {'main_port_id': 28241637, 'sub_port_id': 28241723, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108224, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'papier': {'main_port_id': 28241637, 'sub_port_id': 28241724, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108225, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'cartonnette': {'main_port_id': 28241637, 'sub_port_id': 28241725, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108226, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'environnement': {'main_port_id': 28241637, 'sub_port_id': 28241726, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108227, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'flou': {'main_port_id': 28241637, 'sub_port_id': 28241727, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108228, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'plastique': {'main_port_id': 28241637, 'sub_port_id': 28241728, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108229, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 28241637, 'sub_port_id': 28241729, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108230, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'Carton_gris': {'main_port_id': 28241637, 'sub_port_id': 28241730, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108231, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}, 'metal': {'main_port_id': 28241637, 'sub_port_id': 28241731, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19108232, 'last_updated_at': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 6, 3, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 6, 3, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28241731,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28241717 lien utilise dans velours : https://marlene.fotonower.com/velours/28241720,28241721,28241722,28241723,28241724,28241725,28241726,28241727,28241728,28241729,28241730,28241731?tags=mal_croppe,Carton_brun,kraft,autre_refus,papier,cartonnette,environnement,flou,plastique,Teint_Dans_La_Masse,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28241637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392895671, 1392895668, 1392895663, 1392895660] map_info['map_portfolio_photo'] : {28241637: [1392895671, 1392895668, 1392895663, 1392895660, 1392895526, 1392895524, 1392895523, 1392895522, 1392895507, 1392895505, 1392895504, 1392895502, 1392895479, 1392895477, 1392895474, 1392895472, 1392895468, 1392895461, 1392895430, 1392895428, 1392895427, 1392895426, 1392895376, 1392895365, 1392895362, 1392895359, 1392895357, 1392895354, 1392895183, 1392895166, 1392895163, 1392895160, 1392895058, 1392895022, 1392894987, 1392894956, 1392894924, 1392894893, 1392894486, 1392894474, 1392894457, 1392894425, 1392894222, 1392894189, 1392894156, 1392894124, 1392894090, 1392893970, 1392893967, 1392893931, 1392893899, 1392893867, 1392893831, 1392893371, 1392893338, 1392893301]} final : False mtd_id 4302 list_pids : [1392895671, 1392895668, 1392895663, 1392895660] Looping around the photos to save general results len do output : 1 /28241637. 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, '4007260') ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28241637', "{'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717}", None, None, None, None, '4007260'), ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260')] time used for this insertion : 0.014820575714111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5903229713439941 time spend to save output : 0.015069007873535156 total time spend for step 1 : 1.6053919792175293 step2:final Thu Nov 6 03:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28241637) 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 28241637 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392893371,1392893338,1392893301,1392893970,1392893967,1392893931,1392893899,1392893867,1392893831,1392894222,1392894189,1392894156,1392894124,1392894090,1392894486,1392894474,1392894457,1392894425,1392895058,1392895022,1392894987,1392894956,1392894924,1392894893,1392895183,1392895166,1392895163,1392895160,1392895376,1392895365,1392895362,1392895359,1392895357,1392895354,1392895430,1392895428,1392895427,1392895426,1392895479,1392895477,1392895474,1392895472,1392895468,1392895461,1392895507,1392895505,1392895504,1392895502,1392895526,1392895524,1392895523,1392895522,1392895671,1392895668,1392895663,1392895660); 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([28241637]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} new output for save of step final : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} [1392895671, 1392895668, 1392895663, 1392895660] map_info['map_portfolio_photo'] : {28241637: [1392895671, 1392895668, 1392895663, 1392895660, 1392895526, 1392895524, 1392895523, 1392895522, 1392895507, 1392895505, 1392895504, 1392895502, 1392895479, 1392895477, 1392895474, 1392895472, 1392895468, 1392895461, 1392895430, 1392895428, 1392895427, 1392895426, 1392895376, 1392895365, 1392895362, 1392895359, 1392895357, 1392895354, 1392895183, 1392895166, 1392895163, 1392895160, 1392895058, 1392895022, 1392894987, 1392894956, 1392894924, 1392894893, 1392894486, 1392894474, 1392894457, 1392894425, 1392894222, 1392894189, 1392894156, 1392894124, 1392894090, 1392893970, 1392893967, 1392893931, 1392893899, 1392893867, 1392893831, 1392893371, 1392893338, 1392893301]} final : False mtd_id 4302 list_pids : [1392895671, 1392895668, 1392895663, 1392895660] Looping around the photos to save general results len do output : 4 /1392895671.Didn't retrieve data . /1392895668.Didn't retrieve data . /1392895663.Didn't retrieve data . /1392895660.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, '4007260') ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28241637', '1392895671', '0.03039232901183488', None, None, None, None, '4007260'), ('4302', '28241637', '1392895668', '0.03039232901183488', None, None, None, None, '4007260'), ('4302', '28241637', '1392895663', '0.03039232901183488', None, None, None, None, '4007260'), ('4302', '28241637', '1392895660', '0.03039232901183488', None, None, None, None, '4007260')] time used for this insertion : 0.015529155731201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07004809379577637 time spend to save output : 0.0158078670501709 total time spend for step 2 : 0.08585596084594727 step3:velours_tree Thu Nov 6 03:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28241637: [{'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717}]} input_args_next_step : {28241637: ()} output_args : {28241637: [{'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717}]} args : 28241637 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 : ({'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28241637) 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([28241637]) 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.2782571315765381 time spend to save output : 5.054473876953125e-05 total time spend for step 3 : 0.2783076763153076 step4:send_mail_cod Thu Nov 6 03:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} input_args_next_step : {1392895671: ()} output_args : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} args : 1392895671 depend.output_id : 0 input_args_next_step : {1392895671: ('0.03039232901183488',), 1392895668: ()} output_args : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} args : 1392895668 depend.output_id : 0 input_args_next_step : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ()} output_args : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} args : 1392895663 depend.output_id : 0 input_args_next_step : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ()} output_args : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',)} args : 1392895660 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 : {28241637: [{'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717}]} input_args_next_step : {1392895671: ('0.03039232901183488',), 1392895668: ('0.03039232901183488',), 1392895663: ('0.03039232901183488',), 1392895660: ('0.03039232901183488',), 28241637: ()} output_args : {28241637: [{'mal_croppe': 28241705, 'Carton_brun': 28241706, 'kraft': 28241707, 'autre_refus': 28241708, 'papier': 28241709, 'cartonnette': 28241710, 'environnement': 28241712, 'flou': 28241713, 'plastique': 28241714, 'Teint_Dans_La_Masse': 28241715, 'Carton_gris': 28241716, 'metal': 28241717}]} args : 28241637 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 :5, first value : ('0.03039232901183488',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28241637) 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_view ph WHERE photo_id IN (1392895671,1392895668,1392895663,1392895660) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392895660 begin to download photo : 1392895663 begin to download photo : 1392895668 begin to download photo : 1392895671 download finish for photo 1392895663 download finish for photo 1392895660 download finish for photo 1392895668 download finish for photo 1392895671 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette282417051762395299/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P28241637_06-11-2025_03_14_59.pdf 28241705 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282417051762395299 28241707 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895574: '1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226771_0.png'} change filename to text .imagette282417071762395299/ imagette282417071762395299/1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226771_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/9c0c0cc725821fd28adcf9b6d98847e4_16132604.png imagette282417071762395299 28241708 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895455: '1762394907_1034296_1392895183_d14e91bd4caa184b3f221af83c2e4303_rle_crop_4023225171_0.png', 1392895694: '1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227707_0.png', 1392895695: '1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227752_0.png', 1392895696: '1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227771_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/227c2a212b1e83bcfc971f4237cb53de_80588898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/9ba4f8605b8bede0912a1317f5dcba5b_48115075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/36ad040838ae17400230cc49b9defaf3_31228052.png change filename to text .imagette282417081762395299/ imagette282417081762395299/1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227771_0.png.png imagette282417081762395299/1762394907_1034296_1392895183_d14e91bd4caa184b3f221af83c2e4303_rle_crop_4023225171_0.png.png imagette282417081762395299/1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227707_0.png.png imagette282417081762395299/1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227752_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f189598c505ed1b5be4322dee7c08e18_10356309.png imagette282417081762395299 28241710 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895462: '1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225192_0.png', 1392895463: '1762394907_1034296_1392894893_3f9c37d4c66cd8739d7ab69a73f44762_rle_crop_4023225237_0.png', 1392895552: '1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226810_0.png', 1392895566: '1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226743_0.png', 1392895567: '1762395086_1045306_1392893867_4c0f31652f58fd4bb2714cb9b6aaa91e_rle_crop_4023226840_0.png', 1392895568: '1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226867_0.png', 1392895702: '1762395205_1053500_1392895477_cc1b370dcdad1d6bb4e11616dc400f2b_rle_crop_4023227724_0.png', 1392895703: '1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227769_0.png', 1392895704: '1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227787_0.png', 1392895733: '1762395266_1054172_1392895524_f6da1cbd5f0d2e73ad741b1c3924d965_rle_crop_4023227887_0.png', 1392895734: '1762395266_1054172_1392895523_8404ff06255f43a5d6031d66781644ca_rle_crop_4023227901_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/541839b0c8107c973b20828d288ae7c1_71043771.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/4921dd2fcd00c36a26c411e309dc2a03_53274709.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/dc17e633db625f5474dbb70327d8efcf_43994740.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/76b21c29356d14d8d76386f291dfc662_95946661.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/2ccf12c218252b3a4020a9edd5de9450_36341216.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/b1a7f372c94aca13de41a29704040f49_17152923.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/0e8822525b1f032aa5f28cdde53411d0_32172939.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/a7fa01eadfa13bf7fa31fb91c5433acd_82133869.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/340ca6fe0b5e4f1d708bd4da1eadff15_94469168.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/15cb0b23a5a9a10c76d6a663384ac38a_74934167.png change filename to text .imagette282417101762395299/ imagette282417101762395299/1762395266_1054172_1392895524_f6da1cbd5f0d2e73ad741b1c3924d965_rle_crop_4023227887_0.png.png imagette282417101762395299/1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225192_0.png.png imagette282417101762395299/1762395086_1045306_1392893867_4c0f31652f58fd4bb2714cb9b6aaa91e_rle_crop_4023226840_0.png.png imagette282417101762395299/1762395266_1054172_1392895523_8404ff06255f43a5d6031d66781644ca_rle_crop_4023227901_0.png.png imagette282417101762395299/1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227769_0.png.png imagette282417101762395299/1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226867_0.png.png imagette282417101762395299/1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226810_0.png.png imagette282417101762395299/1762394907_1034296_1392894893_3f9c37d4c66cd8739d7ab69a73f44762_rle_crop_4023225237_0.png.png imagette282417101762395299/1762395205_1053500_1392895477_cc1b370dcdad1d6bb4e11616dc400f2b_rle_crop_4023227724_0.png.png imagette282417101762395299/1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227787_0.png.png imagette282417101762395299/1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226743_0.png.png imagette282417131762395300/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e9ebdcb1c64bb0a1a75dab57df401c48_38031067.png imagette282417101762395299 28241713 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282417131762395300 28241714 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895466: '1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225197_0.png', 1392895570: '1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226763_0.png', 1392895573: '1762395086_1045306_1392893899_0b0dcc1a0f4169d4b2945a2cf75edf49_rle_crop_4023226804_0.png', 1392895706: '1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227708_0.png', 1392895707: '1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227754_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/ab75e39357813bf27dbf540c50fc763c_18793383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/d4fae3252c557aacd55bbf850b284e22_15390290.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/82b5c8a96462b07ebfedabb7c03ea024_72536782.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/36a9d521072556c2514c21d8d30add9d_18222315.png change filename to text .imagette282417141762395300/ imagette282417141762395300/1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226763_0.png.png imagette282417141762395300/1762395086_1045306_1392893899_0b0dcc1a0f4169d4b2945a2cf75edf49_rle_crop_4023226804_0.png.png imagette282417141762395300/1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227754_0.png.png imagette282417141762395300/1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227708_0.png.png imagette282417141762395300/1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225197_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/7aa639a31cad0101492824116d881bf1_98387779.png imagette282417141762395300 28241717 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895469: '1762394907_1034296_1392894893_3f9c37d4c66cd8739d7ab69a73f44762_rle_crop_4023225242_0.png'} change filename to text .imagette282417171762395300/ imagette282417171762395300/1762394907_1034296_1392894893_3f9c37d4c66cd8739d7ab69a73f44762_rle_crop_4023225242_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/bfef5206532465bec04c4c9dd236df6a_73673764.png imagette282417171762395300 28241706 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241706 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895464: '1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225191_0.png', 1392895465: '1762394907_1034296_1392894987_519711b5bc8679c6554062a6e44990fe_rle_crop_4023225208_0.png', 1392895486: '1762394947_1035602_1392895166_7dad18eec3a3bf44e3e48e3f45c38faf_rle_crop_4023225318_0.png', 1392895569: '1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226765_0.png', 1392895705: '1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227757_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/071ba025e6e3ad7105efbb26ae36a374_4207928.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/5656504481232c482deebf189d20079a_90300880.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/8bba9c357c2d837fc463a8aeda4bbf9b_57486301.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/8bf2ead2dda914ad1ed37910fa260ed7_96663417.png change filename to text .imagette282417061762395300/ imagette282417061762395300/1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227757_0.png.png imagette282417061762395300/1762394907_1034296_1392894987_519711b5bc8679c6554062a6e44990fe_rle_crop_4023225208_0.png.png imagette282417061762395300/1762394947_1035602_1392895166_7dad18eec3a3bf44e3e48e3f45c38faf_rle_crop_4023225318_0.png.png imagette282417061762395300/1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226765_0.png.png imagette282417061762395300/1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225191_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/1a44351494ce75410c6dca70911dbdce_72098684.png imagette282417061762395300 28241715 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895553: '1762395086_1045306_1392894222_ebfb0a075a004f629332dad12aa25099_rle_crop_4023226719_0.png', 1392895693: '1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227789_0.png', 1392895692: '1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227795_0.png', 1392895691: '1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227780_0.png', 1392895690: '1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227760_0.png', 1392895689: '1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227719_0.png', 1392895560: '1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226874_0.png', 1392895559: '1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226880_0.png', 1392895558: '1762395086_1045306_1392893899_0b0dcc1a0f4169d4b2945a2cf75edf49_rle_crop_4023226801_0.png', 1392895557: '1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226773_0.png', 1392895556: '1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226747_0.png', 1392895555: '1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226744_0.png', 1392895554: '1762395086_1045306_1392894222_ebfb0a075a004f629332dad12aa25099_rle_crop_4023226715_0.png', 1392894763: '1762394665_1020350_1392893301_ec333c05c6c43952d38c6b55bf720c02_rle_crop_4023222441_0.png', 1392895549: '1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226812_0.png', 1392895548: '1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226818_0.png', 1392895547: '1762395066_1043947_1392894156_be47aa7180f314efbf55ddbbcbae22b4_rle_crop_4023226761_0.png', 1392895546: '1762395066_1043947_1392894156_be47aa7180f314efbf55ddbbcbae22b4_rle_crop_4023226754_0.png', 1392895544: '1762395066_1043947_1392894189_47c23be85c3b347edb67d078b733e93e_rle_crop_4023226728_0.png', 1392895543: '1762395066_1043947_1392894189_47c23be85c3b347edb67d078b733e93e_rle_crop_4023226731_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/795e4b0b778528d3166e03443aa6afb2_48503960.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/88cc2f3c9caa75d512ae3db5d3012ede_54154247.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/2025bb302ab69193bb524a0432614dae_38042876.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/94847d4cbfe93cb76ad43bcae98bb0b2_61562953.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/5c4444c8211dcd7906ad599e1e9e6413_4314493.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/f6f68225afd5fd9713022094ff2a75ae_36101938.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e5f46059d995079736f447459272d9c2_18593680.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/c62872c31a8ffd995c4a6d968c325173_88994702.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/a622e442c7027e445a3006a444ed9f50_25968949.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/89424a1fcadb0a5bd65670994fd6a3d4_83403414.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/705b2ff18ac0c9ef548815e8dbe55b24_59077787.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/dd2f11c755aa7d35750e0688fca770c7_42975617.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/786edae884021de5a7f7ae8d5fc82b2f_16470238.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/6ffe9b321545daa8a16eadde5f273422_1293261.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e2d1f7e78d8ede1b6be2888f204115e2_42586355.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/cef44788f4eb73933534922364a1a994_26294653.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/887782388af6df5f4a40c0b8106cd155_89773631.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/ce4c691f8aa75d33815e37f21416fa63_48976162.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/4693efb7f3b25fa2fe1f3ce98e80ff1b_93941142.png change filename to text .imagette282417151762395300/ imagette282417151762395300/1762395086_1045306_1392893931_77e40d69471b938e3a8b7f9309eba2c5_rle_crop_4023226773_0.png.png imagette282417151762395300/1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226880_0.png.png imagette282417151762395300/1762395205_1053500_1392895472_2fd00246f3ab57316b41c02e5cfb561d_rle_crop_4023227760_0.png.png imagette282417151762395300/1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226812_0.png.png imagette282417151762395300/1762395086_1045306_1392894222_ebfb0a075a004f629332dad12aa25099_rle_crop_4023226715_0.png.png imagette282417151762395300/1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226744_0.png.png imagette282417151762395300/1762395086_1045306_1392893899_0b0dcc1a0f4169d4b2945a2cf75edf49_rle_crop_4023226801_0.png.png imagette282417151762395300/1762395066_1043947_1392894156_be47aa7180f314efbf55ddbbcbae22b4_rle_crop_4023226754_0.png.png imagette282417151762395300/1762395066_1043947_1392894156_be47aa7180f314efbf55ddbbcbae22b4_rle_crop_4023226761_0.png.png imagette282417151762395300/1762395086_1045306_1392894222_ebfb0a075a004f629332dad12aa25099_rle_crop_4023226719_0.png.png imagette282417151762395300/1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227780_0.png.png imagette282417151762395300/1762395066_1043947_1392894090_0c8403ee338a4d38e115b39001df35a2_rle_crop_4023226818_0.png.png imagette282417151762395300/1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227789_0.png.png imagette282417151762395300/1762395066_1043947_1392894189_47c23be85c3b347edb67d078b733e93e_rle_crop_4023226728_0.png.png imagette282417151762395300/1762395205_1053500_1392895461_141dfe3c105992192d2c1d506da2da2c_rle_crop_4023227795_0.png.png imagette282417151762395300/1762394665_1020350_1392893301_ec333c05c6c43952d38c6b55bf720c02_rle_crop_4023222441_0.png.png imagette282417151762395300/1762395066_1043947_1392894189_47c23be85c3b347edb67d078b733e93e_rle_crop_4023226731_0.png.png imagette282417151762395300/1762395205_1053500_1392895507_d2625782984c2b739d9656474ffef976_rle_crop_4023227719_0.png.png imagette282417151762395300/1762395086_1045306_1392893967_3c2ff6c3be271b25a4d59cb05dbc3124_rle_crop_4023226747_0.png.png imagette282417151762395300/1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226874_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/103193360fa7c3870bc9d5fe4ffdae7c_48094567.png imagette282417151762395300 28241716 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392895456: '1762394907_1034296_1392895183_d14e91bd4caa184b3f221af83c2e4303_rle_crop_4023225175_0.png', 1392895457: '1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225188_0.png', 1392895458: '1762394907_1034296_1392894987_519711b5bc8679c6554062a6e44990fe_rle_crop_4023225205_0.png', 1392895484: '1762394947_1035602_1392895163_6bb070e2edb83e2a80d1da185a04878a_rle_crop_4023225328_0.png', 1392895551: '1762395066_1043947_1392894124_0765d6f4ba9d70e45a43d0b4f076d9db_rle_crop_4023226779_0.png', 1392895562: '1762395086_1045306_1392893867_4c0f31652f58fd4bb2714cb9b6aaa91e_rle_crop_4023226846_0.png', 1392895564: '1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226879_0.png', 1392895565: '1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226873_0.png', 1392895698: '1762395205_1053500_1392895477_cc1b370dcdad1d6bb4e11616dc400f2b_rle_crop_4023227727_0.png', 1392895699: '1762395205_1053500_1392895474_283dd64839c532740b2ac2107304bbeb_rle_crop_4023227742_0.png', 1392895700: '1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227768_0.png', 1392895732: '1762395266_1054172_1392895524_f6da1cbd5f0d2e73ad741b1c3924d965_rle_crop_4023227888_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/80aae68a2020f252a76b372e076271e5_16908561.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/fd8c475258a1aadfdb6cc026268251d6_95545270.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/aef49fd2f0df68abd802c4bffb298eb6_34835502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/be050519082af9f5edcca2fcfd2d61f6_32871277.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/b2ff4e1e4cea0db609994a02bbf626ae_1595044.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/ea02352efb6f353186e5435151ed29db_35398525.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/e67316a8d5ac5c59437142b806cea3d3_12590322.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/2b9befddee26bae5a417d651b19aa718_24967731.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/6d5fef20065cda0ccc3359e7bb0f53f3_47278163.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/66fdabce41d46e396e1eb240bba27d23_15267629.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/2052f74d8f1817cb6f65d8900ef96033_47987972.png change filename to text .imagette282417161762395302/ imagette282417161762395302/1762395066_1043947_1392894124_0765d6f4ba9d70e45a43d0b4f076d9db_rle_crop_4023226779_0.png.png imagette282417161762395302/1762394947_1035602_1392895163_6bb070e2edb83e2a80d1da185a04878a_rle_crop_4023225328_0.png.png imagette282417161762395302/1762395205_1053500_1392895468_45467c7755a95030c480c4a8fa88e4b4_rle_crop_4023227768_0.png.png imagette282417161762395302/1762395205_1053500_1392895474_283dd64839c532740b2ac2107304bbeb_rle_crop_4023227742_0.png.png imagette282417161762395302/1762395086_1045306_1392893867_4c0f31652f58fd4bb2714cb9b6aaa91e_rle_crop_4023226846_0.png.png imagette282417161762395302/1762394907_1034296_1392895022_a1159665cc84fbed96c89a4ce782ed6e_rle_crop_4023225188_0.png.png imagette282417161762395302/1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226879_0.png.png imagette282417161762395302/1762395266_1054172_1392895524_f6da1cbd5f0d2e73ad741b1c3924d965_rle_crop_4023227888_0.png.png imagette282417161762395302/1762394907_1034296_1392895183_d14e91bd4caa184b3f221af83c2e4303_rle_crop_4023225175_0.png.png imagette282417161762395302/1762395086_1045306_1392893831_413a01aa336ecb2f96bd61e87791bd40_rle_crop_4023226873_0.png.png imagette282417161762395302/1762394907_1034296_1392894987_519711b5bc8679c6554062a6e44990fe_rle_crop_4023225205_0.png.png imagette282417161762395302/1762395205_1053500_1392895477_cc1b370dcdad1d6bb4e11616dc400f2b_rle_crop_4023227727_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/712eef73603266332403e848c88c9473_95028325.png imagette282417161762395302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28241637 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28241720,28241721,28241722,28241723,28241724,28241725,28241726,28241727,28241728,28241729,28241730,28241731?tags=mal_croppe,Carton_brun,kraft,autre_refus,papier,cartonnette,environnement,flou,plastique,Teint_Dans_La_Masse,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1392895671] : ('0.03039232901183488',) no score found for photo 1392895671 We are sending mail with results at report@fotonower.com args[1392895668] : ('0.03039232901183488',) no score found for photo 1392895668 We are sending mail with results at report@fotonower.com args[1392895663] : ('0.03039232901183488',) no score found for photo 1392895663 We are sending mail with results at report@fotonower.com args[1392895660] : ('0.03039232901183488',) no score found for photo 1392895660 We are sending mail with results at report@fotonower.com refus_total : 0.03039232901183488 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241637 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_P28241637_06-11-2025_03_14_59.pdf results_Auto_P28241637_06-11-2025_03_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_03_14_59.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','28241637','results_Auto_P28241637_06-11-2025_03_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_03_14_59.pdf','pdf','','0.2','0.03039232901183488') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28241637]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392895671, 1392895668, 1392895663, 1392895660] map_info['map_portfolio_photo'] : {28241637: [1392895671, 1392895668, 1392895663, 1392895660, 1392895526, 1392895524, 1392895523, 1392895522, 1392895507, 1392895505, 1392895504, 1392895502, 1392895479, 1392895477, 1392895474, 1392895472, 1392895468, 1392895461, 1392895430, 1392895428, 1392895427, 1392895426, 1392895376, 1392895365, 1392895362, 1392895359, 1392895357, 1392895354, 1392895183, 1392895166, 1392895163, 1392895160, 1392895058, 1392895022, 1392894987, 1392894956, 1392894924, 1392894893, 1392894486, 1392894474, 1392894457, 1392894425, 1392894222, 1392894189, 1392894156, 1392894124, 1392894090, 1392893970, 1392893967, 1392893931, 1392893899, 1392893867, 1392893831, 1392893371, 1392893338, 1392893301]} final : False mtd_id 4302 list_pids : [1392895671, 1392895668, 1392895663, 1392895660] 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, '4007260') ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '28241637', '1392895671', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260')] time used for this insertion : 0.012502670288085938 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.417527675628662 time spend to save output : 0.012738943099975586 total time spend for step 4 : 5.430266618728638 step5:split_time_score Thu Nov 6 03:15:04 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 : ['28241637'] 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 : [('28241637',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28241637) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392895663: {'path': 'temp/1762395298_526878_1392895663_9a0a72793f83b7e24253c6dcccb35836.jpg', 'extension': 'jpg'}, 1392895660: {'path': 'temp/1762395298_526878_1392895660_f68776b77f7e59d4c3dd69f0bbdee20c.jpg', 'extension': 'jpg'}, 1392895668: {'path': 'temp/1762395298_526878_1392895668_0125cc682b8ddc2e9ce667a1899bd590.jpg', 'extension': 'jpg'}, 1392895671: {'path': 'temp/1762395298_526878_1392895671_3585e8a088ea005935fe6e6687df7da9.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 = 28241637; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28241637 group by h (('03', 56),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28241637 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 (28241637) 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 (28241637) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06112025 28241637 Nombre de photos uploadées : 56 / 23040 (0%) 06112025 28241637 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 06112025 28241637 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1392893371, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/92fa6f27cbd952a60c65fcec5748d102.jpg', 'username': None, 'uploaded_at': 1762394468, 'text': 'image_06112025_03_00_14_010203m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392893338, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/36831dab8d2d8fd4e1cffd48f9264c03.jpg', 'username': None, 'uploaded_at': 1762394468, 'text': 'image_06112025_03_00_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392893301, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/ec333c05c6c43952d38c6b55bf720c02.jpg', 'username': None, 'uploaded_at': 1762394468, 'text': 'image_06112025_03_00_34_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392893970, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/6/5f08c5b18c2ad3a311a562b89843f8d7.jpg', 'username': None, 'uploaded_at': 1762394528, 'text': 'image_06112025_03_00_55_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0020799636840820312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28241637, '2025-11-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2521549,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21866083145141602 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= 2521549 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28235530, 'dashboard_result_id': 16888242, '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_P28235530_06-11-2025_00_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28236103, 'dashboard_result_id': 16888243, '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_P28236103_06-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28236743, 'dashboard_result_id': 16888244, '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_P28236743_06-11-2025_00_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28237598, 'dashboard_result_id': 16888245, '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_P28237598_06-11-2025_01_02_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28238626, 'dashboard_result_id': 16888246, '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_P28238626_06-11-2025_01_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28238993, 'dashboard_result_id': 16888247, '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_P28238993_06-11-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28239478, 'dashboard_result_id': 16888248, '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_P28239478_06-11-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28240182, 'dashboard_result_id': 16888249, '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_P28240182_06-11-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28240665, 'dashboard_result_id': 16888250, '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_P28240665_06-11-2025_02_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28241219, 'dashboard_result_id': 16888251, '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_P28241219_06-11-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, 'pht': 3726}}"}, {'dashboat_entry_day': 2521549, 'dashboard_run_id': 2529677, 'mtr_portfolio_id': 28241637, 'dashboard_result_id': 16888252, '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_P28241637_06-11-2025_03_10_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, '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 = 28235530 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': 4006566, 'mtr_portfolio_id': 28235530, 'created_at': datetime.datetime(2025, 11, 6, 0, 16, 58), 'result': '0.05041362995342737', 'result_long': None, 'result_double': None}] Qualite : 0.05041362995342737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28235530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28235530_06-11-2025_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28235530 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_P28235530_06-11-2025_00_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, 'pht': 3726}}" where mtr_portfolio_id = 28235530 and dashboard_run_id = 2529677 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`=28235530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888242, 0.05041362995342737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28235530_06-11-2025_00_16_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28235538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28235539, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28235540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28235541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28235542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28235543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28235544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28235545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28235546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28235547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28235548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28235549, '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 = 28236103 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': 4006617, 'mtr_portfolio_id': 28236103, 'created_at': datetime.datetime(2025, 11, 6, 0, 32, 59), 'result': '0.058940898031335336', 'result_long': None, 'result_double': None}] Qualite : 0.058940898031335336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28236103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236103_06-11-2025_00_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28236103 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_P28236103_06-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, 'pht': 3726}}" where mtr_portfolio_id = 28236103 and dashboard_run_id = 2529677 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`=28236103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888243, 0.058940898031335336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236103_06-11-2025_00_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236112, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236115, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236116, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236118, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236120, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236122, '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 = 28236743 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': 4006666, 'mtr_portfolio_id': 28236743, 'created_at': datetime.datetime(2025, 11, 6, 0, 52, 58), 'result': '0.05226646504219898', 'result_long': None, 'result_double': None}] Qualite : 0.05226646504219898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28236743 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236743_06-11-2025_00_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28236743 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_P28236743_06-11-2025_00_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, 'pht': 3726}}" where mtr_portfolio_id = 28236743 and dashboard_run_id = 2529677 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`=28236743 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888244, 0.05226646504219898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28236743_06-11-2025_00_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28236782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28236783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28236784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28236785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28236786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28236787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28236788, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28236789, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28236790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28236791, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28236792, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28236793, '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 = 28237598 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': 4006734, 'mtr_portfolio_id': 28237598, 'created_at': datetime.datetime(2025, 11, 6, 1, 2, 30), 'result': '0.055778351036408165', 'result_long': None, 'result_double': None}] Qualite : 0.055778351036408165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28237598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28237598_06-11-2025_01_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28237598 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_P28237598_06-11-2025_01_02_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, 'pht': 3726}}" where mtr_portfolio_id = 28237598 and dashboard_run_id = 2529677 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`=28237598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888245, 0.055778351036408165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28237598_06-11-2025_01_02_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28237602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28237603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28237604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28237605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28237606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28237607, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28237608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28237609, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28237610, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28237611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28237612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28237613, '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 = 28238626 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': 4006845, 'mtr_portfolio_id': 28238626, 'created_at': datetime.datetime(2025, 11, 6, 1, 46, 59), 'result': '0.03845004863864676', 'result_long': None, 'result_double': None}] Qualite : 0.03845004863864676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28238626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238626_06-11-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28238626 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_P28238626_06-11-2025_01_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, 'pht': 3726}}" where mtr_portfolio_id = 28238626 and dashboard_run_id = 2529677 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`=28238626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888246, 0.03845004863864676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238626_06-11-2025_01_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28238628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28238629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28238630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28238631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28238632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28238633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28238634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28238635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28238636, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28238637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28238638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28238639, '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 = 28238993 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': 4006888, 'mtr_portfolio_id': 28238993, 'created_at': datetime.datetime(2025, 11, 6, 2, 2, 57), 'result': '0.03884963270230124', 'result_long': None, 'result_double': None}] Qualite : 0.03884963270230124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28238993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238993_06-11-2025_02_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28238993 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_P28238993_06-11-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, 'pht': 3726}}" where mtr_portfolio_id = 28238993 and dashboard_run_id = 2529677 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`=28238993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888247, 0.03884963270230124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28238993_06-11-2025_02_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239002, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239004, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28239007, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239010, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239011, '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 = 28239478 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': 4006989, 'mtr_portfolio_id': 28239478, 'created_at': datetime.datetime(2025, 11, 6, 2, 18, 59), 'result': '0.04801819422944025', 'result_long': None, 'result_double': None}] Qualite : 0.04801819422944025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28239478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28239478_06-11-2025_02_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28239478 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_P28239478_06-11-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, 'pht': 3726}}" where mtr_portfolio_id = 28239478 and dashboard_run_id = 2529677 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`=28239478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888248, 0.04801819422944025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28239478_06-11-2025_02_18_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28239506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28239507, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28239508, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28239509, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28239510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28239511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28239512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28239513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28239514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28239516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28239517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28239518, '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 = 28240182 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': 4007060, 'mtr_portfolio_id': 28240182, 'created_at': datetime.datetime(2025, 11, 6, 2, 32, 57), 'result': '0.05549165969957548', 'result_long': None, 'result_double': None}] Qualite : 0.05549165969957548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28240182 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240182_06-11-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28240182 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_P28240182_06-11-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, 'pht': 3726}}" where mtr_portfolio_id = 28240182 and dashboard_run_id = 2529675 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`=28240182 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888249, 0.05549165969957548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240182_06-11-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240226, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240231, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240238, '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 = 28240665 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': 4007121, 'mtr_portfolio_id': 28240665, 'created_at': datetime.datetime(2025, 11, 6, 2, 47), 'result': '0.04522659559916669', 'result_long': None, 'result_double': None}] Qualite : 0.04522659559916669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28240665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240665_06-11-2025_02_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28240665 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_P28240665_06-11-2025_02_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, 'pht': 3726}}" where mtr_portfolio_id = 28240665 and dashboard_run_id = 2529675 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`=28240665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888250, 0.04522659559916669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28240665_06-11-2025_02_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28240709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28240710, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28240711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28240712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28240713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28240714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28240715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28240716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28240717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28240718, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28240719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28240720, '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 = 28241219 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': 4007183, 'mtr_portfolio_id': 28241219, 'created_at': datetime.datetime(2025, 11, 6, 3, 2, 59), 'result': '0.054280456676246716', 'result_long': None, 'result_double': None}] Qualite : 0.054280456676246716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28241219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241219_06-11-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28241219 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_P28241219_06-11-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, 'pht': 3726}}" where mtr_portfolio_id = 28241219 and dashboard_run_id = 2529675 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`=28241219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888251, 0.054280456676246716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241219_06-11-2025_03_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241235, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241239, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241240, '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 = 28241637 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': 4007260, 'mtr_portfolio_id': 28241637, 'created_at': datetime.datetime(2025, 11, 6, 3, 14, 58), 'result': '0.03039232901183488', 'result_long': None, 'result_double': None}] Qualite : 0.03039232901183488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28241637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_03_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28241637 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_P28241637_06-11-2025_03_14_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, 'pht': 3726}}" where mtr_portfolio_id = 28241637 and dashboard_run_id = 2529675 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`=28241637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16888252, 0.03039232901183488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28241637_06-11-2025_03_14_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28241705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28241706, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28241707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28241708, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28241709, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28241710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28241712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28241713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28241714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28241715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28241716, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28241717, '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 (28235530,28236103,28236743,28237598,28238626,28238993,28239478,28240182,28240665,28241219,28241637) result : ((1392868064,), (1392868096,), (1392868546,), (1392868547,), (1392868548,), (1392868550,), (1392868552,), (1392868570,), (1392868800,), (1392868803,), (1392868806,), (1392868808,), (1392868847,), (1392868848,), (1392868849,), (1392868852,), (1392868874,), (1392868878,), (1392868882,), (1392868887,), (1392868920,), (1392868922,), (1392868924,), (1392868928,), (1392868948,), (1392868951,), (1392868954,), (1392868959,), (1392869045,), (1392869047,), (1392869049,), (1392869337,), (1392869370,), (1392869377,), (1392869378,), (1392869380,), (1392869740,), (1392869772,), (1392869809,), (1392869847,), (1392869885,), (1392870264,), (1392870336,), (1392870397,), (1392870470,), (1392870537,), (1392870608,), (1392870940,), (1392870974,), (1392871039,), (1392871079,), (1392871119,), (1392871220,), (1392871575,), (1392871585,), (1392871601,), (1392871606,), (1392871614,), (1392871627,), (1392871645,), (1392871648,), (1392871665,), (1392871671,), (1392871681,), (1392871683,), (1392871685,), (1392871695,), (1392872166,), (1392872065,), (1392872100,), (1392872134,), (1392872254,), (1392872286,), (1392872320,), (1392872352,), (1392872384,), (1392872388,), (1392872495,), (1392872499,), (1392872508,), (1392872510,), (1392872514,), (1392872727,), (1392872760,), (1392872795,), (1392872825,), (1392873078,), (1392873368,), (1392874542,), (1392874554,), (1392874557,), (1392874719,), (1392874751,), (1392874786,), (1392874818,), (1392874846,), (1392874927,), (1392874928,), (1392874929,), (1392874930,), (1392874956,), (1392874957,), (1392874958,), (1392874960,), (1392874963,), (1392875495,), (1392875496,), (1392875498,), (1392875499,), (1392875500,), (1392875525,), (1392875360,), (1392875395,), (1392875427,), (1392875458,), (1392875492,), (1392875685,), (1392875686,), (1392875726,), (1392875728,), (1392875741,), (1392875742,), (1392875755,), (1392875761,), (1392875784,), (1392875786,), (1392875826,), (1392875827,), (1392875830,), (1392875861,), (1392875862,), (1392875863,), (1392875864,), (1392875886,), (1392875888,), (1392875889,), (1392875890,), (1392875910,), (1392875917,), (1392875925,), (1392875929,), (1392875974,), (1392875975,), (1392875976,), (1392876398,), (1392876430,), (1392876461,), (1392876494,), (1392876527,), (1392876889,), (1392876890,), (1392876891,), (1392877153,), (1392877162,), (1392877163,), (1392877165,), (1392877296,), (1392877298,), (1392877300,), (1392877328,), (1392877330,), (1392877331,), (1392877332,), (1392877334,), (1392877505,), (1392877539,), (1392877576,), (1392877611,), (1392877660,), (1392877966,), (1392878056,), (1392878059,), (1392878211,), (1392878238,), (1392880532,), (1392879416,), (1392880467,), (1392880499,), (1392880527,), (1392880663,), (1392880666,), (1392880669,), (1392880671,), (1392880674,), (1392880718,), (1392880720,), (1392880722,), (1392880723,), (1392880725,), (1392880791,), (1392880825,), (1392880857,), (1392880888,), (1392881139,), (1392881140,), (1392881156,), (1392881190,), (1392881228,), (1392881263,), (1392881342,), (1392881362,), (1392881368,), (1392881376,), (1392881377,), (1392881380,), (1392881383,), (1392881386,), (1392881389,), (1392881416,), (1392881453,), (1392881496,), (1392881848,), (1392881855,), (1392881858,), (1392881865,), (1392882074,), (1392882078,), (1392882193,), (1392882231,), (1392882267,), (1392882300,), (1392882335,), (1392882513,), (1392884294,), (1392884296,), (1392884315,), (1392884317,), (1392884319,), (1392884321,), (1392884355,), (1392884357,), (1392884358,), (1392884382,), (1392884384,), (1392884386,), (1392884388,), (1392884390,), (1392884413,), (1392884414,), (1392884415,), (1392884416,), (1392884419,), (1392884481,), (1392884483,), (1392884485,), (1392884508,), (1392884509,), (1392884510,), (1392884511,), (1392884538,), (1392884541,), (1392884543,), (1392884546,), (1392884549,), (1392884561,), (1392884562,), (1392884563,), (1392884564,), (1392884567,), (1392884602,), (1392884604,), (1392884643,), (1392884889,), (1392884890,), (1392884891,), (1392884893,), (1392884919,), (1392884921,), (1392884922,), (1392884925,), (1392884928,), (1392884931,), (1392884944,), (1392884945,), (1392884946,), (1392884947,), (1392884986,), (1392884977,), (1392884979,), (1392884981,), (1392884983,), (1392885005,), (1392885006,), (1392885007,), (1392885009,), (1392885012,), (1392885090,), (1392885092,), (1392885094,), (1392885113,), (1392885116,), (1392885119,), (1392885123,), (1392885127,), (1392885152,), (1392885154,), (1392885155,), (1392885157,), (1392885159,), (1392885162,), (1392885172,), (1392885174,), (1392885176,), (1392885178,), (1392885218,), (1392885220,), (1392885221,), (1392885223,), (1392885279,), (1392885282,), (1392885284,), (1392885286,), (1392885289,), (1392885312,), (1392885314,), (1392885318,), (1392885321,), (1392885326,), (1392885354,), (1392885356,), (1392885358,), (1392885360,), (1392885384,), (1392885387,), (1392885390,), (1392885393,), (1392885406,), (1392885408,), (1392885410,), (1392885412,), (1392885494,), (1392885497,), (1392885899,), (1392885918,), (1392885925,), (1392885929,), (1392885933,), (1392885943,), (1392885973,), (1392885967,), (1392885972,), (1392886144,), (1392886731,), (1392886847,), (1392886848,), (1392886851,), (1392887532,), (1392887568,), (1392887631,), (1392887668,), (1392887918,), (1392887952,), (1392888006,), (1392888064,), (1392888408,), (1392888437,), (1392888457,), (1392888469,), (1392888559,), (1392888561,), (1392888562,), (1392888768,), (1392888777,), (1392888780,), (1392888784,), (1392888790,), (1392888980,), (1392888983,), (1392888986,), (1392888989,), (1392889014,), (1392889016,), (1392889017,), (1392889018,), (1392889022,), (1392889053,), (1392889055,), (1392889066,), (1392889069,), (1392889133,), (1392889170,), (1392889201,), (1392889232,), (1392889271,), (1392889303,), (1392889561,), (1392889563,), (1392889565,), (1392889566,), (1392889675,), (1392889708,), (1392889740,), (1392889772,), (1392889806,), (1392890002,), (1392889977,), (1392889991,), (1392889994,), (1392889998,), (1392890023,), (1392890025,), (1392890027,), (1392890030,), (1392890102,), (1392890105,), (1392890134,), (1392890135,), (1392890136,), (1392890138,), (1392890165,), (1392890167,), (1392890169,), (1392890172,), (1392890176,), (1392890200,), (1392890202,), (1392890203,), (1392890204,), (1392890207,), (1392890235,), (1392890237,), (1392890239,), (1392890401,), (1392890402,), (1392890403,), (1392890405,), (1392890407,), (1392890443,), (1392890444,), (1392890446,), (1392890450,), (1392890454,), (1392890471,), (1392890473,), (1392890475,), (1392890479,), (1392890484,), (1392890536,), (1392890538,), (1392890540,), (1392890542,), (1392890546,), (1392890549,), (1392890566,), (1392890570,), (1392890572,), (1392890574,), (1392890600,), (1392890601,), (1392890602,), (1392890605,), (1392890610,), (1392890615,), (1392890650,), (1392890652,), (1392890669,), (1392890672,), (1392890677,), (1392890679,), (1392890683,), (1392890638,), (1392890641,), (1392890644,), (1392890647,), (1392890708,), (1392890716,), (1392890719,), (1392890728,), (1392890738,), (1392890745,), (1392890768,), (1392890770,), (1392890771,), (1392891025,), (1392891057,), (1392891088,), (1392891121,), (1392891157,), (1392891358,), (1392891360,), (1392891362,), (1392891379,), (1392891410,), (1392891447,), (1392891640,), (1392891644,), (1392891645,), (1392891647,), (1392891675,), (1392891679,), (1392891682,), (1392891686,), (1392891763,), (1392891765,), (1392891767,), (1392891776,), (1392891815,), (1392891817,), (1392891819,), (1392891821,), (1392891825,), (1392891850,), (1392891851,), (1392891852,), (1392891855,), (1392891879,), (1392891882,), (1392891883,), (1392891886,), (1392891890,), (1392891894,), (1392891917,), (1392891922,), (1392891932,), (1392891942,), (1392891949,), (1392892001,), (1392892002,), (1392892003,), (1392892006,), (1392892041,), (1392892044,), (1392892047,), (1392892051,), (1392892054,), (1392892058,), (1392892083,), (1392892084,), (1392892086,), (1392892087,), (1392892089,), (1392892090,), (1392892127,), (1392892123,), (1392892124,), (1392892125,), (1392892149,), (1392892151,), (1392892153,), (1392892156,), (1392892160,), (1392892231,), (1392892233,), (1392892235,), (1392892238,), (1392892271,), (1392892273,), (1392892275,), (1392892278,), (1392892283,), (1392892286,), (1392892310,), (1392892312,), (1392892314,), (1392892319,), (1392892324,), (1392892341,), (1392892344,), (1392892346,), (1392892349,), (1392892353,), (1392892356,), (1392892400,), (1392892406,), (1392892414,), (1392892416,), (1392892419,), (1392892483,), (1392892484,), (1392892485,), (1392892487,), (1392892490,), (1392892493,), (1392892527,), (1392892529,), (1392892531,), (1392892534,), (1392892561,), (1392892563,), (1392892564,), (1392892565,), (1392892567,), (1392892568,), (1392892587,), (1392892589,), (1392892591,), (1392892595,), (1392892600,), (1392892615,), (1392892621,), (1392892624,), (1392892628,), (1392892631,), (1392892641,), (1392892721,), (1392892728,), (1392892729,), (1392892731,), (1392892846,), (1392892882,), (1392892916,), (1392892956,), (1392892992,), (1392893407,), (1392893301,), (1392893338,), (1392893371,), (1392893831,), (1392893867,), (1392893899,), (1392893931,), (1392893967,), (1392893970,), (1392894090,), (1392894124,), (1392894156,), (1392894189,), (1392894222,), (1392894425,), (1392894457,), (1392894474,), (1392894486,), (1392894893,), (1392894924,), (1392894956,), (1392894987,), (1392895022,), (1392895058,), (1392895160,), (1392895163,), (1392895166,), (1392895183,), (1392895354,), (1392895357,), (1392895359,), (1392895362,), (1392895365,), (1392895376,), (1392895426,), (1392895427,), (1392895428,), (1392895430,), (1392895461,), (1392895468,), (1392895472,), (1392895474,), (1392895477,), (1392895479,), (1392895502,), (1392895504,), (1392895505,), (1392895507,), (1392895522,), (1392895523,), (1392895524,), (1392895526,), (1392895660,), (1392895663,), (1392895668,), (1392895671,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06112025': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28241637]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392895671, 1392895668, 1392895663, 1392895660] map_info['map_portfolio_photo'] : {28241637: [1392895671, 1392895668, 1392895663, 1392895660, 1392895526, 1392895524, 1392895523, 1392895522, 1392895507, 1392895505, 1392895504, 1392895502, 1392895479, 1392895477, 1392895474, 1392895472, 1392895468, 1392895461, 1392895430, 1392895428, 1392895427, 1392895426, 1392895376, 1392895365, 1392895362, 1392895359, 1392895357, 1392895354, 1392895183, 1392895166, 1392895163, 1392895160, 1392895058, 1392895022, 1392894987, 1392894956, 1392894924, 1392894893, 1392894486, 1392894474, 1392894457, 1392894425, 1392894222, 1392894189, 1392894156, 1392894124, 1392894090, 1392893970, 1392893967, 1392893931, 1392893899, 1392893867, 1392893831, 1392893371, 1392893338, 1392893301]} final : True mtd_id 4302 list_pids : [1392895671, 1392895668, 1392895663, 1392895660] Looping around the photos to save general results len do output : 1 /28241637Didn'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, '4007260') ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260') ('4302', None, None, None, None, None, None, None, '4007260') ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28241637', 'None', None, None, None, None, '4007260'), ('4302', '28241637', '1392895671', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895668', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895663', None, None, None, None, None, '4007260'), ('4302', '28241637', '1392895660', None, None, None, None, None, '4007260')] time used for this insertion : 0.01595616340637207 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9285135269165039 time spend to save output : 0.01611638069152832 total time spend for step 5 : 0.9446299076080322 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 (4007260) 1.94user 2.48system 0:10.53elapsed 42%CPU (0avgtext+0avgdata 158360maxresident)k 1912inputs+9600outputs (42major+63862minor)pagefaults 0swaps