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 : 1311296 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 (2777836) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2777836) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579061 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2777836'] with mtr_portfolio_ids : ['22579061'] and first list_photo_ids : [] new path : /proc/1311296/ Name: python3 Umask: 0002 State: R (running) Tgid: 1311296 Ngid: 0 Pid: 1311296 PPid: 1311295 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1311296 NSpid: 1311296 NSpgid: 1301562 NSsid: 1301562 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99696 kB VmRSS: 99696 kB RssAnon: 60192 kB RssFile: 39504 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1311296', 'Ngid': '0', 'Pid': '1311296', 'PPid': '1311295', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1311296', 'NSpid': '1311296', 'NSpgid': '1301562', 'NSsid': '1301562', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99696 kB', 'VmRSS': '99696 kB', 'RssAnon': '60192 kB', 'RssFile': '39504 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1311296', '1107228', '0', '1107228', '865976', '99696', b'', 'marlene', '2777836') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22579061) 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 (2777836 ) ) 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 (22579061) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355022564, 'portfolio_id': 22579061}, {'photo_id': 1355008729, 'portfolio_id': 22579061}, {'photo_id': 1355008547, 'portfolio_id': 22579061}, {'photo_id': 1355008490, 'portfolio_id': 22579061}, {'photo_id': 1355008487, 'portfolio_id': 22579061}, {'photo_id': 1355008484, 'portfolio_id': 22579061}, {'photo_id': 1355008481, 'portfolio_id': 22579061}, {'photo_id': 1355008480, 'portfolio_id': 22579061}, {'photo_id': 1355008479, 'portfolio_id': 22579061}, {'photo_id': 1355008451, 'portfolio_id': 22579061}, {'photo_id': 1355008449, 'portfolio_id': 22579061}, {'photo_id': 1355008447, 'portfolio_id': 22579061}, {'photo_id': 1355008446, 'portfolio_id': 22579061}, {'photo_id': 1355008445, 'portfolio_id': 22579061}, {'photo_id': 1355008444, 'portfolio_id': 22579061}, {'photo_id': 1355008414, 'portfolio_id': 22579061}, {'photo_id': 1355008412, 'portfolio_id': 22579061}, {'photo_id': 1355008411, 'portfolio_id': 22579061}, {'photo_id': 1355008409, 'portfolio_id': 22579061}, {'photo_id': 1355008397, 'portfolio_id': 22579061}, {'photo_id': 1355008393, 'portfolio_id': 22579061}, {'photo_id': 1355008388, 'portfolio_id': 22579061}, {'photo_id': 1355008385, 'portfolio_id': 22579061}, {'photo_id': 1355008381, 'portfolio_id': 22579061}, {'photo_id': 1355008379, 'portfolio_id': 22579061}, {'photo_id': 1355008356, 'portfolio_id': 22579061}, {'photo_id': 1355008354, 'portfolio_id': 22579061}, {'photo_id': 1355008352, 'portfolio_id': 22579061}, {'photo_id': 1355008351, 'portfolio_id': 22579061}, {'photo_id': 1355008349, 'portfolio_id': 22579061}, {'photo_id': 1355008325, 'portfolio_id': 22579061}, {'photo_id': 1355008324, 'portfolio_id': 22579061}, {'photo_id': 1355008323, 'portfolio_id': 22579061}, {'photo_id': 1355008305, 'portfolio_id': 22579061}, {'photo_id': 1355008302, 'portfolio_id': 22579061}, {'photo_id': 1355008299, 'portfolio_id': 22579061}, {'photo_id': 1355008297, 'portfolio_id': 22579061}, {'photo_id': 1355008282, 'portfolio_id': 22579061}, {'photo_id': 1355008246, 'portfolio_id': 22579061}, {'photo_id': 1355008244, 'portfolio_id': 22579061}, {'photo_id': 1355008241, 'portfolio_id': 22579061}, {'photo_id': 1355008238, 'portfolio_id': 22579061}, {'photo_id': 1355008228, 'portfolio_id': 22579061}, {'photo_id': 1355008226, 'portfolio_id': 22579061}, {'photo_id': 1355008166, 'portfolio_id': 22579061}, {'photo_id': 1355008162, 'portfolio_id': 22579061}, {'photo_id': 1355008159, 'portfolio_id': 22579061}] map_portfolio_id_photo_id: {22579061: [1355022564, 1355008729, 1355008547, 1355008490, 1355008487, 1355008484, 1355008481, 1355008480, 1355008479, 1355008451, 1355008449, 1355008447, 1355008446, 1355008445, 1355008444, 1355008414, 1355008412, 1355008411, 1355008409, 1355008397, 1355008393, 1355008388, 1355008385, 1355008381, 1355008379, 1355008356, 1355008354, 1355008352, 1355008351, 1355008349, 1355008325, 1355008324, 1355008323, 1355008305, 1355008302, 1355008299, 1355008297, 1355008282, 1355008246, 1355008244, 1355008241, 1355008238, 1355008228, 1355008226, 1355008166, 1355008162, 1355008159]} ##### 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.02642083168029785 #### 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 May 1 08:00:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22579061) 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 : 22579061 get user id for portfolio 22579061 get sub ptf for main ptf 22579061, type 3726 and hashtags ['plastique', 'kraft', 'cartonnette', 'papier', 'metal', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'environnement', 'flou', 'autre_refus', 'Teint_Dans_La_Masse'] 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`=22579061 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','cartonnette','papier','metal','mal_croppe','Carton_gris','Carton_brun','environnement','flou','autre_refus','Teint_Dans_La_Masse')) 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`=22579061 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','cartonnette','papier','metal','mal_croppe','Carton_gris','Carton_brun','environnement','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22579061, 'sub_port_id': 22579104, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011208, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'metal': {'main_port_id': 22579061, 'sub_port_id': 22579105, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011209, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'autre_refus': {'main_port_id': 22579061, 'sub_port_id': 22579106, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011210, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22579061, 'sub_port_id': 22579107, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011211, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'cartonnette': {'main_port_id': 22579061, 'sub_port_id': 22579108, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011212, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'mal_croppe': {'main_port_id': 22579061, 'sub_port_id': 22579109, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011213, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'flou': {'main_port_id': 22579061, 'sub_port_id': 22579110, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011214, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'plastique': {'main_port_id': 22579061, 'sub_port_id': 22579111, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011215, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'Carton_brun': {'main_port_id': 22579061, 'sub_port_id': 22579112, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011216, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'Carton_gris': {'main_port_id': 22579061, 'sub_port_id': 22579113, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011217, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'kraft': {'main_port_id': 22579061, 'sub_port_id': 22579114, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011218, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}, 'environnement': {'main_port_id': 22579061, 'sub_port_id': 22579115, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011219, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22579104 , 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=22579061 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 (22579104) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579105 , 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=22579061 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 (22579105) result : ((1355008441,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579106 , 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=22579061 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 (22579106) result : ((1355008472,), (1355008524,), (1355008539,), (1355008540,), (1355008541,), (1355008542,), (1355008622,), (1355008623,), (1355008624,), (1355008636,), (1355008638,), (1355008663,), (1355008664,), (1355008665,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579107 , 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=22579061 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 (22579107) result : ((1355008465,), (1355008466,), (1355008467,), (1355008468,), (1355008469,), (1355008517,), (1355008521,), (1355008532,), (1355008533,), (1355008534,), (1355008535,), (1355008617,), (1355008618,), (1355008619,), (1355008620,), (1355008621,), (1355008634,), (1355008635,), (1355008691,), (1355009549,), (1355009550,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579108 , 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=22579061 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 (22579108) result : ((1355008436,), (1355008476,), (1355008526,), (1355008626,), (1355008627,), (1355008640,), (1355008641,), (1355008693,), (1355009553,), (1355009554,), (1355009555,), (1355009556,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579109 , 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=22579061 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 (22579109) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579110 , 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=22579061 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 (22579110) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579111 , 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=22579061 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 (22579111) result : ((1355008478,), (1355008536,), (1355008537,), (1355008548,), (1355008549,), (1355008550,), (1355008551,), (1355008633,), (1355008648,), (1355008649,), (1355008694,), (1355008695,), (1355009559,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579112 , 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=22579061 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 (22579112) result : ((1355008438,), (1355008477,), (1355008528,), (1355008529,), (1355008530,), (1355008531,), (1355008546,), (1355008630,), (1355008631,), (1355008632,), (1355008642,), (1355008643,), (1355008644,), (1355008645,), (1355008646,), (1355008647,), (1355009557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579113 , 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=22579061 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 (22579113) result : ((1355008434,), (1355008473,), (1355008474,), (1355008475,), (1355008525,), (1355008543,), (1355008544,), (1355008545,), (1355008639,), (1355008692,), (1355009551,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579114 , 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=22579061 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 (22579114) result : ((1355008439,), (1355008440,), (1355008538,), (1355008552,), (1355008650,), (1355008651,), (1355008652,), (1355008653,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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 22579115 , 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=22579061 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 (22579115) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22579061) result : ((1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,)) 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`=22579061 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','cartonnette','papier','metal','mal_croppe','Carton_gris','Carton_brun','environnement','flou','autre_refus','Teint_Dans_La_Masse')) 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`=22579061 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','cartonnette','papier','metal','mal_croppe','Carton_gris','Carton_brun','environnement','flou','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22579061, 'sub_port_id': 22579116, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011220, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'metal': {'main_port_id': 22579061, 'sub_port_id': 22579117, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011221, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'autre_refus': {'main_port_id': 22579061, 'sub_port_id': 22579118, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011222, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 22579061, 'sub_port_id': 22579119, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011223, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'cartonnette': {'main_port_id': 22579061, 'sub_port_id': 22579120, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011224, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'mal_croppe': {'main_port_id': 22579061, 'sub_port_id': 22579121, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011225, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'flou': {'main_port_id': 22579061, 'sub_port_id': 22579122, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011226, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'plastique': {'main_port_id': 22579061, 'sub_port_id': 22579123, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011227, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'Carton_brun': {'main_port_id': 22579061, 'sub_port_id': 22579124, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011228, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'Carton_gris': {'main_port_id': 22579061, 'sub_port_id': 22579125, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011229, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'kraft': {'main_port_id': 22579061, 'sub_port_id': 22579126, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011230, 'last_updated_at': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 4, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}, 'environnement': {'main_port_id': 22579061, 'sub_port_id': 22579127, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15011231, 'last_updated_at': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_desc': datetime.datetime(2025, 5, 1, 6, 1, 27), 'last_updated_at_asc': datetime.datetime(2025, 5, 1, 4, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579116,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579104 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579117,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579105 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579118,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579106 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579119,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579107 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579120,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579108 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579121,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579109 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579122,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579110 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579123,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579111 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579124,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579112 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579125,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579113 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22579127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22579115 lien utilise dans velours : https://www.fotonower.com/velours/22579116,22579117,22579118,22579119,22579120,22579121,22579122,22579123,22579124,22579125,22579126,22579127?tags=papier,metal,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe,flou,plastique,Carton_brun,Carton_gris,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22579061]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355022564] map_info['map_portfolio_photo'] : {22579061: [1355022564, 1355008729, 1355008547, 1355008490, 1355008487, 1355008484, 1355008481, 1355008480, 1355008479, 1355008451, 1355008449, 1355008447, 1355008446, 1355008445, 1355008444, 1355008414, 1355008412, 1355008411, 1355008409, 1355008397, 1355008393, 1355008388, 1355008385, 1355008381, 1355008379, 1355008356, 1355008354, 1355008352, 1355008351, 1355008349, 1355008325, 1355008324, 1355008323, 1355008305, 1355008302, 1355008299, 1355008297, 1355008282, 1355008246, 1355008244, 1355008241, 1355008238, 1355008228, 1355008226, 1355008166, 1355008162, 1355008159]} final : False mtd_id 4302 list_pids : [1355022564] Looping around the photos to save general results len do output : 1 /22579061. 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, '2777836') ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22579061', "{'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115}", None, None, None, None, '2777836'), ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836')] time used for this insertion : 0.011923551559448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3801417350769043 time spend to save output : 0.012160539627075195 total time spend for step 1 : 1.3923022747039795 step2:final Thu May 1 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22579061) 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 22579061 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355008166,1355008162,1355008159,1355008246,1355008244,1355008241,1355008238,1355008228,1355008226,1355008305,1355008302,1355008299,1355008297,1355008282,1355008325,1355008324,1355008323,1355008356,1355008354,1355008352,1355008351,1355008349,1355008397,1355008393,1355008388,1355008385,1355008381,1355008379,1355008414,1355008412,1355008411,1355008409,1355008451,1355008449,1355008447,1355008446,1355008445,1355008444,1355008490,1355008487,1355008484,1355008481,1355008480,1355008479,1355008547,1355022564,1355008729); 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([22579061]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355022564: ('0.06758448316739953',)} new output for save of step final : {1355022564: ('0.06758448316739953',)} [1355022564] map_info['map_portfolio_photo'] : {22579061: [1355022564, 1355008729, 1355008547, 1355008490, 1355008487, 1355008484, 1355008481, 1355008480, 1355008479, 1355008451, 1355008449, 1355008447, 1355008446, 1355008445, 1355008444, 1355008414, 1355008412, 1355008411, 1355008409, 1355008397, 1355008393, 1355008388, 1355008385, 1355008381, 1355008379, 1355008356, 1355008354, 1355008352, 1355008351, 1355008349, 1355008325, 1355008324, 1355008323, 1355008305, 1355008302, 1355008299, 1355008297, 1355008282, 1355008246, 1355008244, 1355008241, 1355008238, 1355008228, 1355008226, 1355008166, 1355008162, 1355008159]} final : False mtd_id 4302 list_pids : [1355022564] Looping around the photos to save general results len do output : 1 /1355022564.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, '2777836') ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22579061', '1355022564', '0.06758448316739953', None, None, None, None, '2777836')] time used for this insertion : 0.012055397033691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07000923156738281 time spend to save output : 0.012258291244506836 total time spend for step 2 : 0.08226752281188965 step3:velours_tree Thu May 1 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22579061: [{'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115}]} input_args_next_step : {22579061: ()} output_args : {22579061: [{'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115}]} args : 22579061 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 : ({'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22579061) 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([22579061]) 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.3122682571411133 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.31231069564819336 step4:send_mail_cod Thu May 1 08:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1355022564: ('0.06758448316739953',)} input_args_next_step : {1355022564: ()} output_args : {1355022564: ('0.06758448316739953',)} args : 1355022564 depend.output_id : 0 complete output_args for input 3 : {22579061: [{'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115}]} input_args_next_step : {1355022564: ('0.06758448316739953',), 22579061: ()} output_args : {22579061: [{'papier': 22579104, 'metal': 22579105, 'autre_refus': 22579106, 'Teint_Dans_La_Masse': 22579107, 'cartonnette': 22579108, 'mal_croppe': 22579109, 'flou': 22579110, 'plastique': 22579111, 'Carton_brun': 22579112, 'Carton_gris': 22579113, 'kraft': 22579114, 'environnement': 22579115}]} args : 22579061 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.06758448316739953',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22579061) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1355022564) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355022564 download finish for photo 1355022564 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P22579061_01-05-2025_08_00_59.pdf 22579105 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579105 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008441: '1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857761_0.png'} change filename to text .imagette225791051746079259/ imagette225791051746079259/1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857761_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/4a3b390412edd1e42b577157cddf209d_65562895.png imagette225791051746079259 22579106 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579106 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008472: '1746065292_1666524_1355008299_cef7e9943b833667431d8c7586e5fff1_rle_crop_3777858007_0.png', 1355008524: '1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858624_0.png', 1355008539: '1746065352_1667203_1355008244_ee63d2e397d70403978713fdb2779e52_bib_crop_3777858572_0.jpg', 1355008540: '1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858586_0.jpg', 1355008541: '1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858633_0.png', 1355008542: '1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858655_0.png', 1355008622: '1746065470_1668449_1355008484_4a4089bc28b7587727973044533b8545_rle_crop_3777859229_0.png', 1355008623: '1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859237_0.png', 1355008624: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859308_0.png', 1355008636: '1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859357_0.png', 1355008638: '1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859365_0.png', 1355008663: '1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859434_0.png', 1355008664: '1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859435_0.png', 1355008665: '1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859437_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ff003263254fc71b4593531f6dba213a_36597801.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/023497e5e5a402fe264c8873244f2342_71690645.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f2db91db8c1f2d74fe3b6cda494b4d5d_24174252.jpg change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6bd1119f797b50a13987d478b2aed7d8_95422064.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/a45bf98f0e5a5bf55dd1270d7eb95d7a_50478619.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e02b528850d5db6ba571a760cb23815f_40128160.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/edcd9311a7dfa116597e78f98d1ba224_39440666.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/71f9d06c8dfba0b5cfa324c30fc624b1_98258782.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/240082fc085fa7a1d8285516f1328a62_56818774.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/3e39f71e73f67dc2df6bc0f0f3bf5289_64014442.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/07b33ecf68094d9752d55264ef322eb6_13104610.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6bf46092851d68836ba1a0dad016f3e1_35340756.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/58dbc09a922a2cad8e11bc69f3bca968_25673499.png change filename to text .imagette225791061746079259/ imagette225791061746079259/1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859435_0.png.png imagette225791061746079259/1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859434_0.png.png imagette225791061746079259/1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858655_0.png.png imagette225791061746079259/1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859357_0.png.png imagette225791061746079259/1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858624_0.png.png imagette225791061746079259/1746065352_1667203_1355008244_ee63d2e397d70403978713fdb2779e52_bib_crop_3777858572_0.jpg.jpg imagette225791061746079259/1746065470_1668449_1355008484_4a4089bc28b7587727973044533b8545_rle_crop_3777859229_0.png.png imagette225791061746079259/1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858586_0.jpg.jpg imagette225791061746079259/1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859237_0.png.png imagette225791061746079259/1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858633_0.png.png imagette225791061746079259/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859308_0.png.png imagette225791061746079259/1746065292_1666524_1355008299_cef7e9943b833667431d8c7586e5fff1_rle_crop_3777858007_0.png.png imagette225791061746079259/1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859365_0.png.png imagette225791061746079259/1746065532_1668962_1355008246_b2baf0d413c0274ebd461fef6051ee83_rle_crop_3777859437_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/a62bba58224ca4a2b501c3696e8be033_36952979.png imagette225791061746079259 22579108 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579108 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008436: '1746065245_3186158_1355008349_2b3532c08c939b7db7d7865c9a3b230f_rle_crop_3777857793_0.png', 1355008476: '1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857968_0.png', 1355008526: '1746065366_3188761_1355008379_00e50977b389a39107eb7eaef4f0d499_rle_crop_3777858696_0.png', 1355008626: '1746065470_1668449_1355008487_529431101729c6dbd3b84318821298bc_rle_crop_3777859218_0.png', 1355008627: '1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859242_0.png', 1355008640: '1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859249_0.png', 1355008641: '1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859350_0.png', 1355008693: '1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859511_0.png', 1355009553: '1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859700_0.png', 1355009554: '1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859705_0.png', 1355009555: '1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859726_0.png', 1355009556: '1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859724_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7c41824d1272edca9c3a02ffbca19681_15287567.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d4484b88e33a885063578080773cf785_33321349.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/48dfb7040f79c3fbcdbaa4269b04af33_88221413.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/889d02e0c88fd151191f7dd4725f23cf_93329904.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d19779d8c2feabf52b0ec70dcfa382b2_36879053.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f027bc6927303f30ca118ba7a0a9340c_19804109.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d823a4fc5a336571977c544cf1de2687_14262970.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/95361421c39d93c7a6379659f9c13907_93991855.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c53dd8705db072b9f11e4abbe16cecca_10645340.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/89fddfa2fd26a5ec86df10113f06428f_43006554.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d9e158364f83f2ac79eccf5374f3826f_57426011.png change filename to text .imagette225791081746079261/ imagette225791081746079261/1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859705_0.png.png imagette225791081746079261/1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857968_0.png.png imagette225791081746079261/1746065470_1668449_1355008487_529431101729c6dbd3b84318821298bc_rle_crop_3777859218_0.png.png imagette225791081746079261/1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859350_0.png.png imagette225791081746079261/1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859726_0.png.png imagette225791081746079261/1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859700_0.png.png imagette225791081746079261/1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859249_0.png.png imagette225791081746079261/1746065366_3188761_1355008379_00e50977b389a39107eb7eaef4f0d499_rle_crop_3777858696_0.png.png imagette225791081746079261/1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859511_0.png.png imagette225791081746079261/1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859242_0.png.png imagette225791081746079261/1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859724_0.png.png imagette225791081746079261/1746065245_3186158_1355008349_2b3532c08c939b7db7d7865c9a3b230f_rle_crop_3777857793_0.png.png imagette225791091746079263/ imagette225791101746079263/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/550c9feaf7d8efd60004b4b1505bbfa5_23096996.png imagette225791081746079261 22579109 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579109 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225791091746079263 22579110 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579110 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225791101746079263 22579111 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579111 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008478: '1746065292_1666524_1355008299_cef7e9943b833667431d8c7586e5fff1_rle_crop_3777858013_0.png', 1355008536: '1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858619_0.png', 1355008537: '1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858643_0.png', 1355008548: '1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858584_0.jpg', 1355008549: '1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858637_0.png', 1355008550: '1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858656_0.png', 1355008551: '1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858788_0.png', 1355008633: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859320_0.png', 1355008648: '1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859289_0.png', 1355008649: '1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859334_0.png', 1355008694: '1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859506_0.png', 1355008695: '1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859514_0.png', 1355009559: '1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859697_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/3bb442727a7ed92442bbd00be57cc951_30871728.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d6fd6bf94f436dcab2a698b429a7a128_8854415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9ac1aa62c9afe30c3897af112c999859_10256623.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/10592a2f05c5dfc345926e8bbeef78b5_8004900.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f7c642bc62c321265c38c3d611ad3bb5_56443691.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/5a7d3172e878504a60d49e226f35cd30_2490559.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/36a7f50c0748665cf50b6e691bdd6828_34978898.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/92f9441383bed207023c637319eb76b0_42260629.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9e1212a0933c183a2143e86961e6e8bc_11983807.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/bd4797836d2bdc85f532834600ac469b_29768490.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ace48b46e2e8747b8f52f877eeb880d5_14999907.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7311bd6e8c85aa825b23a63e14c54fc1_77885454.png change filename to text .imagette225791111746079263/ imagette225791111746079263/1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858643_0.png.png imagette225791111746079263/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859320_0.png.png imagette225791111746079263/1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858619_0.png.png imagette225791111746079263/1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859506_0.png.png imagette225791111746079263/1746065292_1666524_1355008299_cef7e9943b833667431d8c7586e5fff1_rle_crop_3777858013_0.png.png imagette225791111746079263/1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858584_0.jpg.jpg imagette225791111746079263/1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858656_0.png.png imagette225791111746079263/1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858637_0.png.png imagette225791111746079263/1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859334_0.png.png imagette225791111746079263/1746065352_1667203_1355008226_0dae1024fd15fafc2074b4b0f90ee1dd_rle_crop_3777858788_0.png.png imagette225791111746079263/1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859289_0.png.png imagette225791111746079263/1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859514_0.png.png imagette225791111746079263/1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859697_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/87f977e9c7abdc19801028323159038a_11818229.png imagette225791111746079263 22579114 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579114 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008439: '1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857762_0.png', 1355008440: '1746065245_3186158_1355008351_3a9b7dc7c44e9d5aad60860650f8d443_rle_crop_3777857777_0.png', 1355008538: '1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858621_0.png', 1355008552: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858550_0.jpg', 1355008650: '1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859280_0.png', 1355008651: '1746065485_3193126_1355008447_3d4d2a8503f51d14448338009e566260_rle_crop_3777859294_0.png', 1355008652: '1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859352_0.png', 1355008653: '1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859346_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/0f3468f15e4f91416c84181fc096c9bb_50133317.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/667bad57b6c923abf8cab0170c5dbf1d_50419322.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/affe6478603f468c7900778b2a08acea_24964059.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ad8558f5c2602bc3e4ae1414e01612f6_65012445.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ca5658395138e3bf68a32fe4b65b70c6_51006646.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/4661c9a8485041dd5da5f11d6b0e1b6b_268725.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/25d41c82abe110a1899998faa97ac886_11461273.png change filename to text .imagette225791141746079264/ imagette225791141746079264/1746065366_3188761_1355008414_bdf43fbe4cb588be4d4bc784da224d6d_rle_crop_3777858621_0.png.png imagette225791141746079264/1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859280_0.png.png imagette225791141746079264/1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859352_0.png.png imagette225791141746079264/1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857762_0.png.png imagette225791141746079264/1746065485_3193126_1355008447_3d4d2a8503f51d14448338009e566260_rle_crop_3777859294_0.png.png imagette225791141746079264/1746065245_3186158_1355008351_3a9b7dc7c44e9d5aad60860650f8d443_rle_crop_3777857777_0.png.png imagette225791141746079264/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858550_0.jpg.jpg imagette225791141746079264/1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859346_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/8148133d9e58b6ce0905a8f9b2d3e1ad_27235754.png imagette225791141746079264 22579107 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579107 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008535: '1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858634_0.png', 1355009550: '1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859728_0.png', 1355009549: '1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859706_0.png', 1355008691: '1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859517_0.png', 1355008635: '1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859370_0.png', 1355008634: '1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859336_0.png', 1355008621: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859313_0.png', 1355008620: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859316_0.png', 1355008619: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859310_0.png', 1355008618: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859317_0.png', 1355008617: '1746065470_1668449_1355008484_4a4089bc28b7587727973044533b8545_rle_crop_3777859234_0.png', 1355008465: '1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857971_0.png', 1355008534: '1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858585_0.jpg', 1355008533: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858562_0.jpg', 1355008532: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858557_0.jpg', 1355008521: '1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858644_0.png', 1355008517: '1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858645_0.png', 1355008469: '1746065292_1666524_1355008282_259dd6e4d84d200d3889958b7b0a4bed_rle_crop_3777858038_0.png', 1355008468: '1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858027_0.png', 1355008467: '1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858026_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/66e6762beba81e93bd4ba25d343a08d1_94889512.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/be6078bca9ed7a408a19d77dd1d79f00_14180656.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f589058c201951f519a25223d828cdf2_13587020.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/89afa4187fefcb2b859271993f0e9137_73311505.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6f11c54ab66bd7b86acd97d524ef8ea2_85143306.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/0e5f522ac014a3e769ee88f2e719455e_21571652.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/237f0b3eb086834569e9726dc700e1b5_86200403.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/3dda95f744bdbfbd19eb5fe905ad3cb2_14163478.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/2fa45b71dcc45c737c61067e0bb6fdc1_47889900.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/1ea7fd3090df8b6e754005f5e44fdec9_4013120.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/45f47a23f897c9624421deb83959beff_81657484.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/a31c7fa9658245b604d349df017d6c05_92489354.png change filename to text .wget -O 13.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9172c9cc0be935d4834800069d982aae_18183145.jpg change filename to text .wget -O 14.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c14e1c94e94b7ff373de78589b7c7ba5_43190683.jpg change filename to text .wget -O 15.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/0af23f4b310bb262f0e789efb17a3247_17018699.jpg change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/45e1675c39182393ed61c0fa32602d57_84826853.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/524cece4ed881d250c917e420aa08dd2_45536838.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/2baa7c1ea395ed7d28324142836d615e_80889533.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/6eef7189edd593f127905c8bbb22dbd1_49008013.png change filename to text .imagette225791071746079265/ imagette225791071746079265/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859310_0.png.png imagette225791071746079265/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859317_0.png.png imagette225791071746079265/1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859517_0.png.png imagette225791071746079265/1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859370_0.png.png imagette225791071746079265/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858557_0.jpg.jpg imagette225791071746079265/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858562_0.jpg.jpg imagette225791071746079265/1746065352_1667203_1355008241_ec368de8601f604c8b20d63e82b73355_bib_crop_3777858585_0.jpg.jpg imagette225791071746079265/1746065470_1668449_1355008484_4a4089bc28b7587727973044533b8545_rle_crop_3777859234_0.png.png imagette225791071746079265/1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857971_0.png.png imagette225791071746079265/1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859706_0.png.png imagette225791071746079265/1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858634_0.png.png imagette225791071746079265/1746065292_1666524_1355008282_259dd6e4d84d200d3889958b7b0a4bed_rle_crop_3777858038_0.png.png imagette225791071746079265/1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858026_0.png.png imagette225791071746079265/1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858027_0.png.png imagette225791071746079265/1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858644_0.png.png imagette225791071746079265/1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859728_0.png.png imagette225791071746079265/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859313_0.png.png imagette225791071746079265/1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858645_0.png.png imagette225791071746079265/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859316_0.png.png imagette225791071746079265/1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859336_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/1c42c3d51219cc6b74be6d63cdfd1d1b_26507362.png imagette225791071746079265 22579112 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579112 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008631: '1746065470_1668449_1355008480_9f96614bb4d1be26cb4bcb0cc3d3c309_rle_crop_3777859270_0.png', 1355009557: '1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859730_0.png', 1355008647: '1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859372_0.png', 1355008646: '1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859354_0.png', 1355008645: '1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859338_0.png', 1355008644: '1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859256_0.png', 1355008643: '1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859252_0.png', 1355008642: '1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859253_0.png', 1355008632: '1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859314_0.png', 1355008438: '1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857763_0.png', 1355008630: '1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859240_0.png', 1355008546: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858554_0.jpg', 1355008531: '1746065366_3188761_1355008379_00e50977b389a39107eb7eaef4f0d499_rle_crop_3777858698_0.png', 1355008530: '1746065366_3188761_1355008381_48e65173e8e073573db99266cc9291e5_rle_crop_3777858689_0.png', 1355008529: '1746065366_3188761_1355008381_48e65173e8e073573db99266cc9291e5_rle_crop_3777858687_0.png', 1355008528: '1746065366_3188761_1355008385_6c6c08ae00b9955ae7817330bb82f3fe_rle_crop_3777858679_0.png', 1355008477: '1746065292_1666524_1355008302_0956d8e99240fefef28c35f439db6338_rle_crop_3777857988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/82a63e04f3a93f5e7862fe4fcc05379a_17683882.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9078631389ab9dae7983981f5bd312a4_88481172.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/b78da09b0ff95a6440cde2414a04679f_34954985.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d1f462aa7f5401b32da29a22a19ca5df_98455500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/a72e149ced0745a78166ba49519147eb_46521112.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7e69b584c80699c27b0749025f50a80f_52644219.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/15658ba6308f8f46f944335cb4806c45_13687723.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/699429dd6c26aef60be78d70ec3ad417_59979426.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c3019ab35843d4c2005f0992c1fb54dc_92085834.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7df9d03f39511d9795ab780fbcde2a2e_7710584.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/413185015cd474cd2a220107b088b004_78586381.png change filename to text .wget -O 12.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/c031d205a99f50b97961d5726f5c984d_47696240.jpg change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e57954b58f42781dd5efa045e7276afe_83983932.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/00c2464dffdd0f473d9d61b449b462b9_51772062.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/e5253665f0b982ba2e830b8e6cb630f4_9648480.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/8f3168a6c37283d4b30a0a5283914f88_57622953.png change filename to text .imagette225791121746079266/ imagette225791121746079266/1746065485_3193126_1355008444_a742bdff4ff403b266a2d8b9d83a11e2_rle_crop_3777859372_0.png.png imagette225791121746079266/1746065485_3193126_1355008445_6cc35096df7a976ff150b68338d56caf_rle_crop_3777859354_0.png.png imagette225791121746079266/1746065245_3186158_1355008352_f2b1710d49dbd4aa7b1a7243f5d86280_rle_crop_3777857763_0.png.png imagette225791121746079266/1746065366_3188761_1355008385_6c6c08ae00b9955ae7817330bb82f3fe_rle_crop_3777858679_0.png.png imagette225791121746079266/1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859252_0.png.png imagette225791121746079266/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858554_0.jpg.jpg imagette225791121746079266/1746067536_860568_1355008409_a92e391c5f1a058be37c2c260ed7d8e8_rle_crop_3777859730_0.png.png imagette225791121746079266/1746065292_1666524_1355008302_0956d8e99240fefef28c35f439db6338_rle_crop_3777857988_0.png.png imagette225791121746079266/1746065470_1668449_1355008481_c2fc4e63a8e9ff7b79dc21a55fe84809_rle_crop_3777859240_0.png.png imagette225791121746079266/1746065470_1668449_1355008479_2472d71d9ba1c98cacaebed377b8717c_rle_crop_3777859314_0.png.png imagette225791121746079266/1746065366_3188761_1355008379_00e50977b389a39107eb7eaef4f0d499_rle_crop_3777858698_0.png.png imagette225791121746079266/1746065366_3188761_1355008381_48e65173e8e073573db99266cc9291e5_rle_crop_3777858689_0.png.png imagette225791121746079266/1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859253_0.png.png imagette225791121746079266/1746065366_3188761_1355008381_48e65173e8e073573db99266cc9291e5_rle_crop_3777858687_0.png.png imagette225791121746079266/1746065485_3193126_1355008446_79158455bd115c40af0fa9c0ab28fe68_rle_crop_3777859338_0.png.png imagette225791121746079266/1746065470_1668449_1355008480_9f96614bb4d1be26cb4bcb0cc3d3c309_rle_crop_3777859270_0.png.png imagette225791121746079266/1746065485_3193126_1355008490_05174b70565f6b4cc005c77650247733_rle_crop_3777859256_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/4259860df3bc099d594059f18bc61455_22630470.png imagette225791121746079266 22579113 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579113 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355008434: '1746065245_3186158_1355008349_2b3532c08c939b7db7d7865c9a3b230f_rle_crop_3777857792_0.png', 1355008473: '1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857966_0.png', 1355008474: '1746065292_1666524_1355008302_0956d8e99240fefef28c35f439db6338_rle_crop_3777857979_0.png', 1355008475: '1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858022_0.png', 1355008525: '1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858641_0.png', 1355008543: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858549_0.jpg', 1355008544: '1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858547_0.jpg', 1355008545: '1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858636_0.png', 1355008639: '1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859286_0.png', 1355008692: '1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859510_0.png', 1355009551: '1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859698_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/96c66440bffd6e1f7836704cb67a0682_87392660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/684ee5852543bd2425edf6bbc3286aba_10635121.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/ce088fbe655ab6e10bafaa3f23e2508d_43330128.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/093a190a4eeb42699cf43a7c4eff0f25_94352383.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/96a15e24f2e4348c9da1bb1414493bcb_38059910.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f58f301be887ecdd992cb5f2e736b6c3_94471910.jpg change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/f03add77dc2ecbedc0307efbf61a1e29_55237906.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/d5a1a179be7fdff9471efdd18406fa64_7372301.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/b6ddc026e5708a35f52089b2a371c130_55479870.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/48885dee8503b239d2bf675b631a2863_90724339.png change filename to text .imagette225791131746079267/ imagette225791131746079267/1746065485_3193126_1355008449_9000747dfb2cd17f2214b694629fbb20_rle_crop_3777859286_0.png.png imagette225791131746079267/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858549_0.jpg.jpg imagette225791131746079267/1746067536_860568_1355008451_2d2f20bef30f4c175653078bdb1c429c_rle_crop_3777859698_0.png.png imagette225791131746079267/1746065352_1667203_1355008228_c6425eb1d6b62f37cadfd8f026d2d63c_rle_crop_3777858636_0.png.png imagette225791131746079267/1746065352_1667203_1355008305_d92c2b40a3a1080c446941f74c6ecd51_bib_crop_3777858547_0.jpg.jpg imagette225791131746079267/1746065292_1666524_1355008302_0956d8e99240fefef28c35f439db6338_rle_crop_3777857979_0.png.png imagette225791131746079267/1746065245_3186158_1355008349_2b3532c08c939b7db7d7865c9a3b230f_rle_crop_3777857792_0.png.png imagette225791131746079267/1746065592_1669665_1355008397_f08dad5f17a803acfabc02b92e46aaf4_rle_crop_3777859510_0.png.png imagette225791131746079267/1746065366_3188761_1355008393_cb796770798c7c29c9ed2f6dab88dbfd_rle_crop_3777858641_0.png.png imagette225791131746079267/1746065292_1666524_1355008325_184bc2d769cbd171060f039b839ba92e_rle_crop_3777857966_0.png.png imagette225791131746079267/1746065292_1666524_1355008297_57e4a2bf162312d2219ab30f09e61193_rle_crop_3777858022_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/7c01d22ad4133683978e4be22c7fecde_61797583.png imagette225791131746079267 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22579061 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22579116,22579117,22579118,22579119,22579120,22579121,22579122,22579123,22579124,22579125,22579126,22579127?tags=papier,metal,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe,flou,plastique,Carton_brun,Carton_gris,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1355022564] : ('0.06758448316739953',) no score found for photo 1355022564 We are sending mail with results at report@fotonower.com refus_total : 0.06758448316739953 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579061 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_P22579061_01-05-2025_08_00_59.pdf results_Auto_P22579061_01-05-2025_08_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22579061_01-05-2025_08_00_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','22579061','results_Auto_P22579061_01-05-2025_08_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22579061_01-05-2025_08_00_59.pdf','pdf','','0.31','0.06758448316739953') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22579061]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355022564] map_info['map_portfolio_photo'] : {22579061: [1355022564, 1355008729, 1355008547, 1355008490, 1355008487, 1355008484, 1355008481, 1355008480, 1355008479, 1355008451, 1355008449, 1355008447, 1355008446, 1355008445, 1355008444, 1355008414, 1355008412, 1355008411, 1355008409, 1355008397, 1355008393, 1355008388, 1355008385, 1355008381, 1355008379, 1355008356, 1355008354, 1355008352, 1355008351, 1355008349, 1355008325, 1355008324, 1355008323, 1355008305, 1355008302, 1355008299, 1355008297, 1355008282, 1355008246, 1355008244, 1355008241, 1355008238, 1355008228, 1355008226, 1355008166, 1355008162, 1355008159]} final : False mtd_id 4302 list_pids : [1355022564] 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, '2777836') ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22579061', '1355022564', None, None, None, None, None, '2777836')] time used for this insertion : 0.027834653854370117 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.172491788864136 time spend to save output : 0.028023242950439453 total time spend for step 4 : 10.200515031814575 step5:split_time_score Thu May 1 08:01:09 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22579061'] 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 : [('22579061',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22579061) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355022564: {'path': 'temp/1746079259_1311296_1355022564_c0966bd74dfe4471d6993a32dca85395.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 = 22579061; (('arc_en_ciel_jrm',), ('arc_en_ciel_jrm_bis',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22579061 group by h (('04', 47),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22579061 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 (22579061) 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 (22579061) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01052025 22579061 Nombre de photos uploadées : 47 / 23040 (0%) 01052025 22579061 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 01052025 22579061 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1355008166, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/2e58ca7d48817b29848335ab7e9e2584.jpg', 'username': None, 'uploaded_at': 1746064867, 'text': 'image_01052025_04_00_14_010195m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355008162, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/9a99a0d820fe9ab0a9c11cfeff65aa5c.jpg', 'username': None, 'uploaded_at': 1746064867, 'text': 'image_01052025_04_00_34_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355008159, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/65f1492e46ee5edf86daaa8836bb6bc9.jpg', 'username': None, 'uploaded_at': 1746064867, 'text': 'image_01052025_04_00_44_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355008246, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/1/b2baf0d413c0274ebd461fef6051ee83.jpg', 'username': None, 'uploaded_at': 1746064928, 'text': 'image_01052025_04_00_54_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023822784423828125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22579061, '2025-05-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1761690,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023211956024169922 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= 1761690 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22572496, 'dashboard_result_id': 10223069, '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_P22572496_01-05-2025_00_17_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22572521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22572522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22572523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22572524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22572525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22572526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22572527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22572528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22572529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22572530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22572531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22572532, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22573115, 'dashboard_result_id': 10223070, '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_P22573115_01-05-2025_00_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573130, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22573326, 'dashboard_result_id': 10223071, '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_P22573326_01-05-2025_00_46_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573368, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22573742, 'dashboard_result_id': 10223072, '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_P22573742_01-05-2025_01_04_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573788, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22574433, 'dashboard_result_id': 10223073, '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_P22574433_01-05-2025_01_47_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22574445, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22574815, 'dashboard_result_id': 10223074, '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_P22574815_01-05-2025_02_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22574820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574831, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22575317, 'dashboard_result_id': 10223075, '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_P22575317_01-05-2025_02_17_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22575320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575331, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22575738, 'dashboard_result_id': 10223076, '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_P22575738_01-05-2025_02_37_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22575771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575774, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22576269, 'dashboard_result_id': 10223077, '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_P22576269_01-05-2025_02_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22576298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576309, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22576604, 'dashboard_result_id': 10223078, '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_P22576604_01-05-2025_03_06_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22577091, 'dashboard_result_id': 10223079, '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_P22577091_01-05-2025_03_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22577585, 'dashboard_result_id': 10223080, '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_P22577585_01-05-2025_03_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22578157, 'dashboard_result_id': 10223081, '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_P22578157_01-05-2025_03_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22578558, 'dashboard_result_id': 10223082, '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_P22578558_01-05-2025_04_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22578583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578594, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22579061, 'dashboard_result_id': 10223083, '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_P22579061_01-05-2025_04_05_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22579104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22579105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22579106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22579107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22579108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22579109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22579110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22579111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22579112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22579113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22579114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22579115, 'pht': 3726}}"}, {'dashboat_entry_day': 1761690, 'dashboard_run_id': 1770124, 'mtr_portfolio_id': 22580144, 'dashboard_result_id': 10223084, '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_P22580144_01-05-2025_07_29_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22580145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22580146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22580147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22580148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22580149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22580150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22580151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22580152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22580153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22580154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22580155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22580156, '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 = 22572496 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': 2777822, 'mtr_portfolio_id': 22572496, 'created_at': datetime.datetime(2025, 5, 1, 5, 55, 28), 'result': '0.052544873662676746', 'result_long': None, 'result_double': None}] Qualite : 0.052544873662676746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22572496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22572496_01-05-2025_05_55_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22572496 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_P22572496_01-05-2025_05_55_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22572521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22572522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22572523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22572524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22572525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22572526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22572527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22572528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22572529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22572530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22572531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22572532, 'pht': 3726}}" where mtr_portfolio_id = 22572496 and dashboard_run_id = 1770128 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`=22572496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223069, 0.052544873662676746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22572496_01-05-2025_05_55_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22572521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22572522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22572523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22572524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22572525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22572526, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22572527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22572528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22572529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22572530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22572531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22572532, '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 = 22573115 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': 2777823, 'mtr_portfolio_id': 22573115, 'created_at': datetime.datetime(2025, 5, 1, 5, 55, 37), 'result': '0.05769142020908942', 'result_long': None, 'result_double': None}] Qualite : 0.05769142020908942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22573115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573115_01-05-2025_05_55_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22573115 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_P22573115_01-05-2025_05_55_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573130, 'pht': 3726}}" where mtr_portfolio_id = 22573115 and dashboard_run_id = 1770128 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`=22573115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223070, 0.05769142020908942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573115_01-05-2025_05_55_39.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573122, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573124, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573126, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573129, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573130, '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 = 22573326 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': 2777824, 'mtr_portfolio_id': 22573326, 'created_at': datetime.datetime(2025, 5, 1, 5, 55, 57), 'result': '0.047550045198540496', 'result_long': None, 'result_double': None}] Qualite : 0.047550045198540496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22573326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573326_01-05-2025_05_56_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22573326 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_P22573326_01-05-2025_05_56_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573368, 'pht': 3726}}" where mtr_portfolio_id = 22573326 and dashboard_run_id = 1770128 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`=22573326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223071, 0.047550045198540496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573326_01-05-2025_05_56_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573357, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573365, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573368, '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 = 22573742 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': 2777825, 'mtr_portfolio_id': 22573742, 'created_at': datetime.datetime(2025, 5, 1, 5, 56, 26), 'result': '0.06073805152869727', 'result_long': None, 'result_double': None}] Qualite : 0.06073805152869727 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22573742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573742_01-05-2025_05_56_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22573742 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_P22573742_01-05-2025_05_56_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573788, 'pht': 3726}}" where mtr_portfolio_id = 22573742 and dashboard_run_id = 1770128 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`=22573742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223072, 0.06073805152869727, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22573742_01-05-2025_05_56_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22573777, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22573778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22573779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22573780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22573781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22573782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22573783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22573784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22573785, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22573786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22573787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22573788, '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 = 22574433 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': 2777826, 'mtr_portfolio_id': 22574433, 'created_at': datetime.datetime(2025, 5, 1, 5, 57, 31), 'result': '0.05035616406925757', 'result_long': None, 'result_double': None}] Qualite : 0.05035616406925757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22574433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22574433_01-05-2025_05_57_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22574433 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_P22574433_01-05-2025_05_57_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22574445, 'pht': 3726}}" where mtr_portfolio_id = 22574433 and dashboard_run_id = 1770128 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`=22574433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223073, 0.05035616406925757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22574433_01-05-2025_05_57_36.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574436, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574437, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574439, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22574445, '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 = 22574815 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': 2777827, 'mtr_portfolio_id': 22574815, 'created_at': datetime.datetime(2025, 5, 1, 5, 57, 30), 'result': '0.04622950066206167', 'result_long': None, 'result_double': None}] Qualite : 0.04622950066206167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22574815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22574815_01-05-2025_05_57_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22574815 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_P22574815_01-05-2025_05_57_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22574820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574831, 'pht': 3726}}" where mtr_portfolio_id = 22574815 and dashboard_run_id = 1770128 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`=22574815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223074, 0.04622950066206167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22574815_01-05-2025_05_57_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22574820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22574821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22574822, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22574823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22574824, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22574825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22574826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22574827, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22574828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22574829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22574830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22574831, '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 = 22575317 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': 2777828, 'mtr_portfolio_id': 22575317, 'created_at': datetime.datetime(2025, 5, 1, 5, 57, 59), 'result': '0.04961559365211228', 'result_long': None, 'result_double': None}] Qualite : 0.04961559365211228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22575317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22575317_01-05-2025_05_58_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22575317 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_P22575317_01-05-2025_05_58_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22575320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575331, 'pht': 3726}}" where mtr_portfolio_id = 22575317 and dashboard_run_id = 1770128 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`=22575317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223075, 0.04961559365211228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22575317_01-05-2025_05_58_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22575320, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575329, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575331, '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 = 22575738 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': 2777829, 'mtr_portfolio_id': 22575738, 'created_at': datetime.datetime(2025, 5, 1, 5, 58, 30), 'result': '0.05056277352820207', 'result_long': None, 'result_double': None}] Qualite : 0.05056277352820207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22575738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22575738_01-05-2025_05_58_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22575738 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_P22575738_01-05-2025_05_58_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22575771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575774, 'pht': 3726}}" where mtr_portfolio_id = 22575738 and dashboard_run_id = 1770128 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`=22575738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223076, 0.05056277352820207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22575738_01-05-2025_05_58_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22575763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22575764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22575765, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22575766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22575767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22575768, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22575769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22575770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22575771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22575772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22575773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22575774, '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 = 22576269 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': 2777830, 'mtr_portfolio_id': 22576269, 'created_at': datetime.datetime(2025, 5, 1, 5, 58, 58), 'result': '0.04635539824773612', 'result_long': None, 'result_double': None}] Qualite : 0.04635539824773612 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22576269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576269_01-05-2025_05_59_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22576269 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_P22576269_01-05-2025_05_59_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22576298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576309, 'pht': 3726}}" where mtr_portfolio_id = 22576269 and dashboard_run_id = 1770128 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`=22576269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223077, 0.04635539824773612, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576269_01-05-2025_05_59_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22576298, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576301, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576307, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576309, '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 = 22576604 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': 2777831, 'mtr_portfolio_id': 22576604, 'created_at': datetime.datetime(2025, 5, 1, 5, 59, 29), 'result': '0.04477733004117593', 'result_long': None, 'result_double': None}] Qualite : 0.04477733004117593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22576604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576604_01-05-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22576604 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_P22576604_01-05-2025_05_59_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, 'pht': 3726}}" where mtr_portfolio_id = 22576604 and dashboard_run_id = 1770128 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`=22576604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223078, 0.04477733004117593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22576604_01-05-2025_05_59_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22576605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22576606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22576607, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22576608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22576609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22576610, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22576611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22576612, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22576613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22576614, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22576615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22576616, '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 = 22577091 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': 2777832, 'mtr_portfolio_id': 22577091, 'created_at': datetime.datetime(2025, 5, 1, 5, 59, 59), 'result': '0.054421362010080375', 'result_long': None, 'result_double': None}] Qualite : 0.054421362010080375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22577091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577091_01-05-2025_06_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22577091 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_P22577091_01-05-2025_06_00_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, 'pht': 3726}}" where mtr_portfolio_id = 22577091 and dashboard_run_id = 1770128 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`=22577091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223079, 0.054421362010080375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577091_01-05-2025_06_00_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577103, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577104, '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 = 22577585 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': 2777833, 'mtr_portfolio_id': 22577585, 'created_at': datetime.datetime(2025, 5, 1, 6, 0, 31), 'result': '0.0633470987693748', 'result_long': None, 'result_double': None}] Qualite : 0.0633470987693748 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22577585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577585_01-05-2025_06_00_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22577585 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_P22577585_01-05-2025_06_00_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, 'pht': 3726}}" where mtr_portfolio_id = 22577585 and dashboard_run_id = 1770128 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`=22577585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223080, 0.0633470987693748, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22577585_01-05-2025_06_00_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22577646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22577647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22577648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22577649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22577650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22577651, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22577652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22577653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22577654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22577655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22577656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22577657, '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 = 22578157 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': 2777834, 'mtr_portfolio_id': 22578157, 'created_at': datetime.datetime(2025, 5, 1, 6, 0, 37), 'result': '0.04434206575192698', 'result_long': None, 'result_double': None}] Qualite : 0.04434206575192698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22578157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_06_00_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22578157 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_P22578157_01-05-2025_06_00_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, 'pht': 3726}}" where mtr_portfolio_id = 22578157 and dashboard_run_id = 1770128 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`=22578157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223081, 0.04434206575192698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578157_01-05-2025_06_00_41.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578163, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22578168, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578169, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578172, '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 = 22578558 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': 2777835, 'mtr_portfolio_id': 22578558, 'created_at': datetime.datetime(2025, 5, 1, 6, 0, 58), 'result': '0.038553139910044325', 'result_long': None, 'result_double': None}] Qualite : 0.038553139910044325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22578558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578558_01-05-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22578558 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_P22578558_01-05-2025_06_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22578583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578594, 'pht': 3726}}" where mtr_portfolio_id = 22578558 and dashboard_run_id = 1770128 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`=22578558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223082, 0.038553139910044325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22578558_01-05-2025_06_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22578583, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22578584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22578585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22578586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22578587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22578588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22578589, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22578590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22578591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22578592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22578593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22578594, '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 = 22579061 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': 2777836, 'mtr_portfolio_id': 22579061, 'created_at': datetime.datetime(2025, 5, 1, 8, 0, 59), 'result': '0.06758448316739953', 'result_long': None, 'result_double': None}] Qualite : 0.06758448316739953 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22579061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22579061_01-05-2025_08_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22579061 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_P22579061_01-05-2025_08_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22579104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22579105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22579106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22579107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22579108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22579109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22579110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22579111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22579112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22579113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22579114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22579115, 'pht': 3726}}" where mtr_portfolio_id = 22579061 and dashboard_run_id = 1770128 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`=22579061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10223083, 0.06758448316739953, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22579061_01-05-2025_08_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22579104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22579105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22579106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22579107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22579108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22579109, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22579110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22579111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22579112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22579113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22579114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22579115, '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 = 22580144 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22580144 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22580144 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22580144 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22580144 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22580144 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22580144_01-05-2025_07_29_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22580144 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_P22580144_01-05-2025_07_29_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22580145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22580146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22580147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22580148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22580149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22580150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22580151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22580152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22580153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22580154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22580155, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22580156, 'pht': 3726}}" where mtr_portfolio_id = 22580144 and dashboard_run_id = 1770127 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22572496,22573115,22573326,22573742,22574433,22574815,22575317,22575738,22576269,22576604,22577091,22577585,22578157,22578558,22579061,22580144) result : ((1354980190,), (1354980201,), (1354981457,), (1354981462,), (1354981467,), (1354981472,), (1354981479,), (1354981488,), (1354981832,), (1354981837,), (1354981871,), (1354981875,), (1354981880,), (1354981990,), (1354981992,), (1354982036,), (1354982069,), (1354982276,), (1354982280,), (1354982285,), (1354982288,), (1354982427,), (1354982484,), (1354982493,), (1354982557,), (1354982561,), (1354982564,), (1354982603,), (1354982606,), (1354982608,), (1354982648,), (1354982652,), (1354982656,), (1354982660,), (1354982714,), (1354982766,), (1354982769,), (1354982773,), (1354982776,), (1354982807,), (1354982809,), (1354982812,), (1354982815,), (1354982851,), (1354982857,), (1354982860,), (1354982865,), (1354982898,), (1354982903,), (1354982907,), (1354982955,), (1354982950,), (1354982994,), (1354982997,), (1354983000,), (1354983005,), (1354983008,), (1354983034,), (1354983038,), (1354983040,), (1354983042,), (1354983045,), (1354983250,), (1354983254,), (1354983258,), (1354983288,), (1354983294,), (1354983328,), (1354983331,), (1354983335,), (1354983339,), (1354983378,), (1354983382,), (1354983387,), (1354983392,), (1354983416,), (1354983421,), (1354983460,), (1354983462,), (1354983464,), (1354983467,), (1354983493,), (1354983498,), (1354983501,), (1354983507,), (1354983532,), (1354983538,), (1354983542,), (1354983547,), (1354983555,), (1354983600,), (1354983595,), (1354983598,), (1354983680,), (1354983685,), (1354983689,), (1354983693,), (1354983697,), (1354983734,), (1354983780,), (1354983785,), (1354983789,), (1354983796,), (1354983802,), (1354983834,), (1354983841,), (1354984046,), (1354984075,), (1354984098,), (1354984126,), (1354984426,), (1354984457,), (1354984808,), (1354984836,), (1354985049,), (1354985071,), (1354985102,), (1354985131,), (1354985339,), (1354985342,), (1354985350,), (1354985356,), (1354985394,), (1354985397,), (1354985400,), (1354985419,), (1354985421,), (1354985425,), (1354985430,), (1354985436,), (1354985458,), (1354985467,), (1354985472,), (1354985501,), (1354985506,), (1354985511,), (1354985516,), (1354985550,), (1354985541,), (1354985546,), (1354985591,), (1354985596,), (1354985601,), (1354985606,), (1354985612,), (1354985647,), (1354985649,), (1354985651,), (1354985653,), (1354985666,), (1354985669,), (1354985673,), (1354985742,), (1354985745,), (1354985747,), (1354985750,), (1354985755,), (1354985759,), (1354985767,), (1354985768,), (1354985769,), (1354985772,), (1354985775,), (1354985779,), (1354985782,), (1354985786,), (1354985801,), (1354985810,), (1354985812,), (1354985817,), (1354985833,), (1354985836,), (1354985839,), (1354985843,), (1354985861,), (1354985864,), (1354985867,), (1354985869,), (1354985874,), (1354985879,), (1354985895,), (1354985898,), (1354985900,), (1354985904,), (1354985908,), (1354985935,), (1354985938,), (1354985941,), (1354985945,), (1354985978,), (1354985986,), (1354986010,), (1354986015,), (1354986019,), (1354986023,), (1354986070,), (1354988621,), (1354988623,), (1354988624,), (1354988647,), (1354988648,), (1354988649,), (1354988651,), (1354988654,), (1354988676,), (1354988699,), (1354988702,), (1354988704,), (1354988756,), (1354988783,), (1354988814,), (1354988838,), (1354989111,), (1354989134,), (1354989135,), (1354989177,), (1354989178,), (1354989179,), (1354989180,), (1354989196,), (1354989198,), (1354989199,), (1354989202,), (1354989206,), (1354989229,), (1354989231,), (1354989233,), (1354989236,), (1354989263,), (1354989265,), (1354989288,), (1354989289,), (1354989290,), (1354989291,), (1354989293,), (1354989312,), (1354989315,), (1354989317,), (1354989323,), (1354989326,), (1354989361,), (1354989362,), (1354989396,), (1354989397,), (1354989398,), (1354989401,), (1354989431,), (1354989455,), (1354989457,), (1354989459,), (1354989501,), (1354989502,), (1354989503,), (1354989504,), (1354989506,), (1354989525,), (1354989526,), (1354989527,), (1354989569,), (1354989570,), (1354989571,), (1354989573,), (1354989607,), (1354989608,), (1354989609,), (1354989611,), (1354989614,), (1354989651,), (1354989652,), (1354989653,), (1354989675,), (1354989677,), (1354989678,), (1354989705,), (1354989706,), (1354989736,), (1354989737,), (1354989738,), (1354989740,), (1354989762,), (1354989764,), (1354989766,), (1354989770,), (1354989812,), (1354989813,), (1354989814,), (1354989847,), (1354989850,), (1354989852,), (1354989854,), (1354989857,), (1354989859,), (1354989882,), (1354989886,), (1354989891,), (1354989895,), (1354989930,), (1354989973,), (1354989997,), (1354990025,), (1354990057,), (1354990107,), (1354990649,), (1354990698,), (1354990752,), (1354990803,), (1354990861,), (1354991360,), (1354991413,), (1354991468,), (1354991520,), (1354991574,), (1354991635,), (1354992060,), (1354992102,), (1354992131,), (1354992162,), (1354992193,), (1354992221,), (1354992412,), (1354992415,), (1354992890,), (1354993088,), (1354993129,), (1354993159,), (1354993203,), (1354993512,), (1354993540,), (1354993548,), (1354993578,), (1354993614,), (1354993719,), (1354993720,), (1354993721,), (1354993795,), (1354993799,), (1354993800,), (1354993806,), (1354993920,), (1354993921,), (1354993922,), (1354994021,), (1354994022,), (1354994040,), (1354994041,), (1354994042,), (1354994044,), (1354994067,), (1354994068,), (1354994069,), (1354994072,), (1354994117,), (1354994126,), (1354994132,), (1354994134,), (1354994193,), (1354994190,), (1354994192,), (1354994222,), (1354994224,), (1354994225,), (1354994257,), (1354994263,), (1354994268,), (1354994281,), (1354994318,), (1354994319,), (1354994320,), (1354994322,), (1354994324,), (1354994358,), (1354994359,), (1354994397,), (1354994398,), (1354994399,), (1354994425,), (1354994426,), (1354994427,), (1354994428,), (1354994429,), (1354994452,), (1354994455,), (1354994458,), (1354994473,), (1354994477,), (1354994487,), (1354994489,), (1354994516,), (1354994517,), (1354994518,), (1354994520,), (1354994522,), (1354994547,), (1354994554,), (1354994560,), (1354994576,), (1354994620,), (1354994621,), (1354994622,), (1354994624,), (1354994651,), (1354994654,), (1354994656,), (1354994714,), (1354994717,), (1354994742,), (1354994744,), (1354994747,), (1354994751,), (1354994755,), (1354994796,), (1354994788,), (1354994791,), (1354994793,), (1354994829,), (1354994832,), (1354994834,), (1354994836,), (1354994854,), (1354994898,), (1354994900,), (1354994928,), (1354994931,), (1354994932,), (1354994935,), (1354994939,), (1354994942,), (1354994963,), (1354994964,), (1354994965,), (1354994968,), (1354994971,), (1354994974,), (1354995145,), (1354995199,), (1354995205,), (1354995213,), (1354995242,), (1354995243,), (1354995244,), (1354995249,), (1354995286,), (1354995287,), (1354995288,), (1354995290,), (1354995293,), (1354995318,), (1354995319,), (1354995320,), (1354995357,), (1354995359,), (1354995361,), (1354995403,), (1354995404,), (1354995405,), (1354995406,), (1354995407,), (1354995409,), (1354995429,), (1354995432,), (1354995433,), (1354995434,), (1354995436,), (1354995466,), (1354995468,), (1354995469,), (1354995471,), (1354995506,), (1354995509,), (1354995510,), (1354995512,), (1354995514,), (1354995517,), (1354995540,), (1354995538,), (1354995571,), (1354995573,), (1354995576,), (1354995579,), (1354995583,), (1354995586,), (1354995601,), (1354995611,), (1354995613,), (1354995615,), (1354995618,), (1354995666,), (1354995668,), (1354995671,), (1354995674,), (1354995677,), (1354995696,), (1354995698,), (1354995699,), (1354995701,), (1354995731,), (1354995732,), (1354995733,), (1354995735,), (1354995738,), (1354995740,), (1354995759,), (1354995761,), (1354995762,), (1354995763,), (1354995789,), (1354995824,), (1354995825,), (1354995826,), (1354995828,), (1354995856,), (1354995858,), (1354995936,), (1354996455,), (1354997265,), (1354996566,), (1354997055,), (1354998943,), (1354998970,), (1354999812,), (1355000029,), (1355000215,), (1355000290,), (1355000864,), (1355000937,), (1355001006,), (1355001788,), (1355001843,), (1355001916,), (1355001973,), (1355002032,), (1355002061,), (1355002340,), (1355002368,), (1355002394,), (1355002433,), (1355002458,), (1355002484,), (1355002628,), (1355002630,), (1355002632,), (1355002634,), (1355002636,), (1355002691,), (1355002720,), (1355002745,), (1355003681,), (1355004019,), (1355004111,), (1355004219,), (1355004335,), (1355004447,), (1355004590,), (1355004606,), (1355004611,), (1355004613,), (1355004976,), (1355004985,), (1355004987,), (1355004990,), (1355004994,), (1355004997,), (1355005031,), (1355005033,), (1355005063,), (1355005064,), (1355005065,), (1355005067,), (1355005069,), (1355005073,), (1355005110,), (1355005094,), (1355005095,), (1355005101,), (1355005106,), (1355005133,), (1355005136,), (1355005137,), (1355005138,), (1355005140,), (1355005174,), (1355005177,), (1355005178,), (1355005179,), (1355005181,), (1355005219,), (1355005221,), (1355005222,), (1355005224,), (1355005227,), (1355005264,), (1355005268,), (1355005270,), (1355005272,), (1355005275,), (1355005278,), (1355005316,), (1355005318,), (1355005319,), (1355005359,), (1355005360,), (1355005385,), (1355005386,), (1355005387,), (1355005389,), (1355005430,), (1355005431,), (1355005432,), (1355005433,), (1355005435,), (1355005463,), (1355005464,), (1355005465,), (1355005467,), (1355005505,), (1355005507,), (1355005508,), (1355005510,), (1355005513,), (1355005547,), (1355005549,), (1355005552,), (1355005556,), (1355005559,), (1355005562,), (1355005587,), (1355005588,), (1355005590,), (1355005592,), (1355005619,), (1355005620,), (1355005621,), (1355005623,), (1355005626,), (1355005629,), (1355005667,), (1355005669,), (1355005670,), (1355005672,), (1355005730,), (1355005729,), (1355005776,), (1355005777,), (1355005778,), (1355005779,), (1355005781,), (1355005783,), (1355005808,), (1355005809,), (1355005811,), (1355005846,), (1355005849,), (1355005851,), (1355005876,), (1355005877,), (1355005878,), (1355005880,), (1355005883,), (1355005885,), (1355005911,), (1355005913,), (1355005915,), (1355005917,), (1355005920,), (1355005923,), (1355005953,), (1355005954,), (1355005955,), (1355005957,), (1355005990,), (1355005996,), (1355006015,), (1355006017,), (1355006019,), (1355006021,), (1355006053,), (1355006055,), (1355006056,), (1355006159,), (1355006162,), (1355006165,), (1355006169,), (1355006173,), (1355006175,), (1355006204,), (1355006206,), (1355006208,), (1355006228,), (1355006233,), (1355006237,), (1355006241,), (1355006259,), (1355006262,), (1355006264,), (1355006267,), (1355006291,), (1355006318,), (1355006320,), (1355006323,), (1355006326,), (1355006359,), (1355006355,), (1355006357,), (1355006398,), (1355006399,), (1355006400,), (1355006427,), (1355006430,), (1355006462,), (1355006465,), (1355006466,), (1355006499,), (1355006502,), (1355006506,), (1355006509,), (1355006513,), (1355006515,), (1355006563,), (1355006565,), (1355006567,), (1355006570,), (1355006593,), (1355006596,), (1355006598,), (1355006599,), (1355006602,), (1355006604,), (1355006625,), (1355006626,), (1355006627,), (1355006629,), (1355006632,), (1355006634,), (1355006657,), (1355006658,), (1355006659,), (1355006661,), (1355006682,), (1355006684,), (1355006687,), (1355006708,), (1355006710,), (1355006713,), (1355006715,), (1355006875,), (1355006902,), (1355006932,), (1355006962,), (1355006988,), (1355007178,), (1355007217,), (1355007270,), (1355007323,), (1355007854,), (1355007884,), (1355007916,), (1355008170,), (1355008159,), (1355008162,), (1355008166,), (1355008226,), (1355008228,), (1355008238,), (1355008241,), (1355008244,), (1355008246,), (1355008282,), (1355008297,), (1355008299,), (1355008302,), (1355008305,), (1355008323,), (1355008324,), (1355008325,), (1355008349,), (1355008351,), (1355008352,), (1355008354,), (1355008356,), (1355008379,), (1355008381,), (1355008385,), (1355008388,), (1355008393,), (1355008397,), (1355008409,), (1355008411,), (1355008412,), (1355008414,), (1355008444,), (1355008445,), (1355008446,), (1355008447,), (1355008449,), (1355008451,), (1355008479,), (1355008480,), (1355008481,), (1355008484,), (1355008487,), (1355008490,), (1355008547,), (1355008729,), (1355022564,), (1355022902,), (1355023286,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01052025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22579061]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355022564] map_info['map_portfolio_photo'] : {22579061: [1355022564, 1355008729, 1355008547, 1355008490, 1355008487, 1355008484, 1355008481, 1355008480, 1355008479, 1355008451, 1355008449, 1355008447, 1355008446, 1355008445, 1355008444, 1355008414, 1355008412, 1355008411, 1355008409, 1355008397, 1355008393, 1355008388, 1355008385, 1355008381, 1355008379, 1355008356, 1355008354, 1355008352, 1355008351, 1355008349, 1355008325, 1355008324, 1355008323, 1355008305, 1355008302, 1355008299, 1355008297, 1355008282, 1355008246, 1355008244, 1355008241, 1355008238, 1355008228, 1355008226, 1355008166, 1355008162, 1355008159]} final : True mtd_id 4302 list_pids : [1355022564] Looping around the photos to save general results len do output : 1 /22579061Didn'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, '2777836') ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22579061', 'None', None, None, None, None, '2777836'), ('4302', '22579061', '1355022564', None, None, None, None, None, '2777836')] time used for this insertion : 0.014156818389892578 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.461322784423828 time spend to save output : 0.01429438591003418 total time spend for step 5 : 4.475617170333862 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 (2777836) 1.96user 2.48system 0:18.32elapsed 24%CPU (0avgtext+0avgdata 157120maxresident)k 256inputs+14872outputs (3major+62732minor)pagefaults 0swaps