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 : 2774960 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 (2538847) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2538847) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167022 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2538847'] with mtr_portfolio_ids : ['20167022'] and first list_photo_ids : [] new path : /proc/2774960/ Name: python3 Umask: 0002 State: R (running) Tgid: 2774960 Ngid: 0 Pid: 2774960 PPid: 2774959 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2774960 NSpid: 2774960 NSpgid: 2774661 NSsid: 2774661 VmPeak: 1106580 kB VmSize: 1106556 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99176 kB VmRSS: 99176 kB RssAnon: 59736 kB RssFile: 39440 kB RssShmem: 0 kB VmData: 865308 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 45 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2774960', 'Ngid': '0', 'Pid': '2774960', 'PPid': '2774959', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2774960', 'NSpid': '2774960', 'NSpgid': '2774661', 'NSsid': '2774661', 'VmPeak': '1106580 kB', 'VmSize': '1106556 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99176 kB', 'VmRSS': '99176 kB', 'RssAnon': '59736 kB', 'RssFile': '39440 kB', 'RssShmem': '0 kB', 'VmData': '865308 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '45', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '2774960', '1106580', '0', '1106556', '865308', '99176', b'', 'marlene', '2538847') 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 (20167022) 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 (2538847 ) ) 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 (20167022) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1334134733, 'portfolio_id': 20167022}, {'photo_id': 1334083075, 'portfolio_id': 20167022}, {'photo_id': 1334083060, 'portfolio_id': 20167022}, {'photo_id': 1334083058, 'portfolio_id': 20167022}, {'photo_id': 1334083042, 'portfolio_id': 20167022}, {'photo_id': 1334083041, 'portfolio_id': 20167022}, {'photo_id': 1334083040, 'portfolio_id': 20167022}, {'photo_id': 1334083030, 'portfolio_id': 20167022}, {'photo_id': 1334083019, 'portfolio_id': 20167022}, {'photo_id': 1334082992, 'portfolio_id': 20167022}, {'photo_id': 1334082937, 'portfolio_id': 20167022}, {'photo_id': 1334082921, 'portfolio_id': 20167022}, {'photo_id': 1334082881, 'portfolio_id': 20167022}, {'photo_id': 1334082872, 'portfolio_id': 20167022}, {'photo_id': 1334082870, 'portfolio_id': 20167022}, {'photo_id': 1334082711, 'portfolio_id': 20167022}, {'photo_id': 1334082710, 'portfolio_id': 20167022}, {'photo_id': 1334082709, 'portfolio_id': 20167022}, {'photo_id': 1334082690, 'portfolio_id': 20167022}, {'photo_id': 1334082687, 'portfolio_id': 20167022}, {'photo_id': 1334082684, 'portfolio_id': 20167022}, {'photo_id': 1334082682, 'portfolio_id': 20167022}, {'photo_id': 1334082680, 'portfolio_id': 20167022}, {'photo_id': 1334082663, 'portfolio_id': 20167022}, {'photo_id': 1334082659, 'portfolio_id': 20167022}, {'photo_id': 1334082656, 'portfolio_id': 20167022}, {'photo_id': 1334082655, 'portfolio_id': 20167022}, {'photo_id': 1334082630, 'portfolio_id': 20167022}, {'photo_id': 1334082629, 'portfolio_id': 20167022}, {'photo_id': 1334082588, 'portfolio_id': 20167022}, {'photo_id': 1334082587, 'portfolio_id': 20167022}, {'photo_id': 1334082583, 'portfolio_id': 20167022}, {'photo_id': 1334082575, 'portfolio_id': 20167022}, {'photo_id': 1334082573, 'portfolio_id': 20167022}, {'photo_id': 1334082572, 'portfolio_id': 20167022}, {'photo_id': 1334082478, 'portfolio_id': 20167022}, {'photo_id': 1334082430, 'portfolio_id': 20167022}, {'photo_id': 1334082429, 'portfolio_id': 20167022}, {'photo_id': 1334082278, 'portfolio_id': 20167022}, {'photo_id': 1334082277, 'portfolio_id': 20167022}, {'photo_id': 1334082275, 'portfolio_id': 20167022}, {'photo_id': 1334082260, 'portfolio_id': 20167022}, {'photo_id': 1334082259, 'portfolio_id': 20167022}, {'photo_id': 1334082257, 'portfolio_id': 20167022}, {'photo_id': 1334082255, 'portfolio_id': 20167022}, {'photo_id': 1334082239, 'portfolio_id': 20167022}, {'photo_id': 1334082238, 'portfolio_id': 20167022}, {'photo_id': 1334082233, 'portfolio_id': 20167022}, {'photo_id': 1334082232, 'portfolio_id': 20167022}, {'photo_id': 1334082231, 'portfolio_id': 20167022}, {'photo_id': 1334082230, 'portfolio_id': 20167022}, {'photo_id': 1334082215, 'portfolio_id': 20167022}, {'photo_id': 1334082214, 'portfolio_id': 20167022}, {'photo_id': 1334082213, 'portfolio_id': 20167022}, {'photo_id': 1334082076, 'portfolio_id': 20167022}, {'photo_id': 1334082074, 'portfolio_id': 20167022}] map_portfolio_id_photo_id: {20167022: [1334134733, 1334083075, 1334083060, 1334083058, 1334083042, 1334083041, 1334083040, 1334083030, 1334083019, 1334082992, 1334082937, 1334082921, 1334082881, 1334082872, 1334082870, 1334082711, 1334082710, 1334082709, 1334082690, 1334082687, 1334082684, 1334082682, 1334082680, 1334082663, 1334082659, 1334082656, 1334082655, 1334082630, 1334082629, 1334082588, 1334082587, 1334082583, 1334082575, 1334082573, 1334082572, 1334082478, 1334082430, 1334082429, 1334082278, 1334082277, 1334082275, 1334082260, 1334082259, 1334082257, 1334082255, 1334082239, 1334082238, 1334082233, 1334082232, 1334082231, 1334082230, 1334082215, 1334082214, 1334082213, 1334082076, 1334082074]} ##### 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.039322853088378906 #### 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 Tue Feb 4 05:59:31 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 (20167022) 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 : 20167022 get user id for portfolio 20167022 get sub ptf for main ptf 20167022, type 3726 and hashtags ['environnement', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'kraft', 'Carton_gris', 'metal', 'Carton_brun', 'plastique', 'flou', 'cartonnette', 'mal_croppe'] 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`=20167022 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Teint_Dans_La_Masse','papier','kraft','Carton_gris','metal','Carton_brun','plastique','flou','cartonnette','mal_croppe')) 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`=20167022 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Teint_Dans_La_Masse','papier','kraft','Carton_gris','metal','Carton_brun','plastique','flou','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20167022, 'sub_port_id': 20167024, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878707, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'Carton_gris': {'main_port_id': 20167022, 'sub_port_id': 20167025, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878708, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20167022, 'sub_port_id': 20167026, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878709, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'kraft': {'main_port_id': 20167022, 'sub_port_id': 20167027, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878710, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'environnement': {'main_port_id': 20167022, 'sub_port_id': 20167028, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878711, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'flou': {'main_port_id': 20167022, 'sub_port_id': 20167029, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878712, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'metal': {'main_port_id': 20167022, 'sub_port_id': 20167030, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878713, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'plastique': {'main_port_id': 20167022, 'sub_port_id': 20167031, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878714, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'cartonnette': {'main_port_id': 20167022, 'sub_port_id': 20167032, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878715, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'papier': {'main_port_id': 20167022, 'sub_port_id': 20167033, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878716, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'autre_refus': {'main_port_id': 20167022, 'sub_port_id': 20167034, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878717, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}, 'mal_croppe': {'main_port_id': 20167022, 'sub_port_id': 20167035, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878718, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20167024 , 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=20167022 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 (20167024) result : ((1334082227,), (1334082245,), (1334082249,), (1334082285,), (1334082286,), (1334082392,), (1334082609,), (1334082700,), (1334082984,), (1334082985,), (1334083037,), (1334083038,), (1334083079,), (1334083080,), (1334083081,), (1334083232,), (1334083233,), (1334083234,), (1334083235,), (1334091326,), (1334091327,), (1334091328,), (1334091329,), (1334091330,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167025 , 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=20167022 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 (20167025) result : ((1334082243,), (1334082244,), (1334082282,), (1334082283,), (1334082383,), (1334082385,), (1334082578,), (1334082579,), (1334082599,), (1334082600,), (1334082601,), (1334082602,), (1334082603,), (1334082621,), (1334082622,), (1334082696,), (1334082697,), (1334083027,), (1334083031,), (1334083070,), (1334083071,), (1334083072,), (1334091319,), (1334091320,), (1334091321,), (1334091322,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167026 , 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=20167022 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 (20167026) result : ((1334082224,), (1334082225,), (1334082240,), (1334082241,), (1334082281,), (1334082574,), (1334082695,), (1334082981,), (1334082982,), (1334083020,), (1334083021,), (1334083022,), (1334083023,), (1334083227,), (1334083228,), (1334083229,), (1334091318,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167027 , 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=20167022 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 (20167027) result : ((1334082291,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167028 , 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=20167022 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 (20167028) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167029 , 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=20167022 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 (20167029) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167030 , 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=20167022 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 (20167030) result : ((1334082293,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167031 , 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=20167022 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 (20167031) result : ((1334082288,), (1334082582,), (1334082610,), (1334082701,), (1334082702,), (1334083039,), (1334083237,), (1334083238,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167032 , 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=20167022 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 (20167032) result : ((1334082284,), (1334082580,), (1334082581,), (1334082605,), (1334082698,), (1334083032,), (1334083033,), (1334083034,), (1334083035,), (1334083036,), (1334083076,), (1334083077,), (1334083078,), (1334083231,), (1334091323,), (1334091324,), (1334091325,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167033 , 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=20167022 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 (20167033) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167034 , 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=20167022 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 (20167034) result : ((1334082242,), (1334082576,), (1334082577,), (1334082598,), (1334082983,), (1334083024,), (1334083025,), (1334083028,), (1334083029,), (1334083059,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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 20167035 , 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=20167022 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 (20167035) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20167022) result : ((1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,)) 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`=20167022 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Teint_Dans_La_Masse','papier','kraft','Carton_gris','metal','Carton_brun','plastique','flou','cartonnette','mal_croppe')) 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`=20167022 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','Teint_Dans_La_Masse','papier','kraft','Carton_gris','metal','Carton_brun','plastique','flou','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20167022, 'sub_port_id': 20167036, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878719, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'Carton_gris': {'main_port_id': 20167022, 'sub_port_id': 20167037, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878720, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20167022, 'sub_port_id': 20167038, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878721, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'kraft': {'main_port_id': 20167022, 'sub_port_id': 20167039, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878722, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'environnement': {'main_port_id': 20167022, 'sub_port_id': 20167040, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878723, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'flou': {'main_port_id': 20167022, 'sub_port_id': 20167041, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878724, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'metal': {'main_port_id': 20167022, 'sub_port_id': 20167042, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878725, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'plastique': {'main_port_id': 20167022, 'sub_port_id': 20167043, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878726, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'cartonnette': {'main_port_id': 20167022, 'sub_port_id': 20167044, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878727, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'papier': {'main_port_id': 20167022, 'sub_port_id': 20167045, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878728, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'autre_refus': {'main_port_id': 20167022, 'sub_port_id': 20167046, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878729, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}, 'mal_croppe': {'main_port_id': 20167022, 'sub_port_id': 20167047, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12878730, 'last_updated_at': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 3, 5, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 3, 5, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167036,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167025 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167027 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167029 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167031 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167033 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20167047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20167035 lien utilise dans velours : https://www.fotonower.com/velours/20167036,20167037,20167038,20167039,20167040,20167041,20167042,20167043,20167044,20167045,20167046,20167047?tags=Carton_brun,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,flou,metal,plastique,cartonnette,papier,autre_refus,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20167022]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1334134733] map_info['map_portfolio_photo'] : {20167022: [1334134733, 1334083075, 1334083060, 1334083058, 1334083042, 1334083041, 1334083040, 1334083030, 1334083019, 1334082992, 1334082937, 1334082921, 1334082881, 1334082872, 1334082870, 1334082711, 1334082710, 1334082709, 1334082690, 1334082687, 1334082684, 1334082682, 1334082680, 1334082663, 1334082659, 1334082656, 1334082655, 1334082630, 1334082629, 1334082588, 1334082587, 1334082583, 1334082575, 1334082573, 1334082572, 1334082478, 1334082430, 1334082429, 1334082278, 1334082277, 1334082275, 1334082260, 1334082259, 1334082257, 1334082255, 1334082239, 1334082238, 1334082233, 1334082232, 1334082231, 1334082230, 1334082215, 1334082214, 1334082213, 1334082076, 1334082074]} final : False mtd_id 4302 list_pids : [1334134733] Looping around the photos to save general results len do output : 1 /20167022. 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, '2538847') ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20167022', "{'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035}", None, None, None, None, '2538847'), ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847')] time used for this insertion : 0.021909475326538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4749023914337158 time spend to save output : 0.02217578887939453 total time spend for step 1 : 1.4970781803131104 step2:final Tue Feb 4 05:59:32 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 (20167022) 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 20167022 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1334082076,1334082074,1334082215,1334082214,1334082213,1334082233,1334082232,1334082231,1334082230,1334082239,1334082238,1334082260,1334082259,1334082257,1334082255,1334082278,1334082277,1334082275,1334082478,1334082430,1334082429,1334082588,1334082587,1334082583,1334082575,1334082573,1334082572,1334082663,1334082659,1334082656,1334082655,1334082630,1334082629,1334082690,1334082687,1334082684,1334082682,1334082680,1334082711,1334082710,1334082709,1334082937,1334082921,1334082881,1334082872,1334082870,1334083042,1334083041,1334083040,1334083030,1334083019,1334082992,1334083060,1334083058,1334134733,1334083075); 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([20167022]) Inside saveOutput : final : False verbose : True original output for save of step final : {1334134733: ('0.04208141107301164',)} new output for save of step final : {1334134733: ('0.04208141107301164',)} [1334134733] map_info['map_portfolio_photo'] : {20167022: [1334134733, 1334083075, 1334083060, 1334083058, 1334083042, 1334083041, 1334083040, 1334083030, 1334083019, 1334082992, 1334082937, 1334082921, 1334082881, 1334082872, 1334082870, 1334082711, 1334082710, 1334082709, 1334082690, 1334082687, 1334082684, 1334082682, 1334082680, 1334082663, 1334082659, 1334082656, 1334082655, 1334082630, 1334082629, 1334082588, 1334082587, 1334082583, 1334082575, 1334082573, 1334082572, 1334082478, 1334082430, 1334082429, 1334082278, 1334082277, 1334082275, 1334082260, 1334082259, 1334082257, 1334082255, 1334082239, 1334082238, 1334082233, 1334082232, 1334082231, 1334082230, 1334082215, 1334082214, 1334082213, 1334082076, 1334082074]} final : False mtd_id 4302 list_pids : [1334134733] Looping around the photos to save general results len do output : 1 /1334134733.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, '2538847') ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20167022', '1334134733', '0.04208141107301164', None, None, None, None, '2538847')] time used for this insertion : 0.013833999633789062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08479046821594238 time spend to save output : 0.014010190963745117 total time spend for step 2 : 0.0988006591796875 step3:velours_tree Tue Feb 4 05:59:32 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 : {20167022: [{'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035}]} input_args_next_step : {20167022: ()} output_args : {20167022: [{'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035}]} args : 20167022 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20167022) 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([20167022]) 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.27016544342041016 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.270214319229126 step4:send_mail_cod Tue Feb 4 05:59:33 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 : {1334134733: ('0.04208141107301164',)} input_args_next_step : {1334134733: ()} output_args : {1334134733: ('0.04208141107301164',)} args : 1334134733 depend.output_id : 0 complete output_args for input 3 : {20167022: [{'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035}]} input_args_next_step : {1334134733: ('0.04208141107301164',), 20167022: ()} output_args : {20167022: [{'Carton_brun': 20167024, 'Carton_gris': 20167025, 'Teint_Dans_La_Masse': 20167026, 'kraft': 20167027, 'environnement': 20167028, 'flou': 20167029, 'metal': 20167030, 'plastique': 20167031, 'cartonnette': 20167032, 'papier': 20167033, 'autre_refus': 20167034, 'mal_croppe': 20167035}]} args : 20167022 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.04208141107301164',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20167022) 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 (1334134733) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1334134733 download finish for photo 1334134733 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P20167022_04-02-2025_05_59_33.pdf 20167027 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=20167027 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082291: '1738556475_751789_1334082239_9f8a1ed56f3f6aa082b087c6805ef1be_rle_crop_3650763035_0.png'} change filename to text .imagette201670271738645173/ imagette201670271738645173/1738556475_751789_1334082239_9f8a1ed56f3f6aa082b087c6805ef1be_rle_crop_3650763035_0.png.png imagette201670291738645173/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/398339ba7d57ea9b0c925af6e81c4a08_52625025.png imagette201670271738645173 20167029 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=20167029 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette201670291738645173 20167030 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=20167030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082293: '1738556475_751789_1334082239_9f8a1ed56f3f6aa082b087c6805ef1be_rle_crop_3650763034_0.png'} change filename to text .imagette201670301738645173/ imagette201670301738645173/1738556475_751789_1334082239_9f8a1ed56f3f6aa082b087c6805ef1be_rle_crop_3650763034_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/8a732ea3c14f8e2479cdd016f68add83_1693472.png imagette201670301738645173 20167031 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=20167031 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082288: '1738556452_751546_1334082255_dbb578fe514c32a0e59b74eb40524b88_rle_crop_3650763025_0.png', 1334082582: '1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763397_0.png', 1334082610: '1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763505_0.png', 1334082701: '1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764445_0.png', 1334082702: '1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764453_0.png', 1334083039: '1738556853_754994_1334082690_06ed30f0b1ae1cd25395f0e1c1fc6766_rle_crop_3650766251_0.png', 1334083237: '1738557051_757025_1334083040_29748240c00d47f18abb809d3ec2862f_rle_crop_3650769726_0.png', 1334083238: '1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/d5fd9ee2721beb39b4d5d2ef4d517b2a_71616644.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/b5ccee9295f2681c91a0210bff5ec520_47045542.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9c13b5b20efcbe85779f1e3e0b9d9c7a_88549850.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3f91334e2b33968fac41435ec937b3e8_84424155.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/452b47afb48eadc1ab8ec08aa17bc602_34217443.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/8e6063a2ad40b899fad3f7c1615e5bb7_74561402.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1894338cc5090d279f59bfeaa4c1618d_37395730.png change filename to text .imagette201670311738645173/ imagette201670311738645173/1738557051_757025_1334083040_29748240c00d47f18abb809d3ec2862f_rle_crop_3650769726_0.png.png imagette201670311738645173/1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769763_0.png.png imagette201670311738645173/1738556452_751546_1334082255_dbb578fe514c32a0e59b74eb40524b88_rle_crop_3650763025_0.png.png imagette201670311738645173/1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763505_0.png.png imagette201670311738645173/1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764445_0.png.png imagette201670311738645173/1738556853_754994_1334082690_06ed30f0b1ae1cd25395f0e1c1fc6766_rle_crop_3650766251_0.png.png imagette201670311738645173/1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764453_0.png.png imagette201670311738645173/1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763397_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/efb2dcac256d0046ddb8dca3e45329fc_97228144.png imagette201670311738645173 20167032 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=20167032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334083035: '1738556853_754994_1334082629_a9083468d511868a3e105808fda1a6f6_rle_crop_3650766323_0.png', 1334091325: '1738559731_797508_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766955_0.png', 1334091324: '1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766920_0.png', 1334091323: '1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766898_0.png', 1334083231: '1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769760_0.png', 1334083078: '1738556952_755941_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766955_0.png', 1334083077: '1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766920_0.png', 1334083076: '1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766898_0.png', 1334083036: '1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766347_0.png', 1334082284: '1738556452_751546_1334082257_e8fb8ab0cd25da5f5338ef4bb2666015_rle_crop_3650762900_0.png', 1334083034: '1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766288_0.png', 1334083033: '1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766280_0.png', 1334083032: '1738556853_754994_1334082659_6aa919f0bb992dc708fdb722236086e4_rle_crop_3650766260_0.png', 1334082698: '1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764448_0.png', 1334082605: '1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763522_0.png', 1334082581: '1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763389_0.png', 1334082580: '1738556570_752622_1334082430_223b94f6e13d4887697da0a14f3bfad4_rle_crop_3650763380_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9e9e2640e45a14ca1cde99f27ab3aeb0_74554088.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/fad8520f3e341619539875cecfc74dea_46888357.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5881d2396b2fab03e7c982e80bd4cb97_27861898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/81b0c7f6fedc916d912b38ea9e6930a6_75599183.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c028f6e4c09405025b949aa8c468cffb_94615991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/fad8520f3e341619539875cecfc74dea_64099786.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5881d2396b2fab03e7c982e80bd4cb97_20805289.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/81b0c7f6fedc916d912b38ea9e6930a6_96577335.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/12d5068adafc06d4e7cdd9bbc0783147_17016466.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/ebe8f0d8f7c2596c12a63bc4fa282992_3242195.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/02e88d11a140375eb4800a24c1712593_23467111.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5ae34a09593073759067c6254229d21e_86881687.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/891bbd3fd62114f6aa59009918962913_3397930.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/cd38a7ba628df3cbb0783e642610e3e3_52452333.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/b3376f7ce20a966c34a0256c2f7ef20e_81544162.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/b4cff623e0c2b685bb777d94859aa8cd_54321146.png change filename to text .imagette201670321738645174/ imagette201670321738645174/1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764448_0.png.png imagette201670321738645174/1738559731_797508_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766955_0.png.png imagette201670321738645174/1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766920_0.png.png imagette201670321738645174/1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769760_0.png.png imagette201670321738645174/1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763389_0.png.png imagette201670321738645174/1738556853_754994_1334082659_6aa919f0bb992dc708fdb722236086e4_rle_crop_3650766260_0.png.png imagette201670321738645174/1738556952_755941_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766955_0.png.png imagette201670321738645174/1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766920_0.png.png imagette201670321738645174/1738556570_752622_1334082430_223b94f6e13d4887697da0a14f3bfad4_rle_crop_3650763380_0.png.png imagette201670321738645174/1738556452_751546_1334082257_e8fb8ab0cd25da5f5338ef4bb2666015_rle_crop_3650762900_0.png.png imagette201670321738645174/1738556853_754994_1334082629_a9083468d511868a3e105808fda1a6f6_rle_crop_3650766323_0.png.png imagette201670321738645174/1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766288_0.png.png imagette201670321738645174/1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766280_0.png.png imagette201670321738645174/1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766347_0.png.png imagette201670321738645174/1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766898_0.png.png imagette201670321738645174/1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763522_0.png.png imagette201670321738645174/1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766898_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c6784fc09dc8835653b03461a7de7ece_56420082.png imagette201670321738645174 20167034 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=20167034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082242: '1738556332_750366_1334082232_ce0e475fddafecf14de0ea9a5da37146_rle_crop_3650761402_0.png', 1334082576: '1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763392_0.png', 1334082577: '1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763390_0.png', 1334082598: '1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763525_0.png', 1334082983: '1738556834_754713_1334082680_05799f32a247c0dd89a226222749b837_rle_crop_3650766001_0.png', 1334083024: '1738556853_754994_1334082659_6aa919f0bb992dc708fdb722236086e4_rle_crop_3650766261_0.png', 1334083025: '1738556853_754994_1334082630_0cd06102232dc275f6cfc06eea1bddfc_rle_crop_3650766313_0.png', 1334083028: '1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766342_0.png', 1334083029: '1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766341_0.png', 1334083059: '1738556930_755745_1334082937_a54598178f58813bc8aa507ec72cbdfd_rle_crop_3650766713_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a4c0c33cced910b2b01b86e11e263930_84719826.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/874f56b840e2cfe7007d3b6bd100666e_46327196.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a1e31588eefbfec38db3c5e882367a0e_67909509.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3b14dc6f3eaad2bb0ff102db458cf152_26372652.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a378e19ba79692f2aa7a2682adf4ceb4_78162925.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e5a08af7e3b0d0fef1155bb29446b5e8_6414500.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/0fc1e1ea6046a0965e2c98b73f068708_33415413.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/beb649f6cc57a932d8037c447fbdbe2d_55129418.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1cbbed899385aa8992577fa6cd4604e4_28750297.png change filename to text .imagette201670341738645176/ imagette201670341738645176/1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763392_0.png.png imagette201670341738645176/1738556853_754994_1334082659_6aa919f0bb992dc708fdb722236086e4_rle_crop_3650766261_0.png.png imagette201670341738645176/1738556332_750366_1334082232_ce0e475fddafecf14de0ea9a5da37146_rle_crop_3650761402_0.png.png imagette201670341738645176/1738556930_755745_1334082937_a54598178f58813bc8aa507ec72cbdfd_rle_crop_3650766713_0.png.png imagette201670341738645176/1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766342_0.png.png imagette201670341738645176/1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766341_0.png.png imagette201670341738645176/1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763390_0.png.png imagette201670341738645176/1738556834_754713_1334082680_05799f32a247c0dd89a226222749b837_rle_crop_3650766001_0.png.png imagette201670341738645176/1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763525_0.png.png imagette201670341738645176/1738556853_754994_1334082630_0cd06102232dc275f6cfc06eea1bddfc_rle_crop_3650766313_0.png.png imagette201670351738645178/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/0520ef78383534c8aa6dbe0b40710bb3_83360581.png imagette201670341738645176 20167035 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=20167035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette201670351738645178 20167024 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=20167024 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334083079: '1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766903_0.png', 1334091330: '1738559731_797508_1334082872_f70f98cd5cd0d08072aa45b116678d8d_rle_crop_3650766938_0.png', 1334091329: '1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_bib_crop_3650766927_0.jpg', 1334091328: '1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650824181_0.png', 1334091327: '1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_bib_crop_3650766903_0.jpg', 1334091326: '1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650824164_0.png', 1334083235: '1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769766_0.png', 1334083234: '1738557051_757025_1334083019_afb0a57c66db04b0ed521454db181110_rle_crop_3650769752_0.png', 1334083233: '1738557051_757025_1334083060_11145a0629a35e549e809066caa2b55a_rle_crop_3650769701_0.png', 1334083232: '1738557051_757025_1334083060_11145a0629a35e549e809066caa2b55a_rle_crop_3650769699_0.png', 1334083081: '1738556952_755941_1334082872_f70f98cd5cd0d08072aa45b116678d8d_rle_crop_3650766938_0.png', 1334083080: '1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766927_0.png', 1334082227: '1738556232_749494_1334082074_0b5dc5f11eda7f203cf06af5f4b7b3a9_rle_crop_3650761290_0.png', 1334083038: '1738556853_754994_1334082629_a9083468d511868a3e105808fda1a6f6_rle_crop_3650766324_0.png', 1334083037: '1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766299_0.png', 1334082985: '1738556834_754713_1334082680_05799f32a247c0dd89a226222749b837_rle_crop_3650766000_0.png', 1334082984: '1738556834_754713_1334082684_946e15b97b04491f9da9e456793ace38_rle_crop_3650765931_0.png', 1334082700: '1738556700_753878_1334082575_b26e68b5cfbb91ffccdf52bee5b99d03_rle_crop_3650764410_0.png', 1334082609: '1738556591_752813_1334082478_578365876b0d744c187a27795e6ee4aa_rle_crop_3650763496_0.png', 1334082392: '1738556492_752041_1334082260_5ba01af8c650996b695a27c4e80d1a67_rle_crop_3650763107_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4910bacf470035afba8f484d114ae81c_23124944.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/551e74b781c187dd39fad2fe45f3ccf9_12453884.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/af36f61e4c125892f93851445fb5021a_29880265.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f4e30dbace1f1a0553a260239b9344b5_56448194.png change filename to text .wget -O 5.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/aa16e399ee9c0b728592fc478b9518eb_88159438.jpg change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/0a13069f20d87ee29ae49e1870528b69_55493992.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e538a846e383b7fa179809782ced9d95_97863479.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/5a7601d22c7af5e372feafd6c6b82a22_38534859.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2f3f33387509bc49ebd1fd6478fba649_87138049.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/6a4adbcdfedfe6b0f46d368362faf9b3_82359083.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/551e74b781c187dd39fad2fe45f3ccf9_53670717.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e10a1f1c53bce6a2ff70ad5e26d03f35_61054868.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/1357063aa706bad9b55b9e1ff4efc17e_84390020.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/242ed531ec0a6904268ce635d1888c1a_23599355.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/88b13388ba10b23009d24fe3027d8653_198016.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/16e1346ae8b7a945ad9263df867f1df4_26065646.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7caf38f5aff30dd7eb3950d7f8744579_72842425.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c7baca4c626b89c33a5388d356f3f9ba_53178918.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/6834072f5287b5cb959fea173e3a4bd7_65855901.png change filename to text .imagette201670241738645178/ imagette201670241738645178/1738556834_754713_1334082684_946e15b97b04491f9da9e456793ace38_rle_crop_3650765931_0.png.png imagette201670241738645178/1738556853_754994_1334082629_a9083468d511868a3e105808fda1a6f6_rle_crop_3650766324_0.png.png imagette201670241738645178/1738559731_797508_1334082872_f70f98cd5cd0d08072aa45b116678d8d_rle_crop_3650766938_0.png.png imagette201670241738645178/1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650824181_0.png.png imagette201670241738645178/1738556700_753878_1334082575_b26e68b5cfbb91ffccdf52bee5b99d03_rle_crop_3650764410_0.png.png imagette201670241738645178/1738556232_749494_1334082074_0b5dc5f11eda7f203cf06af5f4b7b3a9_rle_crop_3650761290_0.png.png imagette201670241738645178/1738556834_754713_1334082680_05799f32a247c0dd89a226222749b837_rle_crop_3650766000_0.png.png imagette201670241738645178/1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_bib_crop_3650766927_0.jpg.jpg imagette201670241738645178/1738556952_755941_1334082872_f70f98cd5cd0d08072aa45b116678d8d_rle_crop_3650766938_0.png.png imagette201670241738645178/1738557051_757025_1334082992_67b815223ec0d3bf7980c4a3de6410e2_rle_crop_3650769766_0.png.png imagette201670241738645178/1738557051_757025_1334083019_afb0a57c66db04b0ed521454db181110_rle_crop_3650769752_0.png.png imagette201670241738645178/1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_bib_crop_3650766903_0.jpg.jpg imagette201670241738645178/1738556591_752813_1334082478_578365876b0d744c187a27795e6ee4aa_rle_crop_3650763496_0.png.png imagette201670241738645178/1738556492_752041_1334082260_5ba01af8c650996b695a27c4e80d1a67_rle_crop_3650763107_0.png.png imagette201670241738645178/1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650824164_0.png.png imagette201670241738645178/1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766299_0.png.png imagette201670241738645178/1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766903_0.png.png imagette201670241738645178/1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766927_0.png.png imagette201670241738645178/1738557051_757025_1334083060_11145a0629a35e549e809066caa2b55a_rle_crop_3650769699_0.png.png imagette201670241738645178/1738557051_757025_1334083060_11145a0629a35e549e809066caa2b55a_rle_crop_3650769701_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2f300603d5e574919f6f474a1337c20e_49097902.png imagette201670241738645178 20167025 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=20167025 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082621: '1738556611_753008_1334082278_29efcea5a3e364ca3cb6e6fc1282d095_rle_crop_3650763563_0.png', 1334091322: '1738559731_797508_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766958_0.png', 1334091321: '1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766921_0.png', 1334091320: '1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766902_0.png', 1334091319: '1738559731_797508_1334083042_3db3c66656e6541fcd5d53ecc3ac6294_rle_crop_3650824148_0.png', 1334083072: '1738556952_755941_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766958_0.png', 1334083071: '1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766921_0.png', 1334083070: '1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766902_0.png', 1334083031: '1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766348_0.png', 1334083027: '1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766298_0.png', 1334082697: '1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764451_0.png', 1334082696: '1738556700_753878_1334082573_4d75a4154ca4879bf1c9f742398d93ff_rle_crop_3650764413_0.png', 1334082622: '1738556611_753008_1334082278_29efcea5a3e364ca3cb6e6fc1282d095_rle_crop_3650763565_0.png', 1334082243: '1738556332_750366_1334082230_c476c83556135c97134f88e258890ae3_rle_crop_3650761497_0.png', 1334082603: '1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763523_0.png', 1334082602: '1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763508_0.png', 1334082601: '1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763506_0.png', 1334082600: '1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763504_0.png', 1334082599: '1738556591_752813_1334082478_578365876b0d744c187a27795e6ee4aa_rle_crop_3650763492_0.png', 1334082579: '1738556570_752622_1334082430_223b94f6e13d4887697da0a14f3bfad4_rle_crop_3650763384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7cf858c465e47c19aaab1066fa6dacf1_8199049.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7abfc4754844e14dc79343ff932252a7_39019811.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e3b74eb2d932ad7724aa8e16c3954fba_37407071.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e3d34ea8e73321a02f63f5abbac241b5_79359706.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/29df9a64c99765d109a6e4d17af7946e_22140095.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7abfc4754844e14dc79343ff932252a7_30767193.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e3b74eb2d932ad7724aa8e16c3954fba_70865851.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e3d34ea8e73321a02f63f5abbac241b5_86242254.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3d534297a4229c74c364ed81b14c7de7_30422125.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/9574cc22193d589fa41d0569e244742f_18247279.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/2ab96a5ace1dea332bd1ea63ac8b085b_44544907.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4c62caa0a71ffc439603d0092c7f4a47_31011964.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/e5c8a3e95fbe80be1028b31031435f70_19820075.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/c397514c7b704ab9e63f7c92e45924c4_67012862.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/59dc93a969ba9e6174e0602c3f926ced_87187185.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/982dc8d47065183001a2424cdbee8c50_27006759.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/86874a46aa7e5a2734f2f6a964b3a3a4_49573584.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/baec51a46be7c54bd6049794a65d4ebc_51362884.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/44dee03dd89df945ebb9d272a56956da_29013705.png change filename to text .imagette201670251738645180/ imagette201670251738645180/1738556570_752622_1334082430_223b94f6e13d4887697da0a14f3bfad4_rle_crop_3650763384_0.png.png imagette201670251738645180/1738556872_755217_1334082663_76edddadab10d738b34250be57ab21d9_rle_crop_3650766348_0.png.png imagette201670251738645180/1738559731_797508_1334083042_3db3c66656e6541fcd5d53ecc3ac6294_rle_crop_3650824148_0.png.png imagette201670251738645180/1738559731_797508_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766921_0.png.png imagette201670251738645180/1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763508_0.png.png imagette201670251738645180/1738556591_752813_1334082275_fccb5a136e176c5efac4e9a93abd8435_rle_crop_3650763523_0.png.png imagette201670251738645180/1738556611_753008_1334082278_29efcea5a3e364ca3cb6e6fc1282d095_rle_crop_3650763563_0.png.png imagette201670251738645180/1738556591_752813_1334082478_578365876b0d744c187a27795e6ee4aa_rle_crop_3650763492_0.png.png imagette201670251738645180/1738559731_797508_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766958_0.png.png imagette201670251738645180/1738559731_797508_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766902_0.png.png imagette201670251738645180/1738556952_755941_1334082870_54f0b4dc7299d2bb7632a264d0e193cc_rle_crop_3650766958_0.png.png imagette201670251738645180/1738556952_755941_1334082921_150ff8c4ed21488fc25ad29e7b99f847_rle_crop_3650766902_0.png.png imagette201670251738645180/1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763506_0.png.png imagette201670251738645180/1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766298_0.png.png imagette201670251738645180/1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764451_0.png.png imagette201670251738645180/1738556591_752813_1334082277_1a739453fd9ab9fcabc705c02d76ef12_rle_crop_3650763504_0.png.png imagette201670251738645180/1738556332_750366_1334082230_c476c83556135c97134f88e258890ae3_rle_crop_3650761497_0.png.png imagette201670251738645180/1738556700_753878_1334082573_4d75a4154ca4879bf1c9f742398d93ff_rle_crop_3650764413_0.png.png imagette201670251738645180/1738556952_755941_1334082881_627f4a0e8894805b8d72896c0a4cfffc_rle_crop_3650766921_0.png.png imagette201670251738645180/1738556611_753008_1334082278_29efcea5a3e364ca3cb6e6fc1282d095_rle_crop_3650763565_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/3f374a27a10f902f09b3f635dc56b757_21244219.png imagette201670251738645180 20167026 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=20167026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1334082982: '1738556834_754713_1334082682_5964c987cbf24244b06a87d0aa2be9a5_rle_crop_3650765943_0.png', 1334091318: '1738559731_797508_1334083042_3db3c66656e6541fcd5d53ecc3ac6294_rle_crop_3650824153_0.png', 1334083229: '1738557051_757025_1334083040_29748240c00d47f18abb809d3ec2862f_rle_crop_3650769730_0.png', 1334083228: '1738557051_757025_1334083041_7a487fd953b7d10584f4fe5bca8ac7a5_rle_crop_3650769714_0.png', 1334083227: '1738557051_757025_1334083041_7a487fd953b7d10584f4fe5bca8ac7a5_rle_crop_3650769720_0.png', 1334083023: '1738556853_754994_1334082630_0cd06102232dc275f6cfc06eea1bddfc_rle_crop_3650766311_0.png', 1334083022: '1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766301_0.png', 1334083021: '1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766287_0.png', 1334083020: '1738556853_754994_1334082690_06ed30f0b1ae1cd25395f0e1c1fc6766_rle_crop_3650766253_0.png', 1334082224: '1738556232_749494_1334082076_769f2f53a0f28bbba3b1993f5d48cb05_rle_crop_3650761274_0.png', 1334082981: '1738556834_754713_1334082687_7c6019e8d9c7326ce226c18f058d42ec_rle_crop_3650765918_0.png', 1334082695: '1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764455_0.png', 1334082574: '1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763399_0.png', 1334082281: '1738556452_751546_1334082257_e8fb8ab0cd25da5f5338ef4bb2666015_rle_crop_3650762902_0.png', 1334082241: '1738556332_750366_1334082230_c476c83556135c97134f88e258890ae3_rle_crop_3650761506_0.png', 1334082240: '1738556332_750366_1334082232_ce0e475fddafecf14de0ea9a5da37146_rle_crop_3650761405_0.png', 1334082225: '1738556232_749494_1334082074_0b5dc5f11eda7f203cf06af5f4b7b3a9_rle_crop_3650761287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/04df3d0fe939a6b49a67861de1cb54d4_15261278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/aa19a8c0ec171ef98661ead02def5b9f_81694194.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4f3f65593ce436b88a93b2473d6ec70b_94942049.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/78667451ef8e017df7822a87f8182b58_55959561.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f71dccf422624cf54bb3a029a7604259_6090856.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/d1646abd5c3ca1d9d070792f780b8440_6535614.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/8f335610224cce0fb1d562b3961c3bd2_29363070.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/cea7a27b3eb6e173cfe4723f193ce551_66908645.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/38afab562c935d0595b4b4adfb7757c1_10026345.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/f56a8cc4255cd4125f33274b05969ea5_28547922.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/8cd0930e39121a76b90c3842205bc4ab_16315443.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/0675d05e59b530b564918315a228f37c_33901128.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/a68db314482706111ea336ccd1f3605e_66235701.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/b8f64d75255dff9dec15ddae2a736dba_26874035.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/558a583ebc616f13087179a6baf2ec60_40681792.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/7fdf2d2a4a663bb5c53d6d15c0460f47_1905557.png change filename to text .imagette201670261738645182/ imagette201670261738645182/1738556232_749494_1334082076_769f2f53a0f28bbba3b1993f5d48cb05_rle_crop_3650761274_0.png.png imagette201670261738645182/1738557051_757025_1334083041_7a487fd953b7d10584f4fe5bca8ac7a5_rle_crop_3650769714_0.png.png imagette201670261738645182/1738556853_754994_1334082630_0cd06102232dc275f6cfc06eea1bddfc_rle_crop_3650766311_0.png.png imagette201670261738645182/1738556853_754994_1334082655_a390216706a57c025025eb473a23ae30_rle_crop_3650766301_0.png.png imagette201670261738645182/1738556700_753878_1334082572_8135f98f4d549ec8eaf00b78cdf9ae62_rle_crop_3650764455_0.png.png imagette201670261738645182/1738557051_757025_1334083040_29748240c00d47f18abb809d3ec2862f_rle_crop_3650769730_0.png.png imagette201670261738645182/1738556853_754994_1334082656_c89cd2f471d5fa1a8bebabf7bb55e1b4_rle_crop_3650766287_0.png.png imagette201670261738645182/1738557051_757025_1334083041_7a487fd953b7d10584f4fe5bca8ac7a5_rle_crop_3650769720_0.png.png imagette201670261738645182/1738556452_751546_1334082257_e8fb8ab0cd25da5f5338ef4bb2666015_rle_crop_3650762902_0.png.png imagette201670261738645182/1738556570_752622_1334082429_58b1de4565051e90fa3cec1a1ae33206_rle_crop_3650763399_0.png.png imagette201670261738645182/1738556332_750366_1334082230_c476c83556135c97134f88e258890ae3_rle_crop_3650761506_0.png.png imagette201670261738645182/1738559731_797508_1334083042_3db3c66656e6541fcd5d53ecc3ac6294_rle_crop_3650824153_0.png.png imagette201670261738645182/1738556332_750366_1334082232_ce0e475fddafecf14de0ea9a5da37146_rle_crop_3650761405_0.png.png imagette201670261738645182/1738556853_754994_1334082690_06ed30f0b1ae1cd25395f0e1c1fc6766_rle_crop_3650766253_0.png.png imagette201670261738645182/1738556232_749494_1334082074_0b5dc5f11eda7f203cf06af5f4b7b3a9_rle_crop_3650761287_0.png.png imagette201670261738645182/1738556834_754713_1334082682_5964c987cbf24244b06a87d0aa2be9a5_rle_crop_3650765943_0.png.png imagette201670261738645182/1738556834_754713_1334082687_7c6019e8d9c7326ce226c18f058d42ec_rle_crop_3650765918_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/d534a2a1d13f9df36a1eba48b3974481_1153228.png imagette201670261738645182 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20167022 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20167036,20167037,20167038,20167039,20167040,20167041,20167042,20167043,20167044,20167045,20167046,20167047?tags=Carton_brun,Carton_gris,Teint_Dans_La_Masse,kraft,environnement,flou,metal,plastique,cartonnette,papier,autre_refus,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1334134733] : ('0.04208141107301164',) no score found for photo 1334134733 We are sending mail with results at report@fotonower.com refus_total : 0.04208141107301164 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=20167022 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_P20167022_04-02-2025_05_59_33.pdf results_Auto_P20167022_04-02-2025_05_59_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20167022_04-02-2025_05_59_33.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','20167022','results_Auto_P20167022_04-02-2025_05_59_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20167022_04-02-2025_05_59_33.pdf','pdf','','0.24','0.04208141107301164') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20167022]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1334134733] map_info['map_portfolio_photo'] : {20167022: [1334134733, 1334083075, 1334083060, 1334083058, 1334083042, 1334083041, 1334083040, 1334083030, 1334083019, 1334082992, 1334082937, 1334082921, 1334082881, 1334082872, 1334082870, 1334082711, 1334082710, 1334082709, 1334082690, 1334082687, 1334082684, 1334082682, 1334082680, 1334082663, 1334082659, 1334082656, 1334082655, 1334082630, 1334082629, 1334082588, 1334082587, 1334082583, 1334082575, 1334082573, 1334082572, 1334082478, 1334082430, 1334082429, 1334082278, 1334082277, 1334082275, 1334082260, 1334082259, 1334082257, 1334082255, 1334082239, 1334082238, 1334082233, 1334082232, 1334082231, 1334082230, 1334082215, 1334082214, 1334082213, 1334082076, 1334082074]} final : False mtd_id 4302 list_pids : [1334134733] 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, '2538847') ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20167022', '1334134733', None, None, None, None, None, '2538847')] time used for this insertion : 0.03828883171081543 save_final save missing photos in datou_result : time spend for datou_step_exec : 12.19858980178833 time spend to save output : 0.03845381736755371 total time spend for step 4 : 12.237043619155884 step5:split_time_score Tue Feb 4 05:59:45 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 : ['20167022'] 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 : [('20167022',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20167022) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1334134733: {'path': 'temp/1738645173_2774960_1334134733_7485277c29429d695dd1e1f9f20cacce.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 = 20167022; (('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 = 20167022 group by h (('05', 56),) 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=20167022 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 (20167022) 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 (20167022) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03022025 20167022 Nombre de photos uploadées : 56 / 23040 (0%) 03022025 20167022 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 03022025 20167022 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1334082076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/769f2f53a0f28bbba3b1993f5d48cb05.jpg', 'username': None, 'uploaded_at': 1738556167, 'text': 'image_03022025_05_15_05_010167m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1334082074, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/0b5dc5f11eda7f203cf06af5f4b7b3a9.jpg', 'username': None, 'uploaded_at': 1738556167, 'text': 'image_03022025_05_15_24_010144m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1334082215, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/4d2cb30b665b9143661b016a114cc235.jpg', 'username': None, 'uploaded_at': 1738556227, 'text': 'image_03022025_05_15_34_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1334082214, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/3/bf8b95f9d4ad5b2c570c21246387cefa.jpg', 'username': None, 'uploaded_at': 1738556227, 'text': 'image_03022025_05_16_15_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027375221252441406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20167022, '2025-02-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1572874,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02899336814880371 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= 1572874 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20166823, 'dashboard_result_id': 8671776, '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_P20166823_03-02-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20166826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20166827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20166828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20166829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20166830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20166831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20166832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20166833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20166834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20166835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20166836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20166837, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20167022, 'dashboard_result_id': 8671777, '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_P20167022_03-02-2025_05_35_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20167024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20167025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20167026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20167027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20167028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20167029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20167030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20167031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20167032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20167033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20167034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20167035, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20169696, 'dashboard_result_id': 8671778, '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_P20169696_03-02-2025_09_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169710, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20169975, 'dashboard_result_id': 8671779, '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_P20169975_03-02-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169989, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20170583, 'dashboard_result_id': 8671780, '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_P20170583_03-02-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170643, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20170900, 'dashboard_result_id': 8671781, '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_P20170900_03-02-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170947, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20171366, 'dashboard_result_id': 8671782, '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_P20171366_03-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20171394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20171395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20171396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20171397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20171398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20171399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20171400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20171401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20171402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20171403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20171404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20171405, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20172070, 'dashboard_result_id': 8671783, '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_P20172070_03-02-2025_10_52_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172086, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20172623, 'dashboard_result_id': 8671784, '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_P20172623_03-02-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172686, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20172805, 'dashboard_result_id': 8671785, '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_P20172805_03-02-2025_11_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172840, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20173625, 'dashboard_result_id': 8671786, '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_P20173625_03-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20173627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20173628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20173629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20173630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20173631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20173632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20173633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20173634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20173635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20173636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20173637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20173638, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20173987, 'dashboard_result_id': 8671787, '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_P20173987_03-02-2025_11_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174029, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20174900, 'dashboard_result_id': 8671788, '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_P20174900_03-02-2025_12_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174915, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20175385, 'dashboard_result_id': 8671789, '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_P20175385_04-02-2025_05_58_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20175394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20175395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20175396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20175397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20175398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20175399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20175400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20175401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20175402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20175403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20175404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20175405, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20177789, 'dashboard_result_id': 8671790, '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_P20177789_03-02-2025_13_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177801, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20177856, 'dashboard_result_id': 8671791, '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_P20177856_03-02-2025_14_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177910, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20179367, 'dashboard_result_id': 8671792, '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_P20179367_03-02-2025_14_49_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179464, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179471, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20179072, 'dashboard_result_id': 8671793, '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_P20179072_03-02-2025_14_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179111, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20179073, 'dashboard_result_id': 8671794, '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_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20179533, 'dashboard_result_id': 8671795, '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_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20180407, 'dashboard_result_id': 8671796, '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_P20180407_03-02-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20181040, 'dashboard_result_id': 8671797, '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_P20181040_03-02-2025_15_35_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20181085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181094, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20181913, 'dashboard_result_id': 8671798, '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_P20181913_03-02-2025_15_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20181921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181932, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20182591, 'dashboard_result_id': 8671799, '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_P20182591_03-02-2025_16_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20182632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20182633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20182634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20182635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20182636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20182637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20182638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20182639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20182640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20182641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20182642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182643, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20182990, 'dashboard_result_id': 8671800, '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_P20182990_03-02-2025_16_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183010, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20183534, 'dashboard_result_id': 8671801, '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_P20183534_03-02-2025_16_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20183576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183597, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20183944, 'dashboard_result_id': 8671802, '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_P20183944_03-02-2025_16_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183994, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20184567, 'dashboard_result_id': 8671803, '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_P20184567_03-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20184575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20184576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20184577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20184578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20184579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20184580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20184581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20184582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20184583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20184585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20184586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20184587, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20185163, 'dashboard_result_id': 8671804, '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_P20185163_03-02-2025_17_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20185184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20185194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185195, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20185669, 'dashboard_result_id': 8671805, '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_P20185669_03-02-2025_17_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20185688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20185692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185699, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20187367, 'dashboard_result_id': 8671806, '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_P20187367_03-02-2025_18_20_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20187374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20187375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20187376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20187377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20187378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20187379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20187380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20187381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20187382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20187383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20187384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20187385, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20187589, 'dashboard_result_id': 8671807, '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_P20187589_03-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20187636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20187637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20187638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20187639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20187640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20187641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20187642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20187643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20187644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20187645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20187646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20187647, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20187986, 'dashboard_result_id': 8671808, '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_P20187986_03-02-2025_18_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188044, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20188631, 'dashboard_result_id': 8671809, '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_P20188631_03-02-2025_18_56_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188787, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20189285, 'dashboard_result_id': 8671810, '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_P20189285_03-02-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189305, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20189909, 'dashboard_result_id': 8671811, '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_P20189909_03-02-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189952, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20190694, 'dashboard_result_id': 8671812, '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_P20190694_03-02-2025_20_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20190721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20190722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20190723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20190724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20190725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20190726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20190727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20190728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20190729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20190730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20190731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20190732, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20191207, 'dashboard_result_id': 8671813, '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_P20191207_03-02-2025_20_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191223, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20191390, 'dashboard_result_id': 8671814, '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_P20191390_03-02-2025_20_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191409, 'pht': 3726}}"}, {'dashboat_entry_day': 1572874, 'dashboard_run_id': 1583231, 'mtr_portfolio_id': 20191824, 'dashboard_result_id': 8671815, '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_P20191824_03-02-2025_21_10_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191844, '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 = 20166823 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': 2538846, 'mtr_portfolio_id': 20166823, 'created_at': datetime.datetime(2025, 2, 3, 5, 34, 30), 'result': '0.05323083226324797', 'result_long': None, 'result_double': None}] Qualite : 0.05323083226324797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20166823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20166823_03-02-2025_05_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20166823 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_P20166823_03-02-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20166826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20166827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20166828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20166829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20166830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20166831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20166832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20166833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20166834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20166835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20166836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20166837, 'pht': 3726}}" where mtr_portfolio_id = 20166823 and dashboard_run_id = 1583231 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`=20166823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671776, 0.05323083226324797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20166823_03-02-2025_05_34_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20166826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20166827, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20166828, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20166829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20166830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20166831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20166832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20166833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20166834, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20166835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20166836, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20166837, '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 = 20167022 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': 2538847, 'mtr_portfolio_id': 20167022, 'created_at': datetime.datetime(2025, 2, 4, 5, 59, 32), 'result': '0.04208141107301164', 'result_long': None, 'result_double': None}] Qualite : 0.04208141107301164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20167022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20167022_04-02-2025_05_59_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20167022 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_P20167022_04-02-2025_05_59_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20167024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20167025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20167026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20167027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20167028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20167029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20167030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20167031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20167032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20167033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20167034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20167035, 'pht': 3726}}" where mtr_portfolio_id = 20167022 and dashboard_run_id = 1583231 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`=20167022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671777, 0.04208141107301164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20167022_04-02-2025_05_59_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20167024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20167025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20167026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20167027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20167028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20167029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20167030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20167031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20167032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20167033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20167034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20167035, '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 = 20169696 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': 2539152, 'mtr_portfolio_id': 20169696, 'created_at': datetime.datetime(2025, 2, 3, 9, 32, 58), 'result': '0.03191755085816454', 'result_long': None, 'result_double': None}] Qualite : 0.03191755085816454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20169696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20169696_03-02-2025_09_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20169696 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_P20169696_03-02-2025_09_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169710, 'pht': 3726}}" where mtr_portfolio_id = 20169696 and dashboard_run_id = 1583231 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`=20169696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671778, 0.03191755085816454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20169696_03-02-2025_09_32_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169699, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169710, '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 = 20169975 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': 2539178, 'mtr_portfolio_id': 20169975, 'created_at': datetime.datetime(2025, 2, 3, 9, 48, 59), 'result': '0.038913691209854544', 'result_long': None, 'result_double': None}] Qualite : 0.038913691209854544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20169975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20169975_03-02-2025_09_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20169975 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_P20169975_03-02-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169989, 'pht': 3726}}" where mtr_portfolio_id = 20169975 and dashboard_run_id = 1583231 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`=20169975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671779, 0.038913691209854544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20169975_03-02-2025_09_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20169978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20169979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20169980, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20169981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20169982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20169983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20169984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20169985, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20169986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20169987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20169988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20169989, '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 = 20170583 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': 2539217, 'mtr_portfolio_id': 20170583, 'created_at': datetime.datetime(2025, 2, 3, 10, 3), 'result': '0.03513941935122392', 'result_long': None, 'result_double': None}] Qualite : 0.03513941935122392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20170583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20170583_03-02-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20170583 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_P20170583_03-02-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170643, 'pht': 3726}}" where mtr_portfolio_id = 20170583 and dashboard_run_id = 1583231 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`=20170583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671780, 0.03513941935122392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20170583_03-02-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170639, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170641, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170642, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170643, '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 = 20170900 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': 2539255, 'mtr_portfolio_id': 20170900, 'created_at': datetime.datetime(2025, 2, 3, 10, 16, 58), 'result': '0.026206442948436933', 'result_long': None, 'result_double': None}] Qualite : 0.026206442948436933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20170900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20170900_03-02-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20170900 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_P20170900_03-02-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170947, 'pht': 3726}}" where mtr_portfolio_id = 20170900 and dashboard_run_id = 1583231 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`=20170900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671781, 0.026206442948436933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20170900_03-02-2025_10_16_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20170936, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20170937, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20170938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20170939, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20170940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20170941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20170942, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20170943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20170944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20170945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20170946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20170947, '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 = 20171366 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': 2539285, 'mtr_portfolio_id': 20171366, 'created_at': datetime.datetime(2025, 2, 3, 10, 33), 'result': '0.023549153775834577', 'result_long': None, 'result_double': None}] Qualite : 0.023549153775834577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20171366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20171366_03-02-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20171366 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_P20171366_03-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20171394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20171395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20171396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20171397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20171398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20171399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20171400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20171401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20171402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20171403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20171404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20171405, 'pht': 3726}}" where mtr_portfolio_id = 20171366 and dashboard_run_id = 1583231 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`=20171366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671782, 0.023549153775834577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20171366_03-02-2025_10_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20171394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20171395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20171396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20171397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20171398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20171399, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20171400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20171401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20171402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20171403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20171404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20171405, '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 = 20172070 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': 2539362, 'mtr_portfolio_id': 20172070, 'created_at': datetime.datetime(2025, 2, 3, 10, 52, 30), 'result': '0.07158595497755488', 'result_long': None, 'result_double': None}] Qualite : 0.07158595497755488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20172070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172070_03-02-2025_10_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20172070 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_P20172070_03-02-2025_10_52_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172086, 'pht': 3726}}" where mtr_portfolio_id = 20172070 and dashboard_run_id = 1583231 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`=20172070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671783, 0.07158595497755488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172070_03-02-2025_10_52_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172077, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172084, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172086, '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 = 20172623 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': 2539412, 'mtr_portfolio_id': 20172623, 'created_at': datetime.datetime(2025, 2, 3, 11, 3), 'result': '0.05027078164820402', 'result_long': None, 'result_double': None}] Qualite : 0.05027078164820402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20172623 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172623_03-02-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20172623 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_P20172623_03-02-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172686, 'pht': 3726}}" where mtr_portfolio_id = 20172623 and dashboard_run_id = 1583231 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`=20172623 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671784, 0.05027078164820402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172623_03-02-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172677, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172678, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172679, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172681, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172682, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172684, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172685, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172686, '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 = 20172805 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': 2539436, 'mtr_portfolio_id': 20172805, 'created_at': datetime.datetime(2025, 2, 3, 11, 18, 59), 'result': '0.015740729457909435', 'result_long': None, 'result_double': None}] Qualite : 0.015740729457909435 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20172805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172805_03-02-2025_11_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20172805 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_P20172805_03-02-2025_11_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172840, 'pht': 3726}}" where mtr_portfolio_id = 20172805 and dashboard_run_id = 1583231 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`=20172805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671785, 0.015740729457909435, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20172805_03-02-2025_11_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20172828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20172829, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20172831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20172832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20172833, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20172834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20172835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20172836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20172837, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20172838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20172839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20172840, '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 = 20173625 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': 2539573, 'mtr_portfolio_id': 20173625, 'created_at': datetime.datetime(2025, 2, 3, 11, 33), 'result': '0.04084993179438746', 'result_long': None, 'result_double': None}] Qualite : 0.04084993179438746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20173625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20173625_03-02-2025_11_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20173625 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_P20173625_03-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20173627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20173628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20173629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20173630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20173631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20173632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20173633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20173634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20173635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20173636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20173637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20173638, 'pht': 3726}}" where mtr_portfolio_id = 20173625 and dashboard_run_id = 1583231 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`=20173625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671786, 0.04084993179438746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20173625_03-02-2025_11_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20173627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20173628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20173629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20173630, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20173631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20173632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20173633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20173634, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20173635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20173636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20173637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20173638, '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 = 20173987 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': 2539617, 'mtr_portfolio_id': 20173987, 'created_at': datetime.datetime(2025, 2, 3, 11, 47), 'result': '0.04844188916591969', 'result_long': None, 'result_double': None}] Qualite : 0.04844188916591969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20173987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20173987_03-02-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20173987 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_P20173987_03-02-2025_11_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174029, 'pht': 3726}}" where mtr_portfolio_id = 20173987 and dashboard_run_id = 1583231 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`=20173987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671787, 0.04844188916591969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20173987_03-02-2025_11_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174022, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174025, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174027, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174029, '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 = 20174900 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': 2539662, 'mtr_portfolio_id': 20174900, 'created_at': datetime.datetime(2025, 2, 3, 12, 2, 31), 'result': '0.041358462512147025', 'result_long': None, 'result_double': None}] Qualite : 0.041358462512147025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20174900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20174900_03-02-2025_12_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20174900 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_P20174900_03-02-2025_12_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174915, 'pht': 3726}}" where mtr_portfolio_id = 20174900 and dashboard_run_id = 1583231 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`=20174900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671788, 0.041358462512147025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20174900_03-02-2025_12_02_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20174904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20174905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20174906, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20174907, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20174908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20174909, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20174910, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20174911, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20174912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20174913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20174914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20174915, '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 = 20175385 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': 2539717, 'mtr_portfolio_id': 20175385, 'created_at': datetime.datetime(2025, 2, 4, 5, 58, 56), 'result': '0.037458805524527176', 'result_long': None, 'result_double': None}] Qualite : 0.037458805524527176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20175385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20175385_04-02-2025_05_58_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20175385 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_P20175385_04-02-2025_05_58_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20175394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20175395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20175396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20175397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20175398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20175399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20175400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20175401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20175402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20175403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20175404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20175405, 'pht': 3726}}" where mtr_portfolio_id = 20175385 and dashboard_run_id = 1583231 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`=20175385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671789, 0.037458805524527176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20175385_04-02-2025_05_58_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20175394, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20175395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20175396, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20175397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20175398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20175399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20175400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20175401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20175402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20175403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20175404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20175405, '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 = 20177789 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': 2539992, 'mtr_portfolio_id': 20177789, 'created_at': datetime.datetime(2025, 2, 3, 13, 48, 59), 'result': '0.004440526101103073', 'result_long': None, 'result_double': None}] Qualite : 0.004440526101103073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20177789 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20177789_03-02-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20177789 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_P20177789_03-02-2025_13_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177801, 'pht': 3726}}" where mtr_portfolio_id = 20177789 and dashboard_run_id = 1583231 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`=20177789 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671790, 0.004440526101103073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20177789_03-02-2025_13_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177793, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177794, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177795, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177799, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177800, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177801, '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 = 20177856 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': 2540006, 'mtr_portfolio_id': 20177856, 'created_at': datetime.datetime(2025, 2, 3, 14, 5), 'result': '0.02336452098726179', 'result_long': None, 'result_double': None}] Qualite : 0.02336452098726179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20177856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20177856_03-02-2025_14_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20177856 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_P20177856_03-02-2025_14_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177910, 'pht': 3726}}" where mtr_portfolio_id = 20177856 and dashboard_run_id = 1583231 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`=20177856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671791, 0.02336452098726179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20177856_03-02-2025_14_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20177899, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20177900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20177901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20177902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20177903, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20177904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20177905, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20177906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20177907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20177908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20177909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20177910, '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 = 20179367 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': 2540197, 'mtr_portfolio_id': 20179367, 'created_at': datetime.datetime(2025, 2, 3, 14, 49, 59), 'result': '0.06128109792539601', 'result_long': None, 'result_double': None}] Qualite : 0.06128109792539601 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179367_03-02-2025_14_49_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179367 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_P20179367_03-02-2025_14_49_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179464, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179471, 'pht': 3726}}" where mtr_portfolio_id = 20179367 and dashboard_run_id = 1583231 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`=20179367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671792, 0.06128109792539601, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179367_03-02-2025_14_49_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179462, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179463, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179464, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179466, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179467, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179468, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179471, '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 = 20179072 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 = 20179072 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 = 20179072 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20179072 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 = 20179072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179072_03-02-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179072 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_P20179072_03-02-2025_14_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179102, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179107, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179111, 'pht': 3726}}" where mtr_portfolio_id = 20179072 and dashboard_run_id = 1583231 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 = 20179073 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': 2540151, 'mtr_portfolio_id': 20179073, 'created_at': datetime.datetime(2025, 2, 3, 14, 49, 28), 'result': '0.04469096429604301', 'result_long': None, 'result_double': None}] Qualite : 0.04469096429604301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179073_03-02-2025_14_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179073 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_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, 'pht': 3726}}" where mtr_portfolio_id = 20179073 and dashboard_run_id = 1583231 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`=20179073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671794, 0.04469096429604301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179073_03-02-2025_14_49_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179157, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179160, '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 = 20179533 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': 2540241, 'mtr_portfolio_id': 20179533, 'created_at': datetime.datetime(2025, 2, 3, 15, 2, 58), 'result': '0.04736227611727434', 'result_long': None, 'result_double': None}] Qualite : 0.04736227611727434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20179533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179533_03-02-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20179533 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_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, 'pht': 3726}}" where mtr_portfolio_id = 20179533 and dashboard_run_id = 1583231 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`=20179533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671795, 0.04736227611727434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20179533_03-02-2025_15_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20179606, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20179607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20179608, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20179609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20179610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20179611, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20179612, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20179613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20179614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20179615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20179616, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20179617, '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 = 20180407 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': 2540444, 'mtr_portfolio_id': 20180407, 'created_at': datetime.datetime(2025, 2, 3, 15, 18, 58), 'result': '0.04297138435771968', 'result_long': None, 'result_double': None}] Qualite : 0.04297138435771968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20180407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20180407 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_P20180407_03-02-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, 'pht': 3726}}" where mtr_portfolio_id = 20180407 and dashboard_run_id = 1583231 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`=20180407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671796, 0.04297138435771968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20180407_03-02-2025_15_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20180440, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20180441, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20180442, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20180443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20180444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20180445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20180446, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20180447, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20180448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20180449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20180450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20180451, '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 = 20181040 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': 2540558, 'mtr_portfolio_id': 20181040, 'created_at': datetime.datetime(2025, 2, 3, 15, 35, 27), 'result': '0.05217321469594739', 'result_long': None, 'result_double': None}] Qualite : 0.05217321469594739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20181040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20181040_03-02-2025_15_35_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20181040 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_P20181040_03-02-2025_15_35_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20181085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181094, 'pht': 3726}}" where mtr_portfolio_id = 20181040 and dashboard_run_id = 1583231 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`=20181040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671797, 0.05217321469594739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20181040_03-02-2025_15_35_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20181085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181088, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181093, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181094, '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 = 20181913 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': 2540640, 'mtr_portfolio_id': 20181913, 'created_at': datetime.datetime(2025, 2, 3, 15, 49, 31), 'result': '0.04031627996519735', 'result_long': None, 'result_double': None}] Qualite : 0.04031627996519735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20181913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20181913_03-02-2025_15_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20181913 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_P20181913_03-02-2025_15_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20181921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181932, 'pht': 3726}}" where mtr_portfolio_id = 20181913 and dashboard_run_id = 1583231 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`=20181913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671798, 0.04031627996519735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20181913_03-02-2025_15_49_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20181921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20181922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20181923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20181924, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20181925, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20181926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20181927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20181928, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20181929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20181930, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20181931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20181932, '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 = 20182591 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': 2540683, 'mtr_portfolio_id': 20182591, 'created_at': datetime.datetime(2025, 2, 3, 16, 2, 56), 'result': '0.0629797635504985', 'result_long': None, 'result_double': None}] Qualite : 0.0629797635504985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20182591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20182591_03-02-2025_16_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20182591 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_P20182591_03-02-2025_16_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20182632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20182633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20182634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20182635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20182636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20182637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20182638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20182639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20182640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20182641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20182642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182643, 'pht': 3726}}" where mtr_portfolio_id = 20182591 and dashboard_run_id = 1583231 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`=20182591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671799, 0.0629797635504985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20182591_03-02-2025_16_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20182632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20182633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20182634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20182635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20182636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20182637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20182638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20182639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20182640, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20182641, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20182642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182643, '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 = 20182990 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': 2540721, 'mtr_portfolio_id': 20182990, 'created_at': datetime.datetime(2025, 2, 3, 16, 20, 59), 'result': '0.05331778910806172', 'result_long': None, 'result_double': None}] Qualite : 0.05331778910806172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20182990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20182990_03-02-2025_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20182990 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_P20182990_03-02-2025_16_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183010, 'pht': 3726}}" where mtr_portfolio_id = 20182990 and dashboard_run_id = 1583231 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`=20182990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671800, 0.05331778910806172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20182990_03-02-2025_16_20_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20182999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183003, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183004, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183010, '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 = 20183534 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': 2540880, 'mtr_portfolio_id': 20183534, 'created_at': datetime.datetime(2025, 2, 3, 16, 33, 1), 'result': '0.027261897273086283', 'result_long': None, 'result_double': None}] Qualite : 0.027261897273086283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20183534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20183534_03-02-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20183534 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_P20183534_03-02-2025_16_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20183576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183597, 'pht': 3726}}" where mtr_portfolio_id = 20183534 and dashboard_run_id = 1583231 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`=20183534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671801, 0.027261897273086283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20183534_03-02-2025_16_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20183576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183584, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183589, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183597, '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 = 20183944 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': 2541000, 'mtr_portfolio_id': 20183944, 'created_at': datetime.datetime(2025, 2, 3, 16, 47), 'result': '0.05087281298013648', 'result_long': None, 'result_double': None}] Qualite : 0.05087281298013648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20183944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20183944_03-02-2025_16_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20183944 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_P20183944_03-02-2025_16_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183994, 'pht': 3726}}" where mtr_portfolio_id = 20183944 and dashboard_run_id = 1583231 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`=20183944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671802, 0.05087281298013648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20183944_03-02-2025_16_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20183983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20183984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20183985, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20183986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20183987, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20183988, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20183989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20183990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20183991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20183992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20183993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20183994, '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 = 20184567 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': 2541122, 'mtr_portfolio_id': 20184567, 'created_at': datetime.datetime(2025, 2, 3, 17, 2, 58), 'result': '0.03137882138423845', 'result_long': None, 'result_double': None}] Qualite : 0.03137882138423845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20184567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20184567_03-02-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20184567 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_P20184567_03-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20184575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20184576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20184577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20184578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20184579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20184580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20184581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20184582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20184583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20184585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20184586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20184587, 'pht': 3726}}" where mtr_portfolio_id = 20184567 and dashboard_run_id = 1583231 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`=20184567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671803, 0.03137882138423845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20184567_03-02-2025_17_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20184575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20184576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20184577, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20184578, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20184579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20184580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20184581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20184582, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20184583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20184585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20184586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20184587, '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 = 20185163 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': 2541216, 'mtr_portfolio_id': 20185163, 'created_at': datetime.datetime(2025, 2, 3, 17, 18, 57), 'result': '0.054623977243725606', 'result_long': None, 'result_double': None}] Qualite : 0.054623977243725606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20185163 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20185163_03-02-2025_17_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20185163 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_P20185163_03-02-2025_17_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20185184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20185194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185195, 'pht': 3726}}" where mtr_portfolio_id = 20185163 and dashboard_run_id = 1583231 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`=20185163 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671804, 0.054623977243725606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20185163_03-02-2025_17_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 20185184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185185, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185186, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185192, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20185194, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185195, '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 = 20185669 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': 2541323, 'mtr_portfolio_id': 20185669, 'created_at': datetime.datetime(2025, 2, 3, 17, 34, 59), 'result': '0.05963414765243564', 'result_long': None, 'result_double': None}] Qualite : 0.05963414765243564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20185669 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20185669_03-02-2025_17_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20185669 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_P20185669_03-02-2025_17_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20185688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20185692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185699, 'pht': 3726}}" where mtr_portfolio_id = 20185669 and dashboard_run_id = 1583231 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`=20185669 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671805, 0.05963414765243564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20185669_03-02-2025_17_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20185688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20185689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20185690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20185691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20185692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20185693, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20185694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20185695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20185696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20185697, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20185698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20185699, '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 = 20187367 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 = 20187367 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 = 20187367 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20187367 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 = 20187367 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20187367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20187367_03-02-2025_18_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20187367 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_P20187367_03-02-2025_18_20_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20187374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20187375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20187376, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20187377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20187378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20187379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20187380, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20187381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20187382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20187383, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20187384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20187385, 'pht': 3726}}" where mtr_portfolio_id = 20187367 and dashboard_run_id = 1583231 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 = 20187589 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': 2541681, 'mtr_portfolio_id': 20187589, 'created_at': datetime.datetime(2025, 2, 3, 18, 32, 59), 'result': '0.025098359230283803', 'result_long': None, 'result_double': None}] Qualite : 0.025098359230283803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20187589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20187589_03-02-2025_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20187589 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_P20187589_03-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20187636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20187637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20187638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20187639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20187640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20187641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20187642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20187643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20187644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20187645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20187646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20187647, 'pht': 3726}}" where mtr_portfolio_id = 20187589 and dashboard_run_id = 1583231 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`=20187589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671807, 0.025098359230283803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20187589_03-02-2025_18_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20187636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20187637, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20187638, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20187639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20187640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20187641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20187642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20187643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20187644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20187645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20187646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20187647, '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 = 20187986 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': 2541792, 'mtr_portfolio_id': 20187986, 'created_at': datetime.datetime(2025, 2, 3, 18, 46, 58), 'result': '0.03808032160419149', 'result_long': None, 'result_double': None}] Qualite : 0.03808032160419149 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20187986 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20187986_03-02-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20187986 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_P20187986_03-02-2025_18_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188044, 'pht': 3726}}" where mtr_portfolio_id = 20187986 and dashboard_run_id = 1583231 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`=20187986 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671808, 0.03808032160419149, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20187986_03-02-2025_18_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188035, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188037, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188041, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188044, '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 = 20188631 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': 2541895, 'mtr_portfolio_id': 20188631, 'created_at': datetime.datetime(2025, 2, 3, 18, 56, 59), 'result': '0.02067354183040092', 'result_long': None, 'result_double': None}] Qualite : 0.02067354183040092 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20188631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20188631_03-02-2025_18_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20188631 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_P20188631_03-02-2025_18_56_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188787, 'pht': 3726}}" where mtr_portfolio_id = 20188631 and dashboard_run_id = 1583231 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`=20188631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671809, 0.02067354183040092, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20188631_03-02-2025_18_56_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20188776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20188777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20188778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20188779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20188780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20188781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20188782, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20188783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20188784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20188785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20188786, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20188787, '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 = 20189285 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': 2541964, 'mtr_portfolio_id': 20189285, 'created_at': datetime.datetime(2025, 2, 3, 19, 18, 57), 'result': '0.04633480134512041', 'result_long': None, 'result_double': None}] Qualite : 0.04633480134512041 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20189285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20189285_03-02-2025_19_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20189285 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_P20189285_03-02-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189305, 'pht': 3726}}" where mtr_portfolio_id = 20189285 and dashboard_run_id = 1583231 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`=20189285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671810, 0.04633480134512041, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20189285_03-02-2025_19_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189302, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189305, '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 = 20189909 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': 2542052, 'mtr_portfolio_id': 20189909, 'created_at': datetime.datetime(2025, 2, 3, 19, 32, 57), 'result': '0.03563058286940416', 'result_long': None, 'result_double': None}] Qualite : 0.03563058286940416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20189909 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20189909_03-02-2025_19_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20189909 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_P20189909_03-02-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189952, 'pht': 3726}}" where mtr_portfolio_id = 20189909 and dashboard_run_id = 1583231 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`=20189909 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671811, 0.03563058286940416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20189909_03-02-2025_19_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20189941, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20189942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20189943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20189944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20189945, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20189946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20189947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20189948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20189949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20189950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20189951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20189952, '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 = 20190694 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': 2542105, 'mtr_portfolio_id': 20190694, 'created_at': datetime.datetime(2025, 2, 3, 20, 12, 59), 'result': '0.05761679402934903', 'result_long': None, 'result_double': None}] Qualite : 0.05761679402934903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20190694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20190694_03-02-2025_20_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20190694 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_P20190694_03-02-2025_20_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20190721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20190722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20190723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20190724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20190725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20190726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20190727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20190728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20190729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20190730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20190731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20190732, 'pht': 3726}}" where mtr_portfolio_id = 20190694 and dashboard_run_id = 1583231 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`=20190694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671812, 0.05761679402934903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20190694_03-02-2025_20_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20190721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20190722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20190723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20190724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20190725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20190726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20190727, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20190728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20190729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20190730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20190731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20190732, '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 = 20191207 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': 2542167, 'mtr_portfolio_id': 20191207, 'created_at': datetime.datetime(2025, 2, 3, 20, 16, 29), 'result': '0.03580678212585934', 'result_long': None, 'result_double': None}] Qualite : 0.03580678212585934 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20191207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191207_03-02-2025_20_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20191207 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_P20191207_03-02-2025_20_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191223, 'pht': 3726}}" where mtr_portfolio_id = 20191207 and dashboard_run_id = 1583231 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`=20191207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671813, 0.03580678212585934, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191207_03-02-2025_20_16_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191213, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191216, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191217, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191221, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191223, '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 = 20191390 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': 2542183, 'mtr_portfolio_id': 20191390, 'created_at': datetime.datetime(2025, 2, 3, 20, 35), 'result': '0.044509112446777306', 'result_long': None, 'result_double': None}] Qualite : 0.044509112446777306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20191390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191390_03-02-2025_20_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20191390 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_P20191390_03-02-2025_20_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191409, 'pht': 3726}}" where mtr_portfolio_id = 20191390 and dashboard_run_id = 1583231 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`=20191390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671814, 0.044509112446777306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191390_03-02-2025_20_35_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191398, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191409, '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 = 20191824 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': 2542279, 'mtr_portfolio_id': 20191824, 'created_at': datetime.datetime(2025, 2, 3, 21, 10, 58), 'result': '0.06704839029587803', 'result_long': None, 'result_double': None}] Qualite : 0.06704839029587803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20191824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191824_03-02-2025_21_10_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20191824 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_P20191824_03-02-2025_21_10_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191844, 'pht': 3726}}" where mtr_portfolio_id = 20191824 and dashboard_run_id = 1583231 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`=20191824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8671815, 0.06704839029587803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20191824_03-02-2025_21_10_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20191833, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20191834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20191835, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20191836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20191837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20191838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20191839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20191840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20191841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20191842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20191843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20191844, '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 (20166823,20167022,20169696,20169975,20170583,20170900,20171366,20172070,20172623,20172805,20173625,20173987,20174900,20175385,20177789,20177856,20179367,20179072,20179073,20179533,20180407,20181040,20181913,20182591,20182990,20183534,20183944,20184567,20185163,20185669,20187367,20187589,20187986,20188631,20189285,20189909,20190694,20191207,20191390,20191824) result : ((1334081708,), (1334081709,), (1334081719,), (1334081902,), (1334081903,), (1334081904,), (1334081915,), (1334081916,), (1334081918,), (1334081927,), (1334081928,), (1334081929,), (1334081930,), (1334081942,), (1334081944,), (1334081946,), (1334081950,), (1334081953,), (1334082078,), (1334082074,), (1334082076,), (1334082213,), (1334082214,), (1334082215,), (1334082230,), (1334082231,), (1334082232,), (1334082233,), (1334082238,), (1334082239,), (1334082255,), (1334082257,), (1334082259,), (1334082260,), (1334082275,), (1334082277,), (1334082278,), (1334082429,), (1334082430,), (1334082478,), (1334082572,), (1334082573,), (1334082575,), (1334082583,), (1334082587,), (1334082588,), (1334082629,), (1334082630,), (1334082655,), (1334082656,), (1334082659,), (1334082663,), (1334082680,), (1334082682,), (1334082684,), (1334082687,), (1334082690,), (1334082709,), (1334082710,), (1334082711,), (1334082870,), (1334082872,), (1334082881,), (1334082921,), (1334082937,), (1334082992,), (1334083019,), (1334083030,), (1334083040,), (1334083041,), (1334083042,), (1334083058,), (1334083060,), (1334083075,), (1334134733,), (1334132563,), (1334134869,), (1334134871,), (1334134875,), (1334134879,), (1334134882,), (1334134886,), (1334134956,), (1334134962,), (1334134965,), (1334134968,), (1334135032,), (1334135036,), (1334135041,), (1334135045,), (1334135048,), (1334135066,), (1334135111,), (1334135115,), (1334135119,), (1334135189,), (1334135193,), (1334135288,), (1334135317,), (1334135351,), (1334135358,), (1334135405,), (1334135503,), (1334135595,), (1334136479,), (1334136468,), (1334136718,), (1334136727,), (1334136750,), (1334136756,), (1334136798,), (1334137305,), (1334137418,), (1334137506,), (1334137582,), (1334137796,), (1334137884,), (1334137923,), (1334137956,), (1334138063,), (1334138066,), (1334138233,), (1334138236,), (1334138387,), (1334138391,), (1334138399,), (1334138401,), (1334138402,), (1334138459,), (1334138717,), (1334138719,), (1334138722,), (1334138802,), (1334138962,), (1334139013,), (1334139495,), (1334139498,), (1334139501,), (1334139541,), (1334139800,), (1334139829,), (1334139833,), (1334139839,), (1334139873,), (1334139880,), (1334139883,), (1334139924,), (1334139926,), (1334139928,), (1334139931,), (1334139997,), (1334140106,), (1334140109,), (1334140112,), (1334140115,), (1334140210,), (1334140211,), (1334140214,), (1334140217,), (1334140219,), (1334140257,), (1334140320,), (1334140531,), (1334140532,), (1334140601,), (1334140603,), (1334140605,), (1334141023,), (1334140788,), (1334140887,), (1334140903,), (1334140943,), (1334141132,), (1334141138,), (1334141141,), (1334141147,), (1334141235,), (1334141236,), (1334141239,), (1334141242,), (1334141254,), (1334141378,), (1334141379,), (1334141572,), (1334141583,), (1334141585,), (1334141587,), (1334141646,), (1334141650,), (1334141868,), (1334142266,), (1334142976,), (1334143126,), (1334143129,), (1334143133,), (1334143225,), (1334143230,), (1334143233,), (1334143240,), (1334143256,), (1334143983,), (1334143891,), (1334143958,), (1334143980,), (1334144283,), (1334144293,), (1334144298,), (1334144420,), (1334144494,), (1334144553,), (1334144556,), (1334144561,), (1334144565,), (1334144567,), (1334144570,), (1334144761,), (1334144763,), (1334144767,), (1334145460,), (1334145478,), (1334145678,), (1334145686,), (1334145943,), (1334146050,), (1334146055,), (1334146058,), (1334146060,), (1334146203,), (1334146204,), (1334146206,), (1334146270,), (1334146272,), (1334146275,), (1334146277,), (1334146279,), (1334146326,), (1334146784,), (1334146921,), (1334146986,), (1334146988,), (1334146991,), (1334146995,), (1334147133,), (1334147137,), (1334147593,), (1334147558,), (1334147584,), (1334147589,), (1334147820,), (1334147823,), (1334147827,), (1334147831,), (1334147840,), (1334147925,), (1334147929,), (1334147934,), (1334147940,), (1334147950,), (1334149028,), (1334149042,), (1334149046,), (1334149049,), (1334149238,), (1334149353,), (1334149356,), (1334149584,), (1334149604,), (1334149607,), (1334149693,), (1334149700,), (1334149832,), (1334149836,), (1334149843,), (1334149968,), (1334149992,), (1334149998,), (1334150001,), (1334150006,), (1334150343,), (1334150346,), (1334150508,), (1334150510,), (1334150514,), (1334150554,), (1334150556,), (1334150561,), (1334150625,), (1334150629,), (1334150632,), (1334150635,), (1334150740,), (1334150738,), (1334150783,), (1334150799,), (1334151060,), (1334151062,), (1334151065,), (1334151117,), (1334151124,), (1334151126,), (1334151129,), (1334151134,), (1334151190,), (1334151192,), (1334151195,), (1334151199,), (1334151518,), (1334153257,), (1334153550,), (1334153552,), (1334153555,), (1334153558,), (1334153936,), (1334153956,), (1334154010,), (1334154013,), (1334154021,), (1334154263,), (1334154277,), (1334154281,), (1334154284,), (1334154344,), (1334154413,), (1334154492,), (1334154496,), (1334154592,), (1334154588,), (1334154589,), (1334155380,), (1334155384,), (1334155679,), (1334155692,), (1334155951,), (1334155954,), (1334155959,), (1334156029,), (1334156031,), (1334156249,), (1334156292,), (1334156294,), (1334156298,), (1334157744,), (1334158297,), (1334158303,), (1334158754,), (1334158769,), (1334159071,), (1334159068,), (1334159165,), (1334159202,), (1334159205,), (1334159330,), (1334159341,), (1334159348,), (1334159497,), (1334159499,), (1334159502,), (1334159505,), (1334159571,), (1334159575,), (1334159578,), (1334159613,), (1334159668,), (1334159671,), (1334159763,), (1334159767,), (1334159770,), (1334159774,), (1334159801,), (1334159804,), (1334159808,), (1334159811,), (1334159814,), (1334159835,), (1334159838,), (1334159844,), (1334159849,), (1334159879,), (1334159883,), (1334159888,), (1334159892,), (1334159898,), (1334159964,), (1334159966,), (1334159970,), (1334159973,), (1334159976,), (1334160109,), (1334160114,), (1334160239,), (1334160241,), (1334160246,), (1334160288,), (1334160293,), (1334160419,), (1334160421,), (1334160425,), (1334160428,), (1334160702,), (1334160707,), (1334160712,), (1334160717,), (1334160754,), (1334160743,), (1334160745,), (1334160750,), (1334160976,), (1334160980,), (1334160984,), (1334161017,), (1334161021,), (1334161026,), (1334161041,), (1334161043,), (1334161046,), (1334161093,), (1334161097,), (1334161101,), (1334161169,), (1334161216,), (1334161220,), (1334161222,), (1334161255,), (1334161541,), (1334161543,), (1334161549,), (1334161933,), (1334161983,), (1334162007,), (1334162022,), (1334162044,), (1334162051,), (1334162136,), (1334162139,), (1334162142,), (1334162208,), (1334162211,), (1334162215,), (1334162217,), (1334162220,), (1334162269,), (1334162273,), (1334162278,), (1334162339,), (1334162353,), (1334162371,), (1334162380,), (1334162397,), (1334162405,), (1334162409,), (1334162613,), (1334162615,), (1334162618,), (1334162621,), (1334162687,), (1334162695,), (1334162699,), (1334162704,), (1334162707,), (1334162744,), (1334162750,), (1334162766,), (1334162771,), (1334162774,), (1334162843,), (1334162888,), (1334162892,), (1334162995,), (1334162987,), (1334162990,), (1334162993,), (1334163427,), (1334163457,), (1334163506,), (1334163520,), (1334163810,), (1334163813,), (1334163817,), (1334163825,), (1334163881,), (1334164001,), (1334164005,), (1334164008,), (1334164011,), (1334164015,), (1334164055,), (1334164060,), (1334164065,), (1334164144,), (1334164148,), (1334164153,), (1334164158,), (1334164160,), (1334164175,), (1334164444,), (1334164448,), (1334164451,), (1334164454,), (1334164458,), (1334164502,), (1334164506,), (1334164517,), (1334164522,), (1334164524,), (1334164594,), (1334164606,), (1334164623,), (1334164631,), (1334164968,), (1334164972,), (1334164983,), (1334165027,), (1334165285,), (1334165290,), (1334165296,), (1334165299,), (1334165311,), (1334165323,), (1334165386,), (1334165395,), (1334165399,), (1334165403,), (1334165450,), (1334165454,), (1334165459,), (1334165465,), (1334165478,), (1334165483,), (1334165489,), (1334165543,), (1334165520,), (1334165523,), (1334165527,), (1334165531,), (1334165537,), (1334165621,), (1334165624,), (1334165627,), (1334165631,), (1334165636,), (1334165641,), (1334165694,), (1334165696,), (1334165700,), (1334165741,), (1334165758,), (1334165761,), (1334165764,), (1334165766,), (1334165769,), (1334165855,), (1334165861,), (1334165865,), (1334165868,), (1334165871,), (1334165940,), (1334165942,), (1334165945,), (1334166913,), (1334166916,), (1334166919,), (1334166921,), (1334166924,), (1334166928,), (1334167257,), (1334167263,), (1334167273,), (1334167294,), (1334167317,), (1334167318,), (1334167321,), (1334167498,), (1334167500,), (1334167503,), (1334167505,), (1334167532,), (1334167593,), (1334167596,), (1334167600,), (1334167619,), (1334167624,), (1334168097,), (1334193382,), (1334193372,), (1334193378,), (1334193600,), (1334193920,), (1334194001,), (1334194074,), (1334194160,), (1334194253,), (1334194336,), (1334194417,), (1334195059,), (1334195060,), (1334195063,), (1334195066,), (1334195072,), (1334195075,), (1334195230,), (1334195318,), (1334195545,), (1334195549,), (1334195552,), (1334195586,), (1334195576,), (1334195578,), (1334195582,), (1334195584,), (1334195609,), (1334195611,), (1334195613,), (1334195614,), (1334195617,), (1334195804,), (1334195864,), (1334195975,), (1334196136,), (1334197748,), (1334197831,), (1334197898,), (1334197901,), (1334197974,), (1334197977,), (1334198055,), (1334198056,), (1334198058,), (1334198555,), (1334198558,), (1334198582,), (1334198621,), (1334198625,), (1334198628,), (1334198671,), (1334198674,), (1334198718,), (1334198720,), (1334198723,), (1334198726,), (1334198729,), (1334198758,), (1334198760,), (1334198763,), (1334198766,), (1334198768,), (1334198848,), (1334198921,), (1334198996,), (1334199641,), (1334199667,), (1334199750,), (1334199795,), (1334200106,), (1334200109,), (1334200143,), (1334200147,), (1334200151,), (1334200153,), (1334200308,), (1334200309,), (1334200311,), (1334200314,), (1334200318,), (1334200665,), (1334200671,), (1334200681,), (1334200685,), (1334200686,), (1334200688,), (1334200691,), (1334200739,), (1334207341,), (1334207357,), (1334207387,), (1334207389,), (1334207392,), (1334207394,), (1334207397,), (1334207450,), (1334207455,), (1334207456,), (1334207460,), (1334207481,), (1334207486,), (1334207490,), (1334207504,), (1334207508,), (1334207522,), (1334207581,), (1334207593,), (1334207598,), (1334207625,), (1334207631,), (1334207638,), (1334207642,), (1334207649,), (1334207691,), (1334207723,), (1334207728,), (1334207733,), (1334207932,), (1334207949,), (1334207954,), (1334207961,), (1334208007,), (1334208098,), (1334208177,), (1334208880,), (1334209018,), (1334209170,), (1334209179,), (1334209184,), (1334209189,), (1334209195,), (1334209202,), (1334209230,), (1334209231,), (1334209686,), (1334209790,), (1334209794,), (1334209800,), (1334209819,), (1334209910,), (1334209914,), (1334209954,), (1334209957,), (1334209960,), (1334209993,), (1334210011,), (1334210014,), (1334210035,), (1334210039,), (1334210040,), (1334210064,), (1334210080,), (1334210083,), (1334210089,), (1334210100,), (1334210103,), (1334210107,), (1334206936,), (1334206939,), (1334206942,), (1334206967,), (1334206970,), (1334206972,), (1334206999,), (1334207001,), (1334207019,), (1334207022,), (1334207025,), (1334207030,), (1334207043,), (1334207049,), (1334207052,), (1334207055,), (1334207058,), (1334207063,), (1334207071,), (1334207207,), (1334207216,), (1334207322,), (1334207329,), (1334207443,), (1334207447,), (1334207541,), (1334207546,), (1334207577,), (1334207709,), (1334207711,), (1334207717,), (1334207909,), (1334207914,), (1334207917,), (1334207921,), (1334207923,), (1334208540,), (1334208625,), (1334208710,), (1334208799,), (1334209216,), (1334209218,), (1334209222,), (1334209225,), (1334209249,), (1334209319,), (1334209408,), (1334209508,), (1334209598,), (1334209951,), (1334200730,), (1334200734,), (1334200736,), (1334200831,), (1334201963,), (1334205138,), (1334205627,), (1334210111,), (1334209949,), (1334210072,), (1334210073,), (1334210076,), (1334210078,), (1334210121,), (1334210122,), (1334210126,), (1334210127,), (1334210130,), (1334210131,), (1334210133,), (1334210135,), (1334210203,), (1334210289,), (1334210373,), (1334210464,), (1334211210,), (1334211212,), (1334211216,), (1334211272,), (1334211319,), (1334211413,), (1334211504,), (1334211604,), (1334211799,), (1334211803,), (1334211809,), (1334211841,), (1334211925,), (1334212443,), (1334212467,), (1334212474,), (1334212476,), (1334212481,), (1334212570,), (1334212577,), (1334212584,), (1334213422,), (1334213426,), (1334213428,), (1334213717,), (1334213790,), (1334213809,), (1334213813,), (1334214009,), (1334214015,), (1334214020,), (1334214025,), (1334214775,), (1334214791,), (1334214810,), (1334214815,), (1334214892,), (1334214897,), (1334214901,), (1334214907,), (1334214912,), (1334214977,), (1334214970,), (1334214973,), (1334215038,), (1334215042,), (1334215047,), (1334215052,), (1334215555,), (1334215593,), (1334215614,), (1334215622,), (1334215703,), (1334215707,), (1334215712,), (1334215718,), (1334215814,), (1334215817,), (1334215821,), (1334215824,), (1334215827,), (1334215872,), (1334215908,), (1334216140,), (1334216369,), (1334216537,), (1334216541,), (1334216581,), (1334216809,), (1334216867,), (1334216935,), (1334217790,), (1334217809,), (1334217815,), (1334217857,), (1334217865,), (1334217938,), (1334217940,), (1334217943,), (1334218057,), (1334218210,), (1334218213,), (1334218217,), (1334218221,), (1334218241,), (1334218299,), (1334218302,), (1334218304,), (1334218308,), (1334218311,), (1334218315,), (1334218348,), (1334218351,), (1334218356,), (1334218361,), (1334218367,), (1334218370,), (1334218404,), (1334218409,), (1334218413,), (1334218419,), (1334218454,), (1334218457,), (1334218461,), (1334218467,), (1334218479,), (1334218493,), (1334218559,), (1334218562,), (1334218569,), (1334218578,), (1334218961,), (1334218617,), (1334218626,), (1334218708,), (1334218799,), (1334218880,), (1334219084,), (1334219087,), (1334219128,), (1334219170,), (1334219174,), (1334219305,), (1334219308,), (1334219315,), (1334219367,), (1334219372,), (1334219469,), (1334219472,), (1334219489,), (1334219520,), (1334220087,), (1334220176,), (1334220233,), (1334220238,), (1334220243,), (1334220247,), (1334220440,), (1334220482,), (1334220529,), (1334220650,), (1334220684,), (1334220688,), (1334221075,), (1334221139,), (1334221225,), (1334221290,), (1334222131,), (1334222223,), (1334222278,), (1334222288,), (1334222304,), (1334222311,), (1334222345,), (1334222349,), (1334222352,), (1334222356,), (1334222551,), (1334222703,), (1334222883,), (1334222998,), (1334223092,), (1334223611,), (1334223616,), (1334223625,), (1334223702,), (1334223715,), (1334223737,), (1334223921,), (1334224006,), (1334224133,), (1334224267,), (1334224575,), (1334224626,), (1334224798,), (1334224864,), (1334224874,), (1334225031,), (1334225033,), (1334225070,), (1334225073,), (1334225075,), (1334225082,), (1334225149,), (1334225124,), (1334225126,), (1334225382,), (1334225385,), (1334225388,), (1334225390,), (1334225409,), (1334225411,), (1334225413,), (1334225418,), (1334225425,), (1334225440,), (1334225445,), (1334225447,), (1334225449,), (1334225451,), (1334225476,), (1334226016,), (1334227758,), (1334232030,), (1334232045,), (1334232047,), (1334232096,), (1334232106,), (1334232340,), (1334232330,), (1334232332,), (1334232335,), (1334232337,), (1334232375,), (1334232377,), (1334232378,), (1334232381,), (1334232395,), (1334232814,), (1334232820,), (1334232822,), (1334232824,), (1334232878,), (1334232881,), (1334232883,), (1334232885,), (1334232888,), (1334232891,), (1334232914,), (1334232916,), (1334232920,), (1334232926,), (1334232931,), (1334232960,), (1334232963,), (1334232965,), (1334232973,), (1334232978,), (1334233036,), (1334233039,), (1334234296,), (1334234330,), (1334234332,), (1334234334,), (1334234337,), (1334234341,), (1334234342,), (1334234955,), (1334234957,), (1334234960,), (1334235159,), (1334235160,), (1334235162,), (1334235164,), (1334235167,), (1334235171,), (1334235196,), (1334235198,), (1334235200,), (1334235202,), (1334235206,), (1334235209,), (1334235253,), (1334235258,), (1334235263,), (1334235269,), (1334235351,), (1334235341,), (1334235344,), (1334235348,), (1334235381,), (1334235384,), (1334235389,), (1334235393,), (1334235396,), (1334235400,), (1334235465,), (1334235471,), (1334235475,), (1334235480,), (1334235945,), (1334236028,), (1334236118,), (1334236199,), (1334236328,), (1334236418,), (1334237140,), (1334237141,), (1334237145,), (1334237148,), (1334237152,), (1334237503,), (1334237586,), (1334237685,), (1334237771,), (1334238704,), (1334238717,), (1334238749,), (1334238752,), (1334238755,), (1334238871,), (1334238874,), (1334238879,), (1334238886,), (1334239451,), (1334239463,), (1334239619,), (1334239921,), (1334240135,), (1334240271,), (1334240273,), (1334240681,), (1334240684,), (1334240688,), (1334240691,), (1334240822,), (1334240911,), (1334241009,), (1334241093,), (1334241195,), (1334241777,), (1334241780,), (1334241833,), (1334241882,), (1334241965,), (1334242627,), (1334242634,), (1334242790,), (1334242787,), (1334242919,), (1334242928,), (1334242932,), (1334242935,), (1334243584,), (1334244073,), (1334244990,), (1334245124,), (1334246112,), (1334246114,), (1334246117,), (1334246121,), (1334246233,), (1334246476,), (1334246517,), (1334246536,), (1334246761,), (1334246873,), (1334246878,), (1334246881,), (1334246888,), (1334246892,), (1334246962,), (1334246964,), (1334246967,), (1334246980,), (1334247076,), (1334247080,), (1334247641,), (1334247729,), (1334247804,), (1334247887,), (1334248373,), (1334248325,), (1334248368,), (1334248371,), (1334248848,), (1334248886,), (1334248889,), (1334249052,), (1334249057,), (1334249059,), (1334249062,), (1334249167,), (1334249169,), (1334249173,), (1334249176,), (1334249318,), (1334249327,), (1334249332,), (1334249336,), (1334249504,), (1334249564,), (1334249641,), (1334250287,), (1334250443,), (1334250453,), (1334250456,), (1334250513,), (1334250760,), (1334250767,), (1334250770,), (1334250816,), (1334251586,), (1334251663,), (1334251737,), (1334251821,), (1334251870,), (1334251871,), (1334251982,), (1334251984,), (1334252771,), (1334252774,), (1334252808,), (1334252812,), (1334252820,), (1334252867,), (1334252869,), (1334252870,), (1334252874,), (1334252880,), (1334253175,), (1334253150,), (1334253153,), (1334253156,), (1334253487,), (1334253490,), (1334253514,), (1334253521,), (1334253532,), (1334253598,), (1334253821,), (1334253894,), (1334253977,), (1334254626,), (1334254672,), (1334254726,), (1334254794,), (1334255289,), (1334255291,), (1334255295,), (1334255322,), (1334255326,), (1334255331,), (1334255386,), (1334255388,), (1334255479,), (1334256299,), (1334256300,), (1334256303,), (1334256306,), (1334256311,), (1334256323,), (1334256641,), (1334256713,), (1334256721,), (1334256723,), (1334256807,), (1334256812,), (1334256814,), (1334256835,), (1334256838,), (1334256843,), (1334256848,), (1334256854,), (1334256923,), (1334256925,), (1334256927,), (1334256996,), (1334256999,), (1334257004,), (1334257539,), (1334257592,), (1334257694,), (1334257745,), (1334257850,), (1334259382,), (1334259390,), (1334259427,), (1334259446,), (1334259480,), (1334259750,), (1334259745,), (1334259747,), (1334259883,), (1334259893,), (1334259896,), (1334259900,), (1334259928,), (1334259930,), (1334259934,), (1334259958,), (1334259961,), (1334259964,), (1334259968,), (1334259972,), (1334260941,), (1334261052,), (1334261054,), (1334261057,), (1334261060,), (1334261063,), (1334261536,), (1334261544,), (1334261551,), (1334261566,), (1334261798,), (1334261800,), (1334261804,), (1334261808,), (1334262273,), (1334262274,), (1334262278,), (1334262544,), (1334262559,), (1334262563,), (1334262567,), (1334262571,), (1334262576,), (1334262624,), (1334262633,), (1334262638,), (1334262644,), (1334262650,), (1334263383,), (1334263471,), (1334263558,), (1334263722,), (1334263726,), (1334263734,), (1334263805,), (1334263883,), (1334264059,), (1334264126,), (1334264223,), (1334264228,), (1334264231,), (1334264274,), (1334264368,), (1334264334,), (1334264358,), (1334264364,), (1334264460,), (1334264468,), (1334264471,), (1334264473,), (1334264510,), (1334264516,), (1334264521,), (1334265467,), (1334265537,), (1334265799,), (1334265853,), (1334265857,), (1334265872,), (1334266752,), (1334266842,), (1334266939,), (1334267279,), (1334267343,), (1334267360,), (1334267487,), (1334267490,), (1334267497,), (1334267507,), (1334268186,), (1334268211,), (1334268214,), (1334268252,), (1334268555,), (1334268558,), (1334268560,), (1334268569,), (1334268573,), (1334268586,), (1334268639,), (1334268640,), (1334268641,), (1334268643,), (1334268647,), (1334268648,), (1334268683,), (1334268695,), (1334268703,), (1334268769,), (1334268787,), (1334268802,), (1334268807,), (1334268811,), (1334268816,), (1334268838,), (1334268842,), (1334268845,), (1334268849,), (1334268853,), (1334268909,), (1334268912,), (1334268916,), (1334268920,), (1334268921,), (1334268998,), (1334279625,), (1334279689,), (1334279691,), (1334279693,), (1334279696,), (1334279722,), (1334279725,), (1334279730,), (1334279735,), (1334280349,), (1334280461,), (1334280506,), (1334280734,), (1334280737,), (1334280753,), (1334280788,), (1334280790,), (1334280817,), (1334280859,), (1334280864,), (1334280870,), (1334280872,), (1334280874,), (1334280934,), (1334280937,), (1334280942,), (1334280946,), (1334280949,), (1334280953,), (1334280962,), (1334280966,), (1334280970,), (1334280974,), (1334280978,), (1334280994,), (1334280996,), (1334280999,), (1334281027,), (1334281110,), (1334281112,), (1334281115,), (1334281118,), (1334281121,), (1334281125,), (1334281224,), (1334281228,), (1334281231,), (1334281291,), (1334281379,), (1334281384,), (1334282226,), (1334282215,), (1334282219,), (1334282223,), (1334282308,), (1334282389,), (1334282487,), (1334282577,), (1334282668,), (1334283053,), (1334283084,), (1334283088,), (1334283091,), (1334283094,), (1334283097,), (1334283267,), (1334283270,), (1334283278,), (1334283435,), (1334283437,), (1334283442,), (1334283681,), (1334283896,), (1334284468,), (1334284551,), (1334284651,), (1334284737,), (1334284858,), (1334285107,), (1334285205,), (1334285270,), (1334285316,), (1334285478,), (1334285489,), (1334285493,), (1334285538,), (1334285580,), (1334285584,), (1334286073,), (1334286089,), (1334286129,), (1334286225,), (1334286319,), (1334286941,), (1334286946,), (1334286949,), (1334287121,), (1334287162,), (1334287164,), (1334287165,), (1334287167,), (1334287216,), (1334287204,), (1334287205,), (1334287208,), (1334287211,), (1334287214,), (1334287237,), (1334287240,), (1334287243,), (1334287246,), (1334287331,), (1334287333,), (1334287337,), (1334287341,), (1334287345,), (1334287348,), (1334287392,), (1334287490,), (1334287494,), (1334287496,), (1334287503,), (1334287582,), (1334287583,), (1334287585,), (1334288692,), (1334288695,), (1334288699,), (1334288714,), (1334288722,), (1334289192,), (1334289195,), (1334289202,), (1334289678,), (1334289680,), (1334289812,), (1334289816,), (1334289821,), (1334289895,), (1334289898,), (1334290740,), (1334290888,), (1334291061,), (1334292130,), (1334292134,), (1334292138,), (1334292200,), (1334292185,), (1334292189,), (1334292195,), (1334292497,), (1334292577,), (1334292697,), (1334292915,), (1334293896,), (1334293918,), (1334293931,), (1334293946,), (1334294062,), (1334294250,), (1334294252,), (1334294284,), (1334294289,), (1334294293,), (1334294495,), (1334294499,), (1334294503,), (1334294506,), (1334294558,), (1334295158,), (1334295168,), (1334295176,), (1334295185,), (1334295449,), (1334295468,), (1334295504,), (1334295536,), (1334295539,), (1334295687,), (1334295690,), (1334295694,), (1334295697,), (1334295700,), (1334295730,), (1334295735,), (1334295744,), (1334295746,), (1334295955,), (1334295960,), (1334295966,), (1334296854,), (1334296954,), (1334297076,), (1334297128,), (1334297133,), (1334297199,), (1334297203,), (1334297217,), (1334297221,), (1334297287,), (1334297890,), (1334297902,), (1334297954,), (1334297970,), (1334297980,), (1334298182,), (1334298185,), (1334298189,), (1334298194,), (1334298197,), (1334298211,), (1334298215,), (1334298223,), (1334298229,), (1334298234,), (1334298251,), (1334298241,), (1334298243,), (1334298245,), (1334298247,), (1334298293,), (1334298297,), (1334298302,), (1334298306,), (1334298322,), (1334298323,), (1334298325,), (1334298328,), (1334298330,), (1334298331,), (1334298345,), (1334298347,), (1334298350,), (1334298352,), (1334298354,), (1334298488,), (1334298588,), (1334298718,), (1334298801,), (1334298887,), (1334299511,), (1334299517,), (1334299524,), (1334299754,), (1334300000,), (1334300495,), (1334300607,), (1334300696,), (1334300781,), (1334300862,), (1334300949,), (1334301194,), (1334301195,), (1334301197,), (1334301199,), (1334301910,), (1334301914,), (1334302010,), (1334302013,), (1334302014,), (1334302017,), (1334302172,), (1334302174,), (1334302178,), (1334302244,), (1334302346,), (1334302347,), (1334302360,), (1334302473,), (1334302474,), (1334302478,), (1334302485,), (1334302495,), (1334302505,), (1334302572,), (1334302581,), (1334302586,), (1334302589,), (1334302740,), (1334302663,), (1334302669,), (1334302672,), (1334302685,), (1334302688,), (1334303509,), (1334303581,), (1334303673,), (1334303720,), (1334304188,), (1334304704,), (1334304887,), (1334304893,), (1334304926,), (1334304928,), (1334304975,), (1334304983,), (1334305004,), (1334305006,), (1334305012,), (1334305015,), (1334305494,), (1334305568,), (1334305635,), (1334306444,), (1334306510,), (1334306611,), (1334306674,), (1334306755,), (1334307284,), (1334307308,), (1334307316,), (1334307327,), (1334307428,), (1334307432,), (1334307435,), (1334307449,), (1334307454,), (1334307536,), (1334307539,), (1334307544,), (1334307549,), (1334307629,), (1334307633,), (1334307638,), (1334307644,), (1334307648,), (1334307667,), (1334307670,), (1334307688,), (1334307697,), (1334307700,), (1334307707,), (1334307794,), (1334307757,), (1334307760,), (1334307773,), (1334308004,), (1334308010,), (1334308091,), (1334308151,), (1334308155,), (1334308187,), (1334308217,), (1334308219,), (1334308222,), (1334308226,), (1334308238,), (1334308284,), (1334308286,), (1334317281,), (1334315889,), (1334317018,), (1334317190,), (1334317195,), (1334317254,), (1334317329,), (1334317332,), (1334317335,), (1334317339,), (1334317369,), (1334317371,), (1334317374,), (1334317411,), (1334317415,), (1334317418,), (1334317434,), (1334317642,), (1334317619,), (1334317639,), (1334317696,), (1334317702,), (1334317707,), (1334317712,), (1334317717,), (1334317747,), (1334317752,), (1334317792,), (1334317794,), (1334317816,), (1334317828,), (1334317862,), (1334317867,), (1334317949,), (1334317952,), (1334317956,), (1334317960,), (1334317963,), (1334317965,), (1334318548,), (1334318550,), (1334318552,), (1334318555,), (1334318793,), (1334318796,), (1334318799,), (1334318847,), (1334318853,), (1334318965,), (1334318969,), (1334318973,), (1334318978,), (1334318984,), (1334318987,), (1334319069,), (1334319071,), (1334319074,), (1334319077,), (1334319097,), (1334319099,), (1334319102,), (1334319106,), (1334319110,), (1334319133,), (1334319136,), (1334319141,), (1334319145,), (1334319148,), (1334319164,), (1334319167,), (1334319172,), (1334319213,), (1334319220,), (1334319224,), (1334319228,), (1334319230,), (1334319233,), (1334319320,), (1334319323,), (1334319327,), (1334319330,), (1334319341,), (1334319344,), (1334319444,), (1334319455,), (1334319458,), (1334319461,), (1334320003,), (1334320000,), (1334320040,), (1334320043,), (1334320047,), (1334320050,), (1334320052,), (1334320056,), (1334320093,), (1334320096,), (1334320269,), (1334320285,), (1334320288,), (1334320291,), (1334320481,), (1334320485,), (1334320517,), (1334320520,), (1334320522,), (1334320538,), (1334320564,), (1334320596,), (1334320645,), (1334320668,), (1334320696,), (1334320836,), (1334320843,), (1334320884,), (1334320940,), (1334320943,), (1334320947,), (1334320950,), (1334320953,), (1334320956,), (1334321084,), (1334321091,), (1334321099,), (1334325991,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03022025': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20167022]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1334134733] map_info['map_portfolio_photo'] : {20167022: [1334134733, 1334083075, 1334083060, 1334083058, 1334083042, 1334083041, 1334083040, 1334083030, 1334083019, 1334082992, 1334082937, 1334082921, 1334082881, 1334082872, 1334082870, 1334082711, 1334082710, 1334082709, 1334082690, 1334082687, 1334082684, 1334082682, 1334082680, 1334082663, 1334082659, 1334082656, 1334082655, 1334082630, 1334082629, 1334082588, 1334082587, 1334082583, 1334082575, 1334082573, 1334082572, 1334082478, 1334082430, 1334082429, 1334082278, 1334082277, 1334082275, 1334082260, 1334082259, 1334082257, 1334082255, 1334082239, 1334082238, 1334082233, 1334082232, 1334082231, 1334082230, 1334082215, 1334082214, 1334082213, 1334082076, 1334082074]} final : True mtd_id 4302 list_pids : [1334134733] Looping around the photos to save general results len do output : 1 /20167022Didn'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, '2538847') ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20167022', 'None', None, None, None, None, '2538847'), ('4302', '20167022', '1334134733', None, None, None, None, None, '2538847')] time used for this insertion : 0.017205238342285156 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.8118016719818115 time spend to save output : 0.017349720001220703 total time spend for step 5 : 5.829151391983032 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 (2538847) 1.97user 2.25system 0:23.71elapsed 17%CPU (0avgtext+0avgdata 156404maxresident)k 280inputs+12128outputs (20major+62099minor)pagefaults 0swaps