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 : 609807 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 (3334799) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3334799) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257228 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3334799'] with mtr_portfolio_ids : ['25257228'] and first list_photo_ids : [] new path : /proc/609807/ Name: python3 Umask: 0002 State: R (running) Tgid: 609807 Ngid: 0 Pid: 609807 PPid: 609806 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 609807 NSpid: 609807 NSpgid: 608596 NSsid: 608596 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98868 kB VmRSS: 98868 kB RssAnon: 59816 kB RssFile: 39052 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '609807', 'Ngid': '0', 'Pid': '609807', 'PPid': '609806', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '609807', 'NSpid': '609807', 'NSpgid': '608596', 'NSsid': '608596', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98868 kB', 'VmRSS': '98868 kB', 'RssAnon': '59816 kB', 'RssFile': '39052 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '609807', '1106896', '0', '1106896', '865648', '98868', b'', 'marlene', '3334799') 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 (25257228) 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 (3334799 ) ) 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 (25257228) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373461233, 'portfolio_id': 25257228}, {'photo_id': 1373461230, 'portfolio_id': 25257228}, {'photo_id': 1373461228, 'portfolio_id': 25257228}, {'photo_id': 1373461227, 'portfolio_id': 25257228}, {'photo_id': 1373461224, 'portfolio_id': 25257228}, {'photo_id': 1373461217, 'portfolio_id': 25257228}, {'photo_id': 1373461201, 'portfolio_id': 25257228}, {'photo_id': 1373461199, 'portfolio_id': 25257228}, {'photo_id': 1373461196, 'portfolio_id': 25257228}, {'photo_id': 1373461194, 'portfolio_id': 25257228}, {'photo_id': 1373461188, 'portfolio_id': 25257228}, {'photo_id': 1373461183, 'portfolio_id': 25257228}, {'photo_id': 1373461167, 'portfolio_id': 25257228}, {'photo_id': 1373461166, 'portfolio_id': 25257228}, {'photo_id': 1373461163, 'portfolio_id': 25257228}, {'photo_id': 1373461156, 'portfolio_id': 25257228}, {'photo_id': 1373461149, 'portfolio_id': 25257228}, {'photo_id': 1373461145, 'portfolio_id': 25257228}, {'photo_id': 1373461135, 'portfolio_id': 25257228}, {'photo_id': 1373461132, 'portfolio_id': 25257228}, {'photo_id': 1373461131, 'portfolio_id': 25257228}, {'photo_id': 1373461129, 'portfolio_id': 25257228}, {'photo_id': 1373461125, 'portfolio_id': 25257228}, {'photo_id': 1373461123, 'portfolio_id': 25257228}, {'photo_id': 1373461118, 'portfolio_id': 25257228}, {'photo_id': 1373461116, 'portfolio_id': 25257228}, {'photo_id': 1373461114, 'portfolio_id': 25257228}, {'photo_id': 1373461112, 'portfolio_id': 25257228}, {'photo_id': 1373461110, 'portfolio_id': 25257228}, {'photo_id': 1373461106, 'portfolio_id': 25257228}, {'photo_id': 1373461101, 'portfolio_id': 25257228}, {'photo_id': 1373461098, 'portfolio_id': 25257228}, {'photo_id': 1373461095, 'portfolio_id': 25257228}, {'photo_id': 1373461094, 'portfolio_id': 25257228}, {'photo_id': 1373461092, 'portfolio_id': 25257228}, {'photo_id': 1373461090, 'portfolio_id': 25257228}, {'photo_id': 1373461079, 'portfolio_id': 25257228}, {'photo_id': 1373461077, 'portfolio_id': 25257228}, {'photo_id': 1373461075, 'portfolio_id': 25257228}, {'photo_id': 1373461074, 'portfolio_id': 25257228}, {'photo_id': 1373461072, 'portfolio_id': 25257228}, {'photo_id': 1373461070, 'portfolio_id': 25257228}, {'photo_id': 1373461056, 'portfolio_id': 25257228}, {'photo_id': 1373461053, 'portfolio_id': 25257228}, {'photo_id': 1373461050, 'portfolio_id': 25257228}, {'photo_id': 1373461049, 'portfolio_id': 25257228}, {'photo_id': 1373461047, 'portfolio_id': 25257228}, {'photo_id': 1373461039, 'portfolio_id': 25257228}, {'photo_id': 1373461030, 'portfolio_id': 25257228}, {'photo_id': 1373461028, 'portfolio_id': 25257228}, {'photo_id': 1373461026, 'portfolio_id': 25257228}, {'photo_id': 1373461025, 'portfolio_id': 25257228}, {'photo_id': 1373461023, 'portfolio_id': 25257228}, {'photo_id': 1373461018, 'portfolio_id': 25257228}] map_portfolio_id_photo_id: {25257228: [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183, 1373461167, 1373461166, 1373461163, 1373461156, 1373461149, 1373461145, 1373461135, 1373461132, 1373461131, 1373461129, 1373461125, 1373461123, 1373461118, 1373461116, 1373461114, 1373461112, 1373461110, 1373461106, 1373461101, 1373461098, 1373461095, 1373461094, 1373461092, 1373461090, 1373461079, 1373461077, 1373461075, 1373461074, 1373461072, 1373461070, 1373461056, 1373461053, 1373461050, 1373461049, 1373461047, 1373461039, 1373461030, 1373461028, 1373461026, 1373461025, 1373461023, 1373461018]} ##### 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.014575481414794922 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 24 06:54:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25257228) 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 : 25257228 get user id for portfolio 25257228 get sub ptf for main ptf 25257228, type 3726 and hashtags ['autre_refus', 'mal_croppe', 'kraft', 'metal', 'flou', 'plastique', 'environnement', 'Teint_Dans_La_Masse', 'Carton_brun', 'cartonnette', 'papier', 'Carton_gris'] 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`=25257228 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','kraft','metal','flou','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','Carton_gris')) 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`=25257228 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','kraft','metal','flou','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25257228, 'sub_port_id': 25257232, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037846, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'papier': {'main_port_id': 25257228, 'sub_port_id': 25257233, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037847, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'Carton_gris': {'main_port_id': 25257228, 'sub_port_id': 25257234, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037848, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'plastique': {'main_port_id': 25257228, 'sub_port_id': 25257235, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037849, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'metal': {'main_port_id': 25257228, 'sub_port_id': 25257236, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037850, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'flou': {'main_port_id': 25257228, 'sub_port_id': 25257237, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037851, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'mal_croppe': {'main_port_id': 25257228, 'sub_port_id': 25257238, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037852, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'Carton_brun': {'main_port_id': 25257228, 'sub_port_id': 25257239, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037853, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'autre_refus': {'main_port_id': 25257228, 'sub_port_id': 25257240, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037854, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'kraft': {'main_port_id': 25257228, 'sub_port_id': 25257241, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037855, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 25257228, 'sub_port_id': 25257242, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037856, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}, 'cartonnette': {'main_port_id': 25257228, 'sub_port_id': 25257243, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037857, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25257232 , 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=25257228 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 (25257232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257233 , 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=25257228 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 (25257233) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257234 , 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=25257228 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 (25257234) result : ((1373461152,), (1373461189,), (1373461190,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257235 , 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=25257228 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 (25257235) result : ((1373461160,), (1373461193,), (1373461220,), (1373461221,), (1373461222,), (1373461223,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257236 , 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=25257228 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 (25257236) result : ((1373461161,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257237 , 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=25257228 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 (25257237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257238 , 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=25257228 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 (25257238) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257239 , 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=25257228 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 (25257239) result : ((1373461154,), (1373461155,), (1373461157,), (1373461158,), (1373461159,), (1373461215,), (1373461216,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257240 , 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=25257228 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 (25257240) result : ((1373461150,), (1373461151,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257241 , 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=25257228 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 (25257241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257242 , 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=25257228 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 (25257242) result : ((1373461147,), (1373461148,), (1373461184,), (1373461185,), (1373461186,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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 25257243 , 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=25257228 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 (25257243) result : ((1373461191,), (1373461192,), (1373461213,), (1373461214,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25257228) result : ((1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) 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`=25257228 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','kraft','metal','flou','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','Carton_gris')) 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`=25257228 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','mal_croppe','kraft','metal','flou','plastique','environnement','Teint_Dans_La_Masse','Carton_brun','cartonnette','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 25257228, 'sub_port_id': 25257245, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037858, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'papier': {'main_port_id': 25257228, 'sub_port_id': 25257246, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037859, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'Carton_gris': {'main_port_id': 25257228, 'sub_port_id': 25257247, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037860, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'plastique': {'main_port_id': 25257228, 'sub_port_id': 25257248, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037861, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'metal': {'main_port_id': 25257228, 'sub_port_id': 25257249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037862, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'flou': {'main_port_id': 25257228, 'sub_port_id': 25257250, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037863, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'mal_croppe': {'main_port_id': 25257228, 'sub_port_id': 25257251, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037864, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'Carton_brun': {'main_port_id': 25257228, 'sub_port_id': 25257252, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037865, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'autre_refus': {'main_port_id': 25257228, 'sub_port_id': 25257253, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037866, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'kraft': {'main_port_id': 25257228, 'sub_port_id': 25257254, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037867, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25257228, 'sub_port_id': 25257255, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037868, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 48, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}, 'cartonnette': {'main_port_id': 25257228, 'sub_port_id': 25257256, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17037869, 'last_updated_at': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 24, 6, 53, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 24, 6, 48, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25257256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25257243 lien utilise dans velours : https://www.fotonower.com/velours/25257245,25257246,25257247,25257248,25257249,25257250,25257251,25257252,25257253,25257254,25257255,25257256?tags=environnement,papier,Carton_gris,plastique,metal,flou,mal_croppe,Carton_brun,autre_refus,kraft,Teint_Dans_La_Masse,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25257228]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] map_info['map_portfolio_photo'] : {25257228: [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183, 1373461167, 1373461166, 1373461163, 1373461156, 1373461149, 1373461145, 1373461135, 1373461132, 1373461131, 1373461129, 1373461125, 1373461123, 1373461118, 1373461116, 1373461114, 1373461112, 1373461110, 1373461106, 1373461101, 1373461098, 1373461095, 1373461094, 1373461092, 1373461090, 1373461079, 1373461077, 1373461075, 1373461074, 1373461072, 1373461070, 1373461056, 1373461053, 1373461050, 1373461049, 1373461047, 1373461039, 1373461030, 1373461028, 1373461026, 1373461025, 1373461023, 1373461018]} final : False mtd_id 4302 list_pids : [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] Looping around the photos to save general results len do output : 1 /25257228. 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, '3334799') ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25257228', "{'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243}", None, None, None, None, '3334799'), ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799')] time used for this insertion : 0.017691850662231445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6925530433654785 time spend to save output : 0.01796102523803711 total time spend for step 1 : 1.7105140686035156 step2:final Thu Jul 24 06:54: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 (25257228) 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 25257228 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373461030,1373461028,1373461026,1373461025,1373461023,1373461018,1373461056,1373461053,1373461050,1373461049,1373461047,1373461039,1373461079,1373461077,1373461075,1373461074,1373461072,1373461070,1373461101,1373461098,1373461095,1373461094,1373461092,1373461090,1373461118,1373461116,1373461114,1373461112,1373461110,1373461106,1373461135,1373461132,1373461131,1373461129,1373461125,1373461123,1373461167,1373461166,1373461163,1373461156,1373461149,1373461145,1373461201,1373461199,1373461196,1373461194,1373461188,1373461183,1373461233,1373461230,1373461228,1373461227,1373461224,1373461217); 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([25257228]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} new output for save of step final : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] map_info['map_portfolio_photo'] : {25257228: [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183, 1373461167, 1373461166, 1373461163, 1373461156, 1373461149, 1373461145, 1373461135, 1373461132, 1373461131, 1373461129, 1373461125, 1373461123, 1373461118, 1373461116, 1373461114, 1373461112, 1373461110, 1373461106, 1373461101, 1373461098, 1373461095, 1373461094, 1373461092, 1373461090, 1373461079, 1373461077, 1373461075, 1373461074, 1373461072, 1373461070, 1373461056, 1373461053, 1373461050, 1373461049, 1373461047, 1373461039, 1373461030, 1373461028, 1373461026, 1373461025, 1373461023, 1373461018]} final : False mtd_id 4302 list_pids : [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] Looping around the photos to save general results len do output : 12 /1373461233.Didn't retrieve data . /1373461230.Didn't retrieve data . /1373461228.Didn't retrieve data . /1373461227.Didn't retrieve data . /1373461224.Didn't retrieve data . /1373461217.Didn't retrieve data . /1373461201.Didn't retrieve data . /1373461199.Didn't retrieve data . /1373461196.Didn't retrieve data . /1373461194.Didn't retrieve data . /1373461188.Didn't retrieve data . /1373461183.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, '3334799') ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25257228', '1373461233', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461230', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461228', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461227', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461224', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461217', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461201', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461199', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461196', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461194', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461188', '0.04526523726058371', None, None, None, None, '3334799'), ('4302', '25257228', '1373461183', '0.04526523726058371', None, None, None, None, '3334799')] time used for this insertion : 0.01734328269958496 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06810545921325684 time spend to save output : 0.01789116859436035 total time spend for step 2 : 0.08599662780761719 step3:velours_tree Thu Jul 24 06:54: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 : {25257228: [{'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243}]} input_args_next_step : {25257228: ()} output_args : {25257228: [{'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243}]} args : 25257228 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 : ({'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25257228) 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([25257228]) 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.2667679786682129 time spend to save output : 3.981590270996094e-05 total time spend for step 3 : 0.26680779457092285 step4:send_mail_cod Thu Jul 24 06:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} input_args_next_step : {1373461233: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461233 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461230 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461228 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461227 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461224 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461217 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461201 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461199 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461196 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461194 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461188 depend.output_id : 0 input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ()} output_args : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',)} args : 1373461183 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {25257228: [{'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243}]} input_args_next_step : {1373461233: ('0.04526523726058371',), 1373461230: ('0.04526523726058371',), 1373461228: ('0.04526523726058371',), 1373461227: ('0.04526523726058371',), 1373461224: ('0.04526523726058371',), 1373461217: ('0.04526523726058371',), 1373461201: ('0.04526523726058371',), 1373461199: ('0.04526523726058371',), 1373461196: ('0.04526523726058371',), 1373461194: ('0.04526523726058371',), 1373461188: ('0.04526523726058371',), 1373461183: ('0.04526523726058371',), 25257228: ()} output_args : {25257228: [{'environnement': 25257232, 'papier': 25257233, 'Carton_gris': 25257234, 'plastique': 25257235, 'metal': 25257236, 'flou': 25257237, 'mal_croppe': 25257238, 'Carton_brun': 25257239, 'autre_refus': 25257240, 'kraft': 25257241, 'Teint_Dans_La_Masse': 25257242, 'cartonnette': 25257243}]} args : 25257228 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.04526523726058371',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25257228) 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 (1373461233,1373461230,1373461228,1373461227,1373461224,1373461217,1373461201,1373461199,1373461196,1373461194,1373461188,1373461183) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373461183 begin to download photo : 1373461196 begin to download photo : 1373461217 begin to download photo : 1373461228 download finish for photo 1373461228 begin to download photo : 1373461230 download finish for photo 1373461183 begin to download photo : 1373461188 download finish for photo 1373461196 begin to download photo : 1373461199 download finish for photo 1373461217 begin to download photo : 1373461224 download finish for photo 1373461188 begin to download photo : 1373461194 download finish for photo 1373461224 begin to download photo : 1373461227 download finish for photo 1373461230 begin to download photo : 1373461233 download finish for photo 1373461199 begin to download photo : 1373461201 download finish for photo 1373461194 download finish for photo 1373461227 download finish for photo 1373461233 download finish for photo 1373461201 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25257228_24-07-2025_06_55_00.pdf 25257235 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=25257235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461160: '1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135346_0.png', 1373461193: '1753332747_2513805_1373461118_a240926a5f41cd6b67adcae1e534f79c_rle_crop_3892135526_0.png', 1373461220: '1753332805_2516478_1373461098_ab43f57bc8e04901d4ca4b7d7c1b0afa_rle_crop_3892135716_0.png', 1373461221: '1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135743_0.png', 1373461222: '1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135747_0.png', 1373461223: '1753332805_2516478_1373461090_2ef396bea0016330dcd2d1c7f040f2c8_rle_crop_3892135759_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/1eb8becbaeeaec639f43c40339dfc655_18763175.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/7246647f4fabb8de30c6a086c62c8728_55840935.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b734fd1dd0dcc97b796d6a82ac6dba64_29719159.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3f4ca3fc0b968060020b1b1ff1a621c6_19956002.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/fba46d9ff0427fe221a2b0b269339716_58815515.png change filename to text .imagette252572351753332900/ imagette252572351753332900/1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135747_0.png.png imagette252572351753332900/1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135743_0.png.png imagette252572351753332900/1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135346_0.png.png imagette252572351753332900/1753332747_2513805_1373461118_a240926a5f41cd6b67adcae1e534f79c_rle_crop_3892135526_0.png.png imagette252572351753332900/1753332805_2516478_1373461098_ab43f57bc8e04901d4ca4b7d7c1b0afa_rle_crop_3892135716_0.png.png imagette252572351753332900/1753332805_2516478_1373461090_2ef396bea0016330dcd2d1c7f040f2c8_rle_crop_3892135759_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/6bc3ba0b09cdb439c19fe81a44bb756f_71859713.png imagette252572351753332900 25257236 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=25257236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461161: '1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135375_0.png'} change filename to text .imagette252572361753332901/ imagette252572361753332901/1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135375_0.png.png imagette252572371753332901/ imagette252572381753332901/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/0cf1f67e58b1c1f42b32603a400f4cc2_3217466.png imagette252572361753332901 25257237 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=25257237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252572371753332901 25257238 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=25257238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252572381753332901 25257240 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=25257240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461150: '1753332686_2511171_1373461053_be79b243e708a31f6804679e954f2b10_rle_crop_3892135325_0.png', 1373461151: '1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b4e41149aa192c64bda31643c14889fb_30278587.png change filename to text .imagette252572401753332901/ imagette252572401753332901/1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135384_0.png.png imagette252572401753332901/1753332686_2511171_1373461053_be79b243e708a31f6804679e954f2b10_rle_crop_3892135325_0.png.png imagette252572411753332901/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/bbe10da7795af04ed5b16cde49aa626d_51935165.png imagette252572401753332901 25257241 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=25257241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette252572411753332901 25257243 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=25257243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461191: '1753332747_2513805_1373461116_e87d3b397d277ba3082ea51ee1b13970_rle_crop_3892135540_0.png', 1373461192: '1753332747_2513805_1373461114_a2c07c55676fa54995bca6268f2f48ed_rle_crop_3892135549_0.png', 1373461213: '1753332805_2516478_1373461095_e2df07a5f8ddc0cc153ae5bac37d844c_rle_crop_3892135727_0.png', 1373461214: '1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135745_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/8c0d1003c4e1b8814d35b066a09ae6c4_777140.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/971a31446888473f9a509c7a38ac50e5_7207682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/0e883301ee0530a8852187f086b5d3df_63660905.png change filename to text .imagette252572431753332901/ imagette252572431753332901/1753332805_2516478_1373461095_e2df07a5f8ddc0cc153ae5bac37d844c_rle_crop_3892135727_0.png.png imagette252572431753332901/1753332747_2513805_1373461116_e87d3b397d277ba3082ea51ee1b13970_rle_crop_3892135540_0.png.png imagette252572431753332901/1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135745_0.png.png imagette252572431753332901/1753332747_2513805_1373461114_a2c07c55676fa54995bca6268f2f48ed_rle_crop_3892135549_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/b3e67a776031ad0b7f74e7855ba1a2d2_22219872.png imagette252572431753332901 25257234 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=25257234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461152: '1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135339_0.png', 1373461189: '1753332747_2513805_1373461112_9e052d4ec9cf69301131671554e6ec5e_rle_crop_3892135564_0.png', 1373461190: '1753332747_2513805_1373461110_b84e60adbee80e60222faff348608c8e_rle_crop_3892135570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f93455d4f5c962b43f250ea77f65caab_26929438.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/d05d1209cc48517348662a989cd1980e_36164457.png change filename to text .imagette252572341753332901/ imagette252572341753332901/1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135339_0.png.png imagette252572341753332901/1753332747_2513805_1373461112_9e052d4ec9cf69301131671554e6ec5e_rle_crop_3892135564_0.png.png imagette252572341753332901/1753332747_2513805_1373461110_b84e60adbee80e60222faff348608c8e_rle_crop_3892135570_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/3fb3bc3a2b3d9897a1786a18044916b2_57233238.png imagette252572341753332901 25257239 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=25257239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461154: '1753332686_2511171_1373461053_be79b243e708a31f6804679e954f2b10_rle_crop_3892135329_0.png', 1373461155: '1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135343_0.png', 1373461157: '1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135347_0.png', 1373461158: '1753332686_2511171_1373461049_abc371b96f524b865e53daf065def044_rle_crop_3892135357_0.png', 1373461159: '1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135379_0.png', 1373461215: '1753332805_2516478_1373461094_aa1e1f30f7d66d10e65520b5f8f3f89c_rle_crop_3892135739_0.png', 1373461216: '1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135749_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/9fbdc6da70b33fba03754a300916d8b2_27127623.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/6c2efd5c811914fe659ac55d28630def_5193397.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/f4b778bfe15953b6a47c89f8eeb1d2a2_1130079.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/4bc9bc703de82e50f4fad23f17d1b863_65036092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/4cd4b8d879e0d2a34e014d56c789847d_11081622.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/ef96e9c0ff67b352bbe59d6f2efd571b_79342765.png change filename to text .imagette252572391753332901/ imagette252572391753332901/1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135379_0.png.png imagette252572391753332901/1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135343_0.png.png imagette252572391753332901/1753332686_2511171_1373461053_be79b243e708a31f6804679e954f2b10_rle_crop_3892135329_0.png.png imagette252572391753332901/1753332686_2511171_1373461050_561a8a9f1478c3394a1c4fea3abfe730_rle_crop_3892135347_0.png.png imagette252572391753332901/1753332686_2511171_1373461049_abc371b96f524b865e53daf065def044_rle_crop_3892135357_0.png.png imagette252572391753332901/1753332805_2516478_1373461094_aa1e1f30f7d66d10e65520b5f8f3f89c_rle_crop_3892135739_0.png.png imagette252572391753332901/1753332805_2516478_1373461092_288065bcfd9e10d2305f3587c531b442_rle_crop_3892135749_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/0b0550392d128a2fffe1e9016727abe4_43969243.png imagette252572391753332901 25257242 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=25257242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373461147: '1753332686_2511171_1373461056_dcae0e1967e3e3bab9967acaac26a172_rle_crop_3892135319_0.png', 1373461148: '1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135383_0.png', 1373461184: '1753332747_2513805_1373461116_e87d3b397d277ba3082ea51ee1b13970_rle_crop_3892135541_0.png', 1373461185: '1753332747_2513805_1373461114_a2c07c55676fa54995bca6268f2f48ed_rle_crop_3892135550_0.png', 1373461186: '1753332747_2513805_1373461112_9e052d4ec9cf69301131671554e6ec5e_rle_crop_3892135562_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/fca62a9905554e6be26cb97d80d393bc_86019738.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a543b1a634b1cc07ed493708690611c7_57865249.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/4537a2b97582c2ac689e707778a468e8_79914565.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/c0cf9b139ee2e011c4767ded995719b6_13226741.png change filename to text .imagette252572421753332902/ imagette252572421753332902/1753332747_2513805_1373461116_e87d3b397d277ba3082ea51ee1b13970_rle_crop_3892135541_0.png.png imagette252572421753332902/1753332686_2511171_1373461056_dcae0e1967e3e3bab9967acaac26a172_rle_crop_3892135319_0.png.png imagette252572421753332902/1753332747_2513805_1373461112_9e052d4ec9cf69301131671554e6ec5e_rle_crop_3892135562_0.png.png imagette252572421753332902/1753332686_2511171_1373461039_49abf7929a4406a707c209ad5f1711b9_rle_crop_3892135383_0.png.png imagette252572421753332902/1753332747_2513805_1373461114_a2c07c55676fa54995bca6268f2f48ed_rle_crop_3892135550_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a6530a5310cc53491370392dc8640e5c_77434798.png imagette252572421753332902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25257228 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25257245,25257246,25257247,25257248,25257249,25257250,25257251,25257252,25257253,25257254,25257255,25257256?tags=environnement,papier,Carton_gris,plastique,metal,flou,mal_croppe,Carton_brun,autre_refus,kraft,Teint_Dans_La_Masse,cartonnette your option no_mail is active, we will not send the real mail to your client args[1373461233] : ('0.04526523726058371',) no score found for photo 1373461233 We are sending mail with results at report@fotonower.com args[1373461230] : ('0.04526523726058371',) no score found for photo 1373461230 We are sending mail with results at report@fotonower.com args[1373461228] : ('0.04526523726058371',) no score found for photo 1373461228 We are sending mail with results at report@fotonower.com args[1373461227] : ('0.04526523726058371',) no score found for photo 1373461227 We are sending mail with results at report@fotonower.com args[1373461224] : ('0.04526523726058371',) no score found for photo 1373461224 We are sending mail with results at report@fotonower.com args[1373461217] : ('0.04526523726058371',) no score found for photo 1373461217 We are sending mail with results at report@fotonower.com args[1373461201] : ('0.04526523726058371',) no score found for photo 1373461201 We are sending mail with results at report@fotonower.com args[1373461199] : ('0.04526523726058371',) no score found for photo 1373461199 We are sending mail with results at report@fotonower.com args[1373461196] : ('0.04526523726058371',) no score found for photo 1373461196 We are sending mail with results at report@fotonower.com args[1373461194] : ('0.04526523726058371',) no score found for photo 1373461194 We are sending mail with results at report@fotonower.com args[1373461188] : ('0.04526523726058371',) no score found for photo 1373461188 We are sending mail with results at report@fotonower.com args[1373461183] : ('0.04526523726058371',) no score found for photo 1373461183 We are sending mail with results at report@fotonower.com refus_total : 0.04526523726058371 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=25257228 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_P25257228_24-07-2025_06_55_00.pdf results_Auto_P25257228_24-07-2025_06_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_06_55_00.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','25257228','results_Auto_P25257228_24-07-2025_06_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_06_55_00.pdf','pdf','','0.16','0.04526523726058371') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25257228]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] map_info['map_portfolio_photo'] : {25257228: [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183, 1373461167, 1373461166, 1373461163, 1373461156, 1373461149, 1373461145, 1373461135, 1373461132, 1373461131, 1373461129, 1373461125, 1373461123, 1373461118, 1373461116, 1373461114, 1373461112, 1373461110, 1373461106, 1373461101, 1373461098, 1373461095, 1373461094, 1373461092, 1373461090, 1373461079, 1373461077, 1373461075, 1373461074, 1373461072, 1373461070, 1373461056, 1373461053, 1373461050, 1373461049, 1373461047, 1373461039, 1373461030, 1373461028, 1373461026, 1373461025, 1373461023, 1373461018]} final : False mtd_id 4302 list_pids : [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] 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, '3334799') ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25257228', '1373461233', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799')] time used for this insertion : 0.0690302848815918 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4996373653411865 time spend to save output : 0.06925773620605469 total time spend for step 4 : 3.568895101547241 step5:split_time_score Thu Jul 24 06:55:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25257228'] 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 : [('25257228',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25257228) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373461183: {'path': 'temp/1753332900_609807_1373461183_3014225e3625143330a049976e2f2dc7.jpg', 'extension': 'jpg'}, 1373461188: {'path': 'temp/1753332900_609807_1373461188_1c8fdd0535ac44b91cb9e3d9c280198c.jpg', 'extension': 'jpg'}, 1373461194: {'path': 'temp/1753332900_609807_1373461194_2b68078b7f05af03c93b909a28f7ce8f.jpg', 'extension': 'jpg'}, 1373461217: {'path': 'temp/1753332900_609807_1373461217_a474d90e7e7d047b32050df4c9fc10cc.jpg', 'extension': 'jpg'}, 1373461224: {'path': 'temp/1753332900_609807_1373461224_f8c3e2e144968ae71286a787ec2e1b76.jpg', 'extension': 'jpg'}, 1373461227: {'path': 'temp/1753332900_609807_1373461227_56d92f4007d27498144ea92e4bf15d22.jpg', 'extension': 'jpg'}, 1373461228: {'path': 'temp/1753332900_609807_1373461228_79e5f8981e53d369cb281dc71955ba7d.jpg', 'extension': 'jpg'}, 1373461230: {'path': 'temp/1753332900_609807_1373461230_68c931a23e014dbd3c4d6a5f84484785.jpg', 'extension': 'jpg'}, 1373461233: {'path': 'temp/1753332900_609807_1373461233_dbe4612a7a9fea140af17d70e5836c93.jpg', 'extension': 'jpg'}, 1373461196: {'path': 'temp/1753332900_609807_1373461196_a34bfae5e75f11ff3da08224cd783fd1.jpg', 'extension': 'jpg'}, 1373461199: {'path': 'temp/1753332900_609807_1373461199_cb257f9682b7f8c511682c6043dcd98e.jpg', 'extension': 'jpg'}, 1373461201: {'path': 'temp/1753332900_609807_1373461201_772b203a49c6fc21336e12e07b659449.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 = 25257228; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25257228 group by h (('06', 54),) 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=25257228 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 (25257228) 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 (25257228) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24072025 25257228 Nombre de photos uploadées : 54 / 23040 (0%) 24072025 25257228 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 24072025 25257228 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1373461030, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/a187dbefaa70b098944266c3ac27f413.jpg', 'username': None, 'uploaded_at': 1753332363, 'text': 'image_24072025_06_45_04_10145.jpg'}, {'photo_id': 1373461028, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/001cb122075b70dbf05a53b347b1928f.jpg', 'username': None, 'uploaded_at': 1753332363, 'text': 'image_24072025_06_45_14_10132.jpg'}, {'photo_id': 1373461026, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/9a8b0d1e550f53a0ffa088859dfe2ea9.jpg', 'username': None, 'uploaded_at': 1753332363, 'text': 'image_24072025_06_45_24_10133.jpg'}, {'photo_id': 1373461025, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/24/9f2885e960b1eebf2ce3ecc06cc16b4e.jpg', 'username': None, 'uploaded_at': 1753332363, 'text': 'image_24072025_06_45_34_10132.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023012161254882812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25257228, '2025-07-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2002734,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027560710906982422 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= 2002734 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25245820, 'dashboard_result_id': 12996116, '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_P25245820_24-07-2025_00_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25246316, 'dashboard_result_id': 12996117, '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_P25246316_24-07-2025_00_30_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25246632, 'dashboard_result_id': 12996118, '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_P25246632_24-07-2025_01_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25246996, 'dashboard_result_id': 12996119, '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_P25246996_24-07-2025_01_00_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25247263, 'dashboard_result_id': 12996120, '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_P25247263_24-07-2025_01_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25247788, 'dashboard_result_id': 12996121, '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_P25247788_24-07-2025_01_31_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25248336, 'dashboard_result_id': 12996122, '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_P25248336_24-07-2025_01_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25248727, 'dashboard_result_id': 12996123, '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_P25248727_24-07-2025_02_00_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25249105, 'dashboard_result_id': 12996124, '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_P25249105_24-07-2025_02_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25249748, 'dashboard_result_id': 12996125, '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_P25249748_24-07-2025_02_30_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25250094, 'dashboard_result_id': 12996126, '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_P25250094_24-07-2025_02_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25250494, 'dashboard_result_id': 12996127, '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_P25250494_24-07-2025_03_03_28.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25250838, 'dashboard_result_id': 12996128, '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_P25250838_24-07-2025_03_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25251371, 'dashboard_result_id': 12996129, '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_P25251371_24-07-2025_03_30_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25251822, 'dashboard_result_id': 12996130, '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_P25251822_24-07-2025_03_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25252281, 'dashboard_result_id': 12996131, '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_P25252281_24-07-2025_04_00_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25252752, 'dashboard_result_id': 12996132, '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_P25252752_24-07-2025_04_16_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25253150, 'dashboard_result_id': 12996133, '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_P25253150_24-07-2025_04_30_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25253504, 'dashboard_result_id': 12996134, '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_P25253504_24-07-2025_04_47_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25253932, 'dashboard_result_id': 12996135, '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_P25253932_24-07-2025_05_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25254261, 'dashboard_result_id': 12996136, '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_P25254261_24-07-2025_05_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25254804, 'dashboard_result_id': 12996137, '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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25255177, 'dashboard_result_id': 12996138, '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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25255497, 'dashboard_result_id': 12996139, '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_P25255497_24-07-2025_05_58_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25255885, 'dashboard_result_id': 12996140, '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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25256351, 'dashboard_result_id': 12996141, '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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25256792, 'dashboard_result_id': 12996142, '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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}"}, {'dashboat_entry_day': 2002734, 'dashboard_run_id': 2011021, 'mtr_portfolio_id': 25257228, 'dashboard_result_id': 12996143, '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_P25257228_24-07-2025_06_53_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, '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 = 25245820 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': 3334263, 'mtr_portfolio_id': 25245820, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 40), 'result': '0.038215598605625845', 'result_long': None, 'result_double': None}] Qualite : 0.038215598605625845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25245820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25245820 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_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, 'pht': 3726}}" where mtr_portfolio_id = 25245820 and dashboard_run_id = 2011021 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`=25245820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996116, 0.038215598605625845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25245820_24-07-2025_06_30_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25245843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25245844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25245845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25245846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25245847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25245848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25245849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25245850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25245851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25245852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25245853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25245854, '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 = 25246316 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': 3334264, 'mtr_portfolio_id': 25246316, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 30), 'result': '0.03126112302470875', 'result_long': None, 'result_double': None}] Qualite : 0.03126112302470875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246316 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_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, 'pht': 3726}}" where mtr_portfolio_id = 25246316 and dashboard_run_id = 2011021 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`=25246316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996117, 0.03126112302470875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246316_24-07-2025_06_31_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246324, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246329, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246330, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246332, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246335, '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 = 25246632 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': 3334265, 'mtr_portfolio_id': 25246632, 'created_at': datetime.datetime(2025, 7, 24, 6, 31, 59), 'result': '0.04209888580772617', 'result_long': None, 'result_double': None}] Qualite : 0.04209888580772617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246632 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246632 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_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, 'pht': 3726}}" where mtr_portfolio_id = 25246632 and dashboard_run_id = 2011021 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`=25246632 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996118, 0.04209888580772617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246632_24-07-2025_06_32_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25246638, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25246639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25246641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25246642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25246643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25246645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25246646, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25246647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25246648, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246649, '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 = 25246996 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': 3334266, 'mtr_portfolio_id': 25246996, 'created_at': datetime.datetime(2025, 7, 24, 6, 32, 29), 'result': '0.037362390466138935', 'result_long': None, 'result_double': None}] Qualite : 0.037362390466138935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25246996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25246996 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_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, 'pht': 3726}}" where mtr_portfolio_id = 25246996 and dashboard_run_id = 2011021 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`=25246996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996119, 0.037362390466138935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25246996_24-07-2025_06_32_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25246997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25246998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25246999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247007, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247008, '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 = 25247263 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 = 25247263 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 = 25247263 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247263 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 = 25247263 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334267, 'mtr_portfolio_id': 25247263, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247263 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_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, 'pht': 3726}}" where mtr_portfolio_id = 25247263 and dashboard_run_id = 2011021 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`=25247263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996120, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247263_24-07-2025_06_33_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247268, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25247272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247276, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247279, '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 = 25247788 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 = 25247788 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 = 25247788 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25247788 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 = 25247788 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3334268, 'mtr_portfolio_id': 25247788, 'created_at': datetime.datetime(2025, 7, 24, 6, 33, 58), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25247788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25247788 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_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, 'pht': 3726}}" where mtr_portfolio_id = 25247788 and dashboard_run_id = 2011021 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`=25247788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996121, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25247788_24-07-2025_06_34_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25247798, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25247799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25247800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25247801, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25247802, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25247803, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25247804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25247805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25247806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25247807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25247808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25247809, '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 = 25248336 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': 3334269, 'mtr_portfolio_id': 25248336, 'created_at': datetime.datetime(2025, 7, 24, 6, 34, 29), 'result': '0.04550434624396371', 'result_long': None, 'result_double': None}] Qualite : 0.04550434624396371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248336 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_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, 'pht': 3726}}" where mtr_portfolio_id = 25248336 and dashboard_run_id = 2011021 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`=25248336 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996122, 0.04550434624396371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248336_24-07-2025_06_34_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25248343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248344, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25248347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248354, '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 = 25248727 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': 3334270, 'mtr_portfolio_id': 25248727, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 29), 'result': '0.041544677557399705', 'result_long': None, 'result_double': None}] Qualite : 0.041544677557399705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25248727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25248727 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_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, 'pht': 3726}}" where mtr_portfolio_id = 25248727 and dashboard_run_id = 2011021 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`=25248727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996123, 0.041544677557399705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25248727_24-07-2025_06_35_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25248754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25248755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25248756, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25248757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25248758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25248759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25248760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25248761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25248762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25248763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25248764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25248765, '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 = 25249105 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': 3334271, 'mtr_portfolio_id': 25249105, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 40), 'result': '0.027287981725041512', 'result_long': None, 'result_double': None}] Qualite : 0.027287981725041512 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249105 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_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, 'pht': 3726}}" where mtr_portfolio_id = 25249105 and dashboard_run_id = 2011021 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`=25249105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996124, 0.027287981725041512, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249105_24-07-2025_06_35_42.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249136, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249143, '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 = 25249748 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': 3334272, 'mtr_portfolio_id': 25249748, 'created_at': datetime.datetime(2025, 7, 24, 6, 35, 59), 'result': '0.04867910375967595', 'result_long': None, 'result_double': None}] Qualite : 0.04867910375967595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25249748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25249748 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_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, 'pht': 3726}}" where mtr_portfolio_id = 25249748 and dashboard_run_id = 2011021 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`=25249748 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996125, 0.04867910375967595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25249748_24-07-2025_06_36_06.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25249761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25249762, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25249763, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25249764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25249765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25249766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25249767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25249768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25249769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25249770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25249771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25249772, '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 = 25250094 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': 3334273, 'mtr_portfolio_id': 25250094, 'created_at': datetime.datetime(2025, 7, 24, 6, 36, 59), 'result': '0.05408474235416055', 'result_long': None, 'result_double': None}] Qualite : 0.05408474235416055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250094 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250094 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_P25250094_24-07-2025_06_37_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, 'pht': 3726}}" where mtr_portfolio_id = 25250094 and dashboard_run_id = 2011021 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`=25250094 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996126, 0.05408474235416055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250094_24-07-2025_06_37_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250103, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250109, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250110, '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 = 25250494 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': 3334274, 'mtr_portfolio_id': 25250494, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 27), 'result': '0.03219262700891156', 'result_long': None, 'result_double': None}] Qualite : 0.03219262700891156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250494 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250494 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_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, 'pht': 3726}}" where mtr_portfolio_id = 25250494 and dashboard_run_id = 2011021 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`=25250494 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996127, 0.03219262700891156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250494_24-07-2025_06_37_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25250530, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250531, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250535, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250541, '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 = 25250838 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': 3334275, 'mtr_portfolio_id': 25250838, 'created_at': datetime.datetime(2025, 7, 24, 6, 37, 58), 'result': '0.019977432830331845', 'result_long': None, 'result_double': None}] Qualite : 0.019977432830331845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25250838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25250838 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_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, 'pht': 3726}}" where mtr_portfolio_id = 25250838 and dashboard_run_id = 2011021 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`=25250838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996128, 0.019977432830331845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25250838_24-07-2025_06_38_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25250843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25250844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25250845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25250846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25250847, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25250848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25250849, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25250850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25250851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25250852, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25250853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25250854, '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 = 25251371 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': 3334276, 'mtr_portfolio_id': 25251371, 'created_at': datetime.datetime(2025, 7, 24, 6, 38, 29), 'result': '0.03179996240797819', 'result_long': None, 'result_double': None}] Qualite : 0.03179996240797819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251371 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_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, 'pht': 3726}}" where mtr_portfolio_id = 25251371 and dashboard_run_id = 2011021 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`=25251371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996129, 0.03179996240797819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251371_24-07-2025_06_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251400, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251406, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251407, '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 = 25251822 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': 3334277, 'mtr_portfolio_id': 25251822, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 28), 'result': '0.038330996235407075', 'result_long': None, 'result_double': None}] Qualite : 0.038330996235407075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25251822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25251822 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_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, 'pht': 3726}}" where mtr_portfolio_id = 25251822 and dashboard_run_id = 2011021 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`=25251822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996130, 0.038330996235407075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25251822_24-07-2025_06_39_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25251823, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25251824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25251825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25251826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25251827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25251828, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25251829, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25251830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25251831, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25251832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25251833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25251834, '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 = 25252281 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': 3334278, 'mtr_portfolio_id': 25252281, 'created_at': datetime.datetime(2025, 7, 24, 6, 39, 59), 'result': '0.04638451755557565', 'result_long': None, 'result_double': None}] Qualite : 0.04638451755557565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252281 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_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, 'pht': 3726}}" where mtr_portfolio_id = 25252281 and dashboard_run_id = 2011021 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`=25252281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996131, 0.04638451755557565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252281_24-07-2025_06_40_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252292, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252294, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252295, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252298, '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 = 25252752 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': 3334279, 'mtr_portfolio_id': 25252752, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 32), 'result': '0.032941466003342634', 'result_long': None, 'result_double': None}] Qualite : 0.032941466003342634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25252752 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25252752 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_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, 'pht': 3726}}" where mtr_portfolio_id = 25252752 and dashboard_run_id = 2011021 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`=25252752 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996132, 0.032941466003342634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25252752_24-07-2025_06_40_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25252762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25252763, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25252764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25252765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25252766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25252767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25252768, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25252769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25252770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25252771, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25252772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25252773, '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 = 25253150 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': 3334280, 'mtr_portfolio_id': 25253150, 'created_at': datetime.datetime(2025, 7, 24, 6, 40, 40), 'result': '0.03518817691242381', 'result_long': None, 'result_double': None}] Qualite : 0.03518817691242381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253150 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_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, 'pht': 3726}}" where mtr_portfolio_id = 25253150 and dashboard_run_id = 2011021 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`=25253150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996133, 0.03518817691242381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253150_24-07-2025_06_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253157, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253165, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253167, '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 = 25253504 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': 3334281, 'mtr_portfolio_id': 25253504, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 27), 'result': '0.04192457870721397', 'result_long': None, 'result_double': None}] Qualite : 0.04192457870721397 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253504 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_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, 'pht': 3726}}" where mtr_portfolio_id = 25253504 and dashboard_run_id = 2011021 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`=25253504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996134, 0.04192457870721397, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253504_24-07-2025_06_41_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253512, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253515, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253522, '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 = 25253932 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': 3334282, 'mtr_portfolio_id': 25253932, 'created_at': datetime.datetime(2025, 7, 24, 6, 41, 58), 'result': '0.06409231738904918', 'result_long': None, 'result_double': None}] Qualite : 0.06409231738904918 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25253932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25253932 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_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, 'pht': 3726}}" where mtr_portfolio_id = 25253932 and dashboard_run_id = 2011021 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`=25253932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996135, 0.06409231738904918, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25253932_24-07-2025_06_42_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25253933, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25253934, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25253935, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25253936, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25253937, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25253938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25253939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25253940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25253941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25253942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25253943, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25253944, '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 = 25254261 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': 3334283, 'mtr_portfolio_id': 25254261, 'created_at': datetime.datetime(2025, 7, 24, 6, 42, 30), 'result': '0.03719769099501056', 'result_long': None, 'result_double': None}] Qualite : 0.03719769099501056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254261 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_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, 'pht': 3726}}" where mtr_portfolio_id = 25254261 and dashboard_run_id = 2011021 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`=25254261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996136, 0.03719769099501056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254261_24-07-2025_06_42_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25254268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254272, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254274, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254276, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254277, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254279, '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 = 25254804 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': 3334284, 'mtr_portfolio_id': 25254804, 'created_at': datetime.datetime(2025, 7, 24, 5, 40, 39), 'result': '0.042868024995077914', 'result_long': None, 'result_double': None}] Qualite : 0.042868024995077914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25254804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25254804 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_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, 'pht': 3726}}" where mtr_portfolio_id = 25254804 and dashboard_run_id = 2011021 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`=25254804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996137, 0.042868024995077914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25254804_24-07-2025_05_40_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25254810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25254811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25254812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25254813, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25254814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25254815, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25254816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25254817, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25254818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25254819, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25254820, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25254821, '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 = 25255177 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': 3334163, 'mtr_portfolio_id': 25255177, 'created_at': datetime.datetime(2025, 7, 24, 5, 46, 58), 'result': '0.03262217189807922', 'result_long': None, 'result_double': None}] Qualite : 0.03262217189807922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255177 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_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, 'pht': 3726}}" where mtr_portfolio_id = 25255177 and dashboard_run_id = 2011021 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`=25255177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996138, 0.03262217189807922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255177_24-07-2025_05_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255178, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255181, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255182, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255187, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255188, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255189, '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 = 25255497 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': 3334356, 'mtr_portfolio_id': 25255497, 'created_at': datetime.datetime(2025, 7, 24, 6, 0, 58), 'result': '0.04344951070728682', 'result_long': None, 'result_double': None}] Qualite : 0.04344951070728682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255497 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255497 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_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, 'pht': 3726}}" where mtr_portfolio_id = 25255497 and dashboard_run_id = 2011021 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`=25255497 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996139, 0.04344951070728682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255497_24-07-2025_06_00_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255507, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255508, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255510, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255518, '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 = 25255885 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': 3334478, 'mtr_portfolio_id': 25255885, 'created_at': datetime.datetime(2025, 7, 24, 6, 16, 30), 'result': '0.031837923502929036', 'result_long': None, 'result_double': None}] Qualite : 0.031837923502929036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25255885 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25255885 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_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, 'pht': 3726}}" where mtr_portfolio_id = 25255885 and dashboard_run_id = 2011022 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`=25255885 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996140, 0.031837923502929036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25255885_24-07-2025_06_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25255910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25255911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25255912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25255913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25255914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25255915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25255916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25255917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25255918, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25255919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25255920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25255921, '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 = 25256351 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': 3334574, 'mtr_portfolio_id': 25256351, 'created_at': datetime.datetime(2025, 7, 24, 6, 30, 59), 'result': '0.026085246051546402', 'result_long': None, 'result_double': None}] Qualite : 0.026085246051546402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256351 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_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, 'pht': 3726}}" where mtr_portfolio_id = 25256351 and dashboard_run_id = 2011022 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`=25256351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996141, 0.026085246051546402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256351_24-07-2025_06_31_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256357, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256363, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256364, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256367, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256368, '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 = 25256792 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': 3334691, 'mtr_portfolio_id': 25256792, 'created_at': datetime.datetime(2025, 7, 24, 6, 46, 29), 'result': '0.0367596715937518', 'result_long': None, 'result_double': None}] Qualite : 0.0367596715937518 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25256792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25256792 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_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, 'pht': 3726}}" where mtr_portfolio_id = 25256792 and dashboard_run_id = 2011022 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`=25256792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996142, 0.0367596715937518, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25256792_24-07-2025_06_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25256796, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25256797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25256798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25256799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25256800, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25256801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25256802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25256803, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25256804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25256805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25256806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25256807, '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 = 25257228 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': 3334799, 'mtr_portfolio_id': 25257228, 'created_at': datetime.datetime(2025, 7, 24, 6, 54, 59), 'result': '0.04526523726058371', 'result_long': None, 'result_double': None}] Qualite : 0.04526523726058371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25257228 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_06_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25257228 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_P25257228_24-07-2025_06_55_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}" where mtr_portfolio_id = 25257228 and dashboard_run_id = 2011022 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`=25257228 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12996143, 0.04526523726058371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25257228_24-07-2025_06_55_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25257232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25257233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25257234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25257235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25257236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25257237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25257238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25257239, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25257240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25257241, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25257242, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25257243, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25245820,25246316,25246632,25246996,25247263,25247788,25248336,25248727,25249105,25249748,25250094,25250494,25250838,25251371,25251822,25252281,25252752,25253150,25253504,25253932,25254261,25254804,25255177,25255497,25255885,25256351,25256792,25257228) result : ((1373433356,), (1373433609,), (1373433797,), (1373433798,), (1373433820,), (1373433832,), (1373433834,), (1373433840,), (1373434211,), (1373434234,), (1373434276,), (1373434320,), (1373434355,), (1373434386,), (1373434551,), (1373434562,), (1373434599,), (1373434624,), (1373434649,), (1373434685,), (1373434819,), (1373434822,), (1373434827,), (1373434828,), (1373434831,), (1373434835,), (1373435006,), (1373435350,), (1373435352,), (1373435354,), (1373435355,), (1373435357,), (1373435359,), (1373435531,), (1373435532,), (1373435553,), (1373435561,), (1373435563,), (1373435565,), (1373435583,), (1373435585,), (1373435590,), (1373435596,), (1373435607,), (1373435610,), (1373435637,), (1373435643,), (1373435649,), (1373435650,), (1373435652,), (1373435655,), (1373435658,), (1373435676,), (1373435677,), (1373435678,), (1373435679,), (1373435681,), (1373435683,), (1373435696,), (1373435701,), (1373435702,), (1373435703,), (1373435705,), (1373435708,), (1373435747,), (1373435751,), (1373435753,), (1373435754,), (1373435756,), (1373435760,), (1373435847,), (1373435875,), (1373435905,), (1373435926,), (1373435929,), (1373435931,), (1373436010,), (1373436011,), (1373436012,), (1373436014,), (1373436016,), (1373436019,), (1373436107,), (1373436113,), (1373436116,), (1373436117,), (1373436120,), (1373436123,), (1373436134,), (1373436137,), (1373436140,), (1373436142,), (1373436144,), (1373436146,), (1373436163,), (1373436168,), (1373436173,), (1373436174,), (1373436176,), (1373436179,), (1373436206,), (1373436222,), (1373436233,), (1373436234,), (1373436235,), (1373436237,), (1373436240,), (1373436243,), (1373436263,), (1373436265,), (1373436267,), (1373436268,), (1373436270,), (1373436272,), (1373436286,), (1373436289,), (1373436290,), (1373436293,), (1373436296,), (1373436297,), (1373436304,), (1373436305,), (1373436314,), (1373436317,), (1373436319,), (1373436321,), (1373436335,), (1373436350,), (1373436352,), (1373436359,), (1373436363,), (1373436366,), (1373436367,), (1373436377,), (1373436380,), (1373436382,), (1373436383,), (1373436385,), (1373436386,), (1373436404,), (1373436424,), (1373436425,), (1373436426,), (1373436427,), (1373436429,), (1373436431,), (1373436445,), (1373436627,), (1373436652,), (1373436674,), (1373436694,), (1373436695,), (1373436697,), (1373436774,), (1373436779,), (1373436780,), (1373436781,), (1373436783,), (1373436784,), (1373436797,), (1373436798,), (1373436799,), (1373436800,), (1373436802,), (1373436803,), (1373436823,), (1373436824,), (1373436825,), (1373436826,), (1373436827,), (1373436829,), (1373436843,), (1373436844,), (1373436845,), (1373436846,), (1373436848,), (1373436849,), (1373436856,), (1373436863,), (1373436869,), (1373436871,), (1373436874,), (1373436878,), (1373436886,), (1373436889,), (1373436892,), (1373436893,), (1373436895,), (1373436899,), (1373436909,), (1373436911,), (1373436915,), (1373436924,), (1373436933,), (1373436935,), (1373436945,), (1373436955,), (1373436958,), (1373436960,), (1373436962,), (1373436963,), (1373436964,), (1373436975,), (1373436977,), (1373436978,), (1373436979,), (1373436981,), (1373436983,), (1373437003,), (1373437006,), (1373437007,), (1373437008,), (1373437011,), (1373437013,), (1373437023,), (1373437602,), (1373437625,), (1373437059,), (1373437076,), (1373437078,), (1373437080,), (1373437082,), (1373437085,), (1373437089,), (1373437100,), (1373437103,), (1373437105,), (1373437107,), (1373437109,), (1373437112,), (1373437133,), (1373437139,), (1373437141,), (1373437143,), (1373437145,), (1373437147,), (1373437156,), (1373437161,), (1373437168,), (1373437170,), (1373437173,), (1373437176,), (1373437202,), (1373437204,), (1373437206,), (1373437208,), (1373437211,), (1373437213,), (1373437219,), (1373437233,), (1373437234,), (1373437235,), (1373437236,), (1373437237,), (1373437239,), (1373437257,), (1373437267,), (1373437270,), (1373437271,), (1373437273,), (1373437275,), (1373437283,), (1373437285,), (1373437297,), (1373437308,), (1373437311,), (1373437314,), (1373437323,), (1373437326,), (1373437329,), (1373437331,), (1373437334,), (1373437338,), (1373437342,), (1373437343,), (1373437345,), (1373437347,), (1373437348,), (1373437352,), (1373437369,), (1373437371,), (1373437373,), (1373437375,), (1373437377,), (1373437380,), (1373437551,), (1373437576,), (1373438191,), (1373439020,), (1373439077,), (1373439119,), (1373439140,), (1373439164,), (1373439197,), (1373439420,), (1373439440,), (1373439443,), (1373439444,), (1373439451,), (1373439477,), (1373439715,), (1373439726,), (1373439744,), (1373439747,), (1373439750,), (1373439762,), (1373439813,), (1373439816,), (1373439818,), (1373439820,), (1373439823,), (1373439824,), (1373439832,), (1373439834,), (1373439836,), (1373439837,), (1373439839,), (1373439840,), (1373439845,), (1373439847,), (1373439849,), (1373439850,), (1373439851,), (1373439853,), (1373439867,), (1373439869,), (1373439872,), (1373439874,), (1373439876,), (1373439878,), (1373439883,), (1373439886,), (1373439888,), (1373439890,), (1373439893,), (1373439895,), (1373439904,), (1373439920,), (1373439923,), (1373439926,), (1373439928,), (1373439930,), (1373439933,), (1373439941,), (1373439962,), (1373439967,), (1373439974,), (1373439977,), (1373439980,), (1373439983,), (1373439995,), (1373439997,), (1373440000,), (1373440002,), (1373440005,), (1373440008,), (1373440019,), (1373440026,), (1373440032,), (1373440034,), (1373440037,), (1373440040,), (1373440077,), (1373440078,), (1373440079,), (1373440080,), (1373440082,), (1373440085,), (1373440228,), (1373440247,), (1373440272,), (1373440277,), (1373440283,), (1373440286,), (1373440314,), (1373440326,), (1373440351,), (1373440373,), (1373440399,), (1373440416,), (1373440428,), (1373440431,), (1373440436,), (1373440437,), (1373440439,), (1373440440,), (1373440450,), (1373440452,), (1373440453,), (1373440455,), (1373440458,), (1373440461,), (1373440474,), (1373440476,), (1373440479,), (1373440482,), (1373440485,), (1373440488,), (1373440504,), (1373440518,), (1373440520,), (1373440522,), (1373440524,), (1373440526,), (1373440529,), (1373440540,), (1373440541,), (1373440544,), (1373440547,), (1373440550,), (1373440552,), (1373440568,), (1373440569,), (1373440570,), (1373440571,), (1373440573,), (1373440576,), (1373440587,), (1373440589,), (1373440592,), (1373440594,), (1373440597,), (1373440599,), (1373440618,), (1373440623,), (1373440624,), (1373440626,), (1373440627,), (1373440630,), (1373440639,), (1373440640,), (1373440642,), (1373440644,), (1373440645,), (1373440649,), (1373440660,), (1373440661,), (1373440662,), (1373440663,), (1373440664,), (1373440667,), (1373440677,), (1373440679,), (1373440681,), (1373440682,), (1373440684,), (1373440686,), (1373440708,), (1373440709,), (1373440711,), (1373440713,), (1373440716,), (1373440719,), (1373440747,), (1373440761,), (1373440763,), (1373440766,), (1373440771,), (1373440775,), (1373440777,), (1373440787,), (1373440789,), (1373440791,), (1373440794,), (1373440798,), (1373440802,), (1373440815,), (1373440817,), (1373440819,), (1373440820,), (1373440822,), (1373440823,), (1373440842,), (1373440845,), (1373440847,), (1373440849,), (1373440852,), (1373440854,), (1373440874,), (1373440876,), (1373440878,), (1373440881,), (1373440884,), (1373440887,), (1373440894,), (1373440896,), (1373440898,), (1373440900,), (1373440902,), (1373440906,), (1373440919,), (1373440943,), (1373440975,), (1373440977,), (1373440979,), (1373440981,), (1373440983,), (1373440986,), (1373441011,), (1373441029,), (1373441031,), (1373441035,), (1373441039,), (1373441042,), (1373441045,), (1373441051,), (1373441053,), (1373441055,), (1373441058,), (1373441061,), (1373441063,), (1373441069,), (1373441071,), (1373441072,), (1373441074,), (1373441076,), (1373441078,), (1373441086,), (1373441087,), (1373441088,), (1373441094,), (1373441104,), (1373441107,), (1373441122,), (1373441152,), (1373441154,), (1373441158,), (1373441165,), (1373441167,), (1373441170,), (1373441187,), (1373441190,), (1373441192,), (1373441193,), (1373441195,), (1373441198,), (1373441212,), (1373441218,), (1373441220,), (1373441224,), (1373441228,), (1373441230,), (1373441243,), (1373441256,), (1373441282,), (1373441285,), (1373441287,), (1373441288,), (1373441290,), (1373441293,), (1373441303,), (1373441305,), (1373441308,), (1373441310,), (1373441315,), (1373441320,), (1373441334,), (1373441336,), (1373441337,), (1373441338,), (1373441340,), (1373441341,), (1373441349,), (1373441352,), (1373441354,), (1373441356,), (1373441359,), (1373441363,), (1373441384,), (1373441386,), (1373441388,), (1373441390,), (1373441394,), (1373441398,), (1373441414,), (1373441416,), (1373441417,), (1373441418,), (1373441420,), (1373441423,), (1373441915,), (1373441971,), (1373442014,), (1373442045,), (1373442069,), (1373442093,), (1373442457,), (1373442489,), (1373442536,), (1373442563,), (1373442581,), (1373442582,), (1373442727,), (1373443239,), (1373443263,), (1373443288,), (1373443315,), (1373443339,), (1373443366,), (1373443539,), (1373443551,), (1373443582,), (1373443615,), (1373443643,), (1373443671,), (1373444092,), (1373444115,), (1373444159,), (1373444188,), (1373444213,), (1373444242,), (1373444491,), (1373444516,), (1373444528,), (1373444529,), (1373444536,), (1373444560,), (1373444614,), (1373444880,), (1373444908,), (1373444937,), (1373444962,), (1373444985,), (1373445010,), (1373445258,), (1373445283,), (1373445291,), (1373445293,), (1373445295,), (1373445299,), (1373445603,), (1373445654,), (1373445706,), (1373445730,), (1373445755,), (1373445783,), (1373446058,), (1373446060,), (1373446063,), (1373446069,), (1373446096,), (1373446121,), (1373446276,), (1373446302,), (1373446305,), (1373446307,), (1373446311,), (1373446315,), (1373446316,), (1373446325,), (1373446337,), (1373446340,), (1373446341,), (1373446343,), (1373446345,), (1373446356,), (1373446357,), (1373446359,), (1373446361,), (1373446364,), (1373446368,), (1373446378,), (1373446384,), (1373446391,), (1373446397,), (1373446399,), (1373446401,), (1373446415,), (1373446416,), (1373446418,), (1373446420,), (1373446422,), (1373446425,), (1373446445,), (1373446448,), (1373446449,), (1373446451,), (1373446453,), (1373446455,), (1373446464,), (1373446466,), (1373446468,), (1373446470,), (1373446473,), (1373446476,), (1373446483,), (1373446485,), (1373446487,), (1373446488,), (1373446491,), (1373446494,), (1373446502,), (1373446516,), (1373446517,), (1373446519,), (1373446521,), (1373446523,), (1373446527,), (1373446535,), (1373446555,), (1373446557,), (1373446560,), (1373446562,), (1373446563,), (1373446566,), (1373446577,), (1373446580,), (1373446582,), (1373446585,), (1373446587,), (1373446590,), (1373446597,), (1373446600,), (1373446602,), (1373446604,), (1373446607,), (1373446610,), (1373446618,), (1373446621,), (1373446624,), (1373446627,), (1373446630,), (1373446633,), (1373446641,), (1373446644,), (1373446646,), (1373446648,), (1373446651,), (1373446653,), (1373446729,), (1373446733,), (1373446734,), (1373446736,), (1373446737,), (1373446739,), (1373446870,), (1373446908,), (1373446914,), (1373446916,), (1373446918,), (1373446919,), (1373446923,), (1373446953,), (1373446967,), (1373446969,), (1373446971,), (1373446972,), (1373446974,), (1373446977,), (1373446995,), (1373446997,), (1373446998,), (1373447000,), (1373447002,), (1373447009,), (1373447045,), (1373447054,), (1373447065,), (1373447073,), (1373447082,), (1373447107,), (1373447119,), (1373447121,), (1373447123,), (1373447124,), (1373447126,), (1373447127,), (1373447141,), (1373447142,), (1373447143,), (1373447144,), (1373447146,), (1373447149,), (1373447156,), (1373447157,), (1373447159,), (1373447160,), (1373447163,), (1373447166,), (1373447174,), (1373447177,), (1373447180,), (1373447182,), (1373447186,), (1373447190,), (1373447207,), (1373447218,), (1373447226,), (1373447229,), (1373447233,), (1373447237,), (1373447298,), (1373447318,), (1373447323,), (1373447325,), (1373447326,), (1373447329,), (1373447332,), (1373447370,), (1373447372,), (1373447379,), (1373447406,), (1373447408,), (1373447410,), (1373447418,), (1373447429,), (1373447436,), (1373447438,), (1373447442,), (1373447445,), (1373447454,), (1373447457,), (1373447459,), (1373447476,), (1373447497,), (1373447502,), (1373447520,), (1373447523,), (1373447525,), (1373447527,), (1373447530,), (1373447533,), (1373447551,), (1373447558,), (1373447561,), (1373447563,), (1373447565,), (1373447568,), (1373447575,), (1373447578,), (1373447580,), (1373447581,), (1373447584,), (1373447587,), (1373447597,), (1373447609,), (1373447613,), (1373447616,), (1373447618,), (1373447623,), (1373447702,), (1373447710,), (1373447716,), (1373447720,), (1373447722,), (1373447725,), (1373447750,), (1373447752,), (1373447753,), (1373447754,), (1373447756,), (1373447759,), (1373447783,), (1373447820,), (1373447821,), (1373447822,), (1373447861,), (1373447864,), (1373447866,), (1373447875,), (1373447884,), (1373447889,), (1373447891,), (1373447893,), (1373447896,), (1373447906,), (1373447907,), (1373447909,), (1373447911,), (1373447914,), (1373447916,), (1373447930,), (1373447931,), (1373447932,), (1373447933,), (1373447935,), (1373447937,), (1373447951,), (1373447952,), (1373447953,), (1373447954,), (1373447955,), (1373447957,), (1373448000,), (1373448025,), (1373448050,), (1373448076,), (1373448102,), (1373448126,), (1373449103,), (1373449180,), (1373449251,), (1373449312,), (1373449345,), (1373449387,), (1373449748,), (1373449978,), (1373449988,), (1373449990,), (1373449999,), (1373450024,), (1373450037,), (1373450050,), (1373450073,), (1373450078,), (1373450079,), (1373450081,), (1373450083,), (1373450085,), (1373450096,), (1373450117,), (1373450122,), (1373450125,), (1373450127,), (1373450130,), (1373450133,), (1373450150,), (1373450157,), (1373450159,), (1373450161,), (1373450163,), (1373450166,), (1373450176,), (1373450184,), (1373450187,), (1373450188,), (1373450189,), (1373450191,), (1373450201,), (1373450204,), (1373450206,), (1373450208,), (1373450210,), (1373450212,), (1373450222,), (1373450232,), (1373450235,), (1373450238,), (1373450240,), (1373450243,), (1373450259,), (1373450313,), (1373450331,), (1373450353,), (1373450405,), (1373450408,), (1373450411,), (1373450465,), (1373450486,), (1373450489,), (1373450490,), (1373450493,), (1373450496,), (1373450501,), (1373450503,), (1373450505,), (1373450507,), (1373450509,), (1373450510,), (1373450528,), (1373450530,), (1373450532,), (1373450533,), (1373450535,), (1373450539,), (1373450558,), (1373450561,), (1373450564,), (1373450565,), (1373450567,), (1373450569,), (1373450586,), (1373450589,), (1373450590,), (1373450592,), (1373450593,), (1373450594,), (1373450604,), (1373450605,), (1373450607,), (1373450609,), (1373450611,), (1373450612,), (1373450624,), (1373450626,), (1373450628,), (1373450629,), (1373450632,), (1373450634,), (1373450646,), (1373450648,), (1373450650,), (1373450651,), (1373450654,), (1373450657,), (1373450677,), (1373450678,), (1373450685,), (1373450686,), (1373450688,), (1373450690,), (1373450781,), (1373450790,), (1373450791,), (1373450792,), (1373450793,), (1373450795,), (1373450796,), (1373450811,), (1373450818,), (1373450821,), (1373450822,), (1373450824,), (1373450827,), (1373450838,), (1373450842,), (1373450846,), (1373450848,), (1373450849,), (1373450853,), (1373450904,), (1373450910,), (1373450913,), (1373450914,), (1373450917,), (1373450920,), (1373450928,), (1373450931,), (1373450932,), (1373451003,), (1373451006,), (1373451009,), (1373451099,), (1373451103,), (1373451104,), (1373451105,), (1373451121,), (1373451136,), (1373451174,), (1373451181,), (1373451185,), (1373451213,), (1373451222,), (1373451226,), (1373451252,), (1373451275,), (1373451276,), (1373451277,), (1373451278,), (1373451280,), (1373451282,), (1373451304,), (1373451335,), (1373451369,), (1373451370,), (1373451371,), (1373451373,), (1373451376,), (1373451379,), (1373451397,), (1373451398,), (1373451407,), (1373451409,), (1373451411,), (1373451414,), (1373451446,), (1373451448,), (1373451449,), (1373451460,), (1373451467,), (1373451469,), (1373451507,), (1373451513,), (1373451527,), (1373451531,), (1373451534,), (1373451537,), (1373451601,), (1373451604,), (1373451607,), (1373451609,), (1373451612,), (1373451616,), (1373451625,), (1373451627,), (1373451629,), (1373451630,), (1373451633,), (1373451635,), (1373451644,), (1373451651,), (1373451654,), (1373451656,), (1373451658,), (1373451659,), (1373451673,), (1373451692,), (1373451698,), (1373451700,), (1373451701,), (1373451704,), (1373451706,), (1373451715,), (1373451716,), (1373451718,), (1373451721,), (1373451724,), (1373451727,), (1373451737,), (1373451744,), (1373451750,), (1373451752,), (1373451769,), (1373451772,), (1373451819,), (1373451821,), (1373451822,), (1373451823,), (1373451826,), (1373451830,), (1373451845,), (1373451852,), (1373451854,), (1373451857,), (1373451859,), (1373451862,), (1373451870,), (1373451872,), (1373451874,), (1373451876,), (1373451879,), (1373451881,), (1373451898,), (1373451900,), (1373451901,), (1373451902,), (1373451904,), (1373451906,), (1373451910,), (1373451918,), (1373451921,), (1373451922,), (1373451925,), (1373451930,), (1373451942,), (1373451946,), (1373451949,), (1373451952,), (1373451954,), (1373451955,), (1373451961,), (1373451977,), (1373451983,), (1373451984,), (1373451985,), (1373451987,), (1373451991,), (1373452016,), (1373452019,), (1373452025,), (1373452027,), (1373452029,), (1373452032,), (1373452046,), (1373452054,), (1373452059,), (1373452061,), (1373452065,), (1373452069,), (1373452077,), (1373452078,), (1373452113,), (1373452123,), (1373452125,), (1373452127,), (1373452161,), (1373452163,), (1373452165,), (1373452167,), (1373452169,), (1373452171,), (1373452265,), (1373452266,), (1373452269,), (1373452271,), (1373452273,), (1373452277,), (1373452289,), (1373452292,), (1373452295,), (1373452297,), (1373452300,), (1373452306,), (1373453132,), (1373453137,), (1373453155,), (1373453181,), (1373453198,), (1373453213,), (1373453281,), (1373453310,), (1373453312,), (1373453314,), (1373453316,), (1373453318,), (1373453321,), (1373453338,), (1373453355,), (1373453359,), (1373453360,), (1373453361,), (1373453363,), (1373453366,), (1373453380,), (1373453383,), (1373453386,), (1373453388,), (1373453390,), (1373453392,), (1373453404,), (1373453408,), (1373453411,), (1373453422,), (1373453429,), (1373453437,), (1373453457,), (1373453460,), (1373453463,), (1373453466,), (1373453469,), (1373453472,), (1373453481,), (1373453499,), (1373453503,), (1373453504,), (1373453507,), (1373453510,), (1373453524,), (1373453536,), (1373453543,), (1373453544,), (1373453546,), (1373453548,), (1373453569,), (1373453586,), (1373453590,), (1373453594,), (1373453597,), (1373453599,), (1373453602,), (1373453623,), (1373453637,), (1373453640,), (1373453642,), (1373453643,), (1373453645,), (1373453647,), (1373453663,), (1373453667,), (1373453672,), (1373453673,), (1373453674,), (1373453677,), (1373453693,), (1373453699,), (1373453706,), (1373453708,), (1373453712,), (1373453716,), (1373453732,), (1373453735,), (1373453737,), (1373453739,), (1373453741,), (1373453744,), (1373453761,), (1373453765,), (1373453768,), (1373453769,), (1373453771,), (1373453773,), (1373453787,), (1373453790,), (1373453792,), (1373453794,), (1373453796,), (1373453799,), (1373453813,), (1373453815,), (1373453816,), (1373453817,), (1373453819,), (1373453820,), (1373453842,), (1373453852,), (1373453855,), (1373453857,), (1373453860,), (1373453862,), (1373453874,), (1373453890,), (1373453898,), (1373453906,), (1373453908,), (1373453910,), (1373453912,), (1373453927,), (1373453931,), (1373453934,), (1373453936,), (1373453938,), (1373453941,), (1373453949,), (1373453959,), (1373453964,), (1373453966,), (1373453968,), (1373453971,), (1373453991,), (1373453998,), (1373454010,), (1373454012,), (1373454015,), (1373454018,), (1373454041,), (1373454049,), (1373454054,), (1373454058,), (1373454062,), (1373454065,), (1373454091,), (1373454116,), (1373454118,), (1373454120,), (1373454121,), (1373454123,), (1373454125,), (1373454146,), (1373454149,), (1373454151,), (1373454153,), (1373454154,), (1373454156,), (1373454200,), (1373454251,), (1373454253,), (1373454256,), (1373454258,), (1373454261,), (1373454264,), (1373454280,), (1373454302,), (1373454309,), (1373454312,), (1373454314,), (1373454318,), (1373454322,), (1373454334,), (1373454337,), (1373454339,), (1373454340,), (1373454343,), (1373454346,), (1373454359,), (1373454366,), (1373454370,), (1373454373,), (1373454376,), (1373454379,), (1373454397,), (1373454401,), (1373454404,), (1373454407,), (1373454409,), (1373454411,), (1373454424,), (1373454427,), (1373454430,), (1373454432,), (1373454435,), (1373454438,), (1373454449,), (1373454455,), (1373454458,), (1373454459,), (1373454463,), (1373454467,), (1373454478,), (1373454482,), (1373454485,), (1373454487,), (1373454491,), (1373454495,), (1373454509,), (1373454514,), (1373454518,), (1373454521,), (1373454526,), (1373454531,), (1373454542,), (1373454546,), (1373454549,), (1373454551,), (1373454555,), (1373454559,), (1373454574,), (1373454591,), (1373454596,), (1373454598,), (1373454600,), (1373454601,), (1373454603,), (1373454617,), (1373454620,), (1373454621,), (1373454622,), (1373454624,), (1373454626,), (1373454642,), (1373454646,), (1373454656,), (1373454662,), (1373454664,), (1373454666,), (1373454678,), (1373454682,), (1373454684,), (1373454685,), (1373454688,), (1373454690,), (1373454699,), (1373454710,), (1373454716,), (1373454718,), (1373454720,), (1373454722,), (1373454742,), (1373454743,), (1373454745,), (1373454746,), (1373454747,), (1373454749,), (1373454762,), (1373454766,), (1373454770,), (1373454772,), (1373454776,), (1373454779,), (1373454792,), (1373454801,), (1373454809,), (1373454811,), (1373454812,), (1373454814,), (1373454831,), (1373454833,), (1373454835,), (1373454836,), (1373454839,), (1373454841,), (1373454872,), (1373454902,), (1373454910,), (1373454918,), (1373454919,), (1373454921,), (1373454923,), (1373454939,), (1373454946,), (1373454949,), (1373454952,), (1373454955,), (1373454958,), (1373454972,), (1373454973,), (1373454974,), (1373454975,), (1373454976,), (1373454978,), (1373454993,), (1373454994,), (1373454995,), (1373454996,), (1373454998,), (1373454999,), (1373455013,), (1373455021,), (1373455027,), (1373455028,), (1373455030,), (1373455032,), (1373455044,), (1373455045,), (1373455052,), (1373455060,), (1373455062,), (1373455064,), (1373455082,), (1373455087,), (1373455090,), (1373455093,), (1373455096,), (1373455103,), (1373455368,), (1373455616,), (1373455632,), (1373455634,), (1373455658,), (1373455660,), (1373455662,), (1373455677,), (1373455695,), (1373455719,), (1373455743,), (1373455771,), (1373455795,), (1373456026,), (1373456029,), (1373456032,), (1373456035,), (1373456037,), (1373456055,), (1373456610,), (1373456672,), (1373456742,), (1373456815,), (1373456866,), (1373456868,), (1373457031,), (1373457042,), (1373457102,), (1373457104,), (1373457133,), (1373457136,), (1373457149,), (1373457150,), (1373457153,), (1373457156,), (1373457159,), (1373457161,), (1373457177,), (1373457188,), (1373457189,), (1373457191,), (1373457192,), (1373457193,), (1373457213,), (1373457218,), (1373457220,), (1373457223,), (1373457225,), (1373457228,), (1373457247,), (1373457252,), (1373457254,), (1373457257,), (1373457260,), (1373457262,), (1373457273,), (1373457293,), (1373457299,), (1373457307,), (1373457314,), (1373457316,), (1373457319,), (1373457341,), (1373457347,), (1373457350,), (1373457352,), (1373457353,), (1373457355,), (1373457374,), (1373457377,), (1373457379,), (1373457381,), (1373457382,), (1373457383,), (1373457397,), (1373457403,), (1373457404,), (1373457406,), (1373457408,), (1373457410,), (1373457420,), (1373457427,), (1373457433,), (1373457440,), (1373457442,), (1373457444,), (1373457462,), (1373457483,), (1373457486,), (1373457488,), (1373457489,), (1373457491,), (1373457493,), (1373457507,), (1373457526,), (1373457528,), (1373457530,), (1373457531,), (1373457533,), (1373457535,), (1373457562,), (1373457577,), (1373457579,), (1373457580,), (1373457582,), (1373457584,), (1373457585,), (1373457602,), (1373457604,), (1373457605,), (1373457607,), (1373457609,), (1373457611,), (1373457619,), (1373457627,), (1373457634,), (1373457638,), (1373457641,), (1373457644,), (1373457656,), (1373457658,), (1373457659,), (1373457660,), (1373457662,), (1373457664,), (1373457686,), (1373457690,), (1373457692,), (1373457694,), (1373457696,), (1373457698,), (1373457708,), (1373457733,), (1373457735,), (1373457738,), (1373457740,), (1373457743,), (1373457744,), (1373457756,), (1373457765,), (1373457773,), (1373457776,), (1373457778,), (1373457780,), (1373457788,), (1373457792,), (1373457795,), (1373457798,), (1373457801,), (1373457804,), (1373457821,), (1373457823,), (1373457824,), (1373457826,), (1373457828,), (1373457829,), (1373457849,), (1373457852,), (1373457854,), (1373457855,), (1373457857,), (1373457859,), (1373457866,), (1373457873,), (1373457877,), (1373457881,), (1373457884,), (1373457887,), (1373457893,), (1373457897,), (1373457901,), (1373457903,), (1373457904,), (1373457906,), (1373457916,), (1373457917,), (1373457919,), (1373457920,), (1373457922,), (1373457924,), (1373457944,), (1373457964,), (1373457972,), (1373457975,), (1373457977,), (1373457979,), (1373457981,), (1373457992,), (1373457995,), (1373457996,), (1373457999,), (1373458001,), (1373458003,), (1373458014,), (1373458017,), (1373458019,), (1373458022,), (1373458024,), (1373458026,), (1373458036,), (1373458048,), (1373458057,), (1373458058,), (1373458060,), (1373458063,), (1373458075,), (1373458077,), (1373458079,), (1373458080,), (1373458082,), (1373458084,), (1373458099,), (1373458104,), (1373458106,), (1373458107,), (1373458109,), (1373458111,), (1373458116,), (1373458117,), (1373458119,), (1373458121,), (1373458122,), (1373458124,), (1373458128,), (1373458136,), (1373458143,), (1373458144,), (1373458146,), (1373458148,), (1373458160,), (1373458164,), (1373458166,), (1373458167,), (1373458170,), (1373458173,), (1373458190,), (1373458199,), (1373458202,), (1373458204,), (1373458206,), (1373458208,), (1373458211,), (1373458213,), (1373458215,), (1373458216,), (1373458219,), (1373458222,), (1373458228,), (1373458230,), (1373458232,), (1373458233,), (1373458236,), (1373458239,), (1373458244,), (1373458249,), (1373458255,), (1373458256,), (1373458259,), (1373458262,), (1373458280,), (1373458297,), (1373458305,), (1373458308,), (1373458310,), (1373458311,), (1373458314,), (1373458330,), (1373458338,), (1373458341,), (1373458343,), (1373458344,), (1373458347,), (1373458360,), (1373458362,), (1373458364,), (1373458365,), (1373458367,), (1373458368,), (1373458395,), (1373458399,), (1373458400,), (1373458401,), (1373458403,), (1373458405,), (1373458419,), (1373458420,), (1373458422,), (1373458424,), (1373458427,), (1373458430,), (1373458446,), (1373458448,), (1373458450,), (1373458451,), (1373458454,), (1373458456,), (1373458477,), (1373458700,), (1373458743,), (1373458787,), (1373458819,), (1373458854,), (1373458889,), (1373459578,), (1373459639,), (1373459653,), (1373459659,), (1373459664,), (1373459665,), (1373459667,), (1373459669,), (1373459678,), (1373459684,), (1373459686,), (1373459688,), (1373459691,), (1373459694,), (1373459711,), (1373459716,), (1373459721,), (1373459722,), (1373459723,), (1373459724,), (1373459739,), (1373459740,), (1373459741,), (1373459742,), (1373459744,), (1373459746,), (1373459768,), (1373459776,), (1373459779,), (1373459782,), (1373459783,), (1373459785,), (1373459805,), (1373459809,), (1373459811,), (1373459813,), (1373459815,), (1373459817,), (1373459829,), (1373459835,), (1373459842,), (1373459843,), (1373459845,), (1373459847,), (1373459860,), (1373459863,), (1373459867,), (1373459869,), (1373459871,), (1373459873,), (1373459882,), (1373459890,), (1373459902,), (1373459905,), (1373459909,), (1373459912,), (1373459917,), (1373459925,), (1373459930,), (1373459932,), (1373459934,), (1373459937,), (1373459953,), (1373459955,), (1373459957,), (1373459960,), (1373459965,), (1373459969,), (1373459979,), (1373459981,), (1373459983,), (1373459985,), (1373459988,), (1373459989,), (1373460012,), (1373460014,), (1373460016,), (1373460017,), (1373460019,), (1373460021,), (1373460036,), (1373460037,), (1373460039,), (1373460042,), (1373460043,), (1373460045,), (1373460054,), (1373460057,), (1373460068,), (1373460074,), (1373460076,), (1373460078,), (1373460092,), (1373460094,), (1373460095,), (1373460097,), (1373460099,), (1373460100,), (1373460120,), (1373460127,), (1373460131,), (1373460133,), (1373460135,), (1373460136,), (1373460149,), (1373460157,), (1373460161,), (1373460163,), (1373460167,), (1373460170,), (1373460178,), (1373460185,), (1373460190,), (1373460192,), (1373460196,), (1373460201,), (1373460210,), (1373460213,), (1373460215,), (1373460216,), (1373460219,), (1373460222,), (1373460237,), (1373460240,), (1373460242,), (1373460244,), (1373460245,), (1373460247,), (1373460264,), (1373460267,), (1373460268,), (1373460269,), (1373460271,), (1373460273,), (1373460286,), (1373460293,), (1373460298,), (1373460301,), (1373460303,), (1373460306,), (1373460323,), (1373460325,), (1373460326,), (1373460328,), (1373460330,), (1373460333,), (1373460356,), (1373460363,), (1373460366,), (1373460368,), (1373460371,), (1373460374,), (1373460385,), (1373460394,), (1373460399,), (1373460401,), (1373460403,), (1373460405,), (1373460426,), (1373460429,), (1373460430,), (1373460432,), (1373460435,), (1373460439,), (1373460455,), (1373460458,), (1373460460,), (1373460461,), (1373460464,), (1373460467,), (1373460485,), (1373460531,), (1373460533,), (1373460534,), (1373460535,), (1373460537,), (1373460539,), (1373460567,), (1373460576,), (1373460577,), (1373460579,), (1373460580,), (1373460582,), (1373460602,), (1373460605,), (1373460608,), (1373460612,), (1373460615,), (1373460618,), (1373460634,), (1373460638,), (1373460642,), (1373460644,), (1373460646,), (1373460648,), (1373460679,), (1373460683,), (1373460686,), (1373460689,), (1373460691,), (1373460693,), (1373460711,), (1373460720,), (1373460725,), (1373460727,), (1373460731,), (1373460736,), (1373460752,), (1373460758,), (1373460764,), (1373460766,), (1373460769,), (1373460770,), (1373460788,), (1373460790,), (1373460793,), (1373460796,), (1373460800,), (1373460804,), (1373460818,), (1373460827,), (1373460832,), (1373460834,), (1373460835,), (1373460838,), (1373460858,), (1373460861,), (1373460863,), (1373460865,), (1373460866,), (1373460869,), (1373460879,), (1373460881,), (1373460882,), (1373460884,), (1373460885,), (1373460888,), (1373460894,), (1373460902,), (1373460905,), (1373460907,), (1373460908,), (1373460911,), (1373460930,), (1373460934,), (1373460937,), (1373460938,), (1373460941,), (1373460944,), (1373460956,), (1373460964,), (1373460973,), (1373460974,), (1373460977,), (1373460979,), (1373460990,), (1373460991,), (1373460993,), (1373460996,), (1373460999,), (1373461000,), (1373461018,), (1373461023,), (1373461025,), (1373461026,), (1373461028,), (1373461030,), (1373461039,), (1373461047,), (1373461049,), (1373461050,), (1373461053,), (1373461056,), (1373461070,), (1373461072,), (1373461074,), (1373461075,), (1373461077,), (1373461079,), (1373461090,), (1373461092,), (1373461094,), (1373461095,), (1373461098,), (1373461101,), (1373461106,), (1373461110,), (1373461112,), (1373461114,), (1373461116,), (1373461118,), (1373461123,), (1373461125,), (1373461129,), (1373461131,), (1373461132,), (1373461135,), (1373461145,), (1373461149,), (1373461156,), (1373461163,), (1373461166,), (1373461167,), (1373461183,), (1373461188,), (1373461194,), (1373461196,), (1373461199,), (1373461201,), (1373461217,), (1373461224,), (1373461227,), (1373461228,), (1373461230,), (1373461233,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25257228]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] map_info['map_portfolio_photo'] : {25257228: [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183, 1373461167, 1373461166, 1373461163, 1373461156, 1373461149, 1373461145, 1373461135, 1373461132, 1373461131, 1373461129, 1373461125, 1373461123, 1373461118, 1373461116, 1373461114, 1373461112, 1373461110, 1373461106, 1373461101, 1373461098, 1373461095, 1373461094, 1373461092, 1373461090, 1373461079, 1373461077, 1373461075, 1373461074, 1373461072, 1373461070, 1373461056, 1373461053, 1373461050, 1373461049, 1373461047, 1373461039, 1373461030, 1373461028, 1373461026, 1373461025, 1373461023, 1373461018]} final : True mtd_id 4302 list_pids : [1373461233, 1373461230, 1373461228, 1373461227, 1373461224, 1373461217, 1373461201, 1373461199, 1373461196, 1373461194, 1373461188, 1373461183] Looping around the photos to save general results len do output : 1 /25257228Didn'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, '3334799') ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799') ('4302', None, None, None, None, None, None, None, '3334799') ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25257228', 'None', None, None, None, None, '3334799'), ('4302', '25257228', '1373461233', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461230', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461228', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461227', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461224', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461217', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461201', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461199', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461196', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461194', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461188', None, None, None, None, None, '3334799'), ('4302', '25257228', '1373461183', None, None, None, None, None, '3334799')] time used for this insertion : 0.019453048706054688 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.020811080932617 time spend to save output : 0.019702434539794922 total time spend for step 5 : 3.040513515472412 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 (3334799) 2.12user 2.46system 0:11.65elapsed 39%CPU (0avgtext+0avgdata 159940maxresident)k 56inputs+9304outputs (2major+64073minor)pagefaults 0swaps