SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039536 , 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=22039469 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 (22039536) result : ((1349902411,), (1349902791,), (1349902792,), (1349902793,), (1349902795,), (1349902807,), (1349903520,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039537 , 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=22039469 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 (22039537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039538 , 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=22039469 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 (22039538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039539 , 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=22039469 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 (22039539) result : ((1349902502,), (1349902503,), (1349902530,), (1349902531,), (1349902783,), (1349902784,), (1349902786,), (1349902788,), (1349902801,), (1349902802,), (1349902803,), (1349902804,), (1349902805,), (1349902848,), (1349902849,), (1349902850,), (1349903016,), (1349903017,), (1349903018,), (1349903514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039540 , 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=22039469 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 (22039540) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039541 , 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=22039469 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 (22039541) result : ((1349901880,), (1349902513,), (1349902514,), (1349902515,), (1349902516,), (1349902771,), (1349902772,), (1349902806,), (1349902856,), (1349903032,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039542 , 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=22039469 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 (22039542) result : ((1349901869,), (1349901870,), (1349901872,), (1349902420,), (1349902423,), (1349902425,), (1349902427,), (1349902540,), (1349902769,), (1349902797,), (1349902798,), (1349902800,), (1349902852,), (1349902853,), (1349902854,), (1349903024,), (1349903025,), (1349903026,), (1349903525,), (1349903526,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039543 , 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=22039469 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 (22039543) result : ((1349902435,), (1349902437,), (1349902439,), (1349902522,), (1349902523,), (1349902546,), (1349902774,), (1349902808,), (1349902809,), (1349902810,), (1349902811,), (1349902812,), (1349902813,), (1349902857,), (1349902858,), (1349902859,), (1349903036,), (1349903529,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039544 , 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=22039469 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 (22039544) result : ((1349902863,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039545 , 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=22039469 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 (22039545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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 22039546 , 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=22039469 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 (22039546) result : ((1349902449,), (1349902451,), (1349902455,), (1349902457,), (1349902460,), (1349902535,), (1349902536,), (1349902538,), (1349902539,), (1349902551,), (1349902776,), (1349902777,), (1349902814,), (1349902817,), (1349902861,), (1349902862,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22039469) result : ((1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) 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`=22039469 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','flou','kraft','cartonnette','Teint_Dans_La_Masse','mal_croppe','environnement','Carton_gris','papier','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22039469 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','plastique','flou','kraft','cartonnette','Teint_Dans_La_Masse','mal_croppe','environnement','Carton_gris','papier','autre_refus','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22039469, 'sub_port_id': 22039547, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531570, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'autre_refus': {'main_port_id': 22039469, 'sub_port_id': 22039548, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531571, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'papier': {'main_port_id': 22039469, 'sub_port_id': 22039549, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531572, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'flou': {'main_port_id': 22039469, 'sub_port_id': 22039550, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531573, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22039469, 'sub_port_id': 22039551, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531574, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'mal_croppe': {'main_port_id': 22039469, 'sub_port_id': 22039552, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531575, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'cartonnette': {'main_port_id': 22039469, 'sub_port_id': 22039553, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531576, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Carton_gris': {'main_port_id': 22039469, 'sub_port_id': 22039554, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531577, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'Carton_brun': {'main_port_id': 22039469, 'sub_port_id': 22039555, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531578, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'metal': {'main_port_id': 22039469, 'sub_port_id': 22039556, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531579, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'kraft': {'main_port_id': 22039469, 'sub_port_id': 22039557, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531580, 'last_updated_at': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 22, 49, 33), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}, 'plastique': {'main_port_id': 22039469, 'sub_port_id': 22039558, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14531581, 'last_updated_at': datetime.datetime(2025, 4, 3, 23, 1, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 23, 1, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 22, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22039558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22039546 lien utilise dans velours : https://www.fotonower.com/velours/22039547,22039548,22039549,22039550,22039551,22039552,22039553,22039554,22039555,22039556,22039557,22039558?tags=environnement,autre_refus,papier,flou,Teint_Dans_La_Masse,mal_croppe,cartonnette,Carton_gris,Carton_brun,metal,kraft,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349903628] map_info['map_portfolio_photo'] : {22039469: [1349903628, 1349903354, 1349903328, 1349903321, 1349903315, 1349903082, 1349903057, 1349903042, 1349903010, 1349902989, 1349902966, 1349902886, 1349902882, 1349902877, 1349902873, 1349902868, 1349902830, 1349902826, 1349902816, 1349902787, 1349902759, 1349902757, 1349902752, 1349902749, 1349902745, 1349902742, 1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349903628] Looping around the photos to save general results len do output : 1 /22039469. 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, '2722151') ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151') 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, '22039469', "{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}", None, None, None, None, '2722151'), ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151')] time used for this insertion : 0.0332796573638916 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.495894193649292 time spend to save output : 0.03357195854187012 total time spend for step 1 : 4.529466152191162 step2:final Thu Apr 3 23:03: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 ! 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 (22039469) 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 22039469 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349900629,1349900609,1349900579,1349901514,1349901208,1349901197,1349901508,1349901179,1349901489,1349901162,1349901451,1349900992,1349901366,1349901340,1349900734,1349901320,1349901311,1349901305,1349901294,1349901730,1349901712,1349901693,1349901641,1349901611,1349901586,1349901890,1349901905,1349901865,1349901884,1349901841,1349901846,1349901819,1349901826,1349901795,1349901803,1349902134,1349902094,1349902061,1349902033,1349902015,1349901989,1349902387,1349902381,1349902279,1349902239,1349902532,1349902499,1349902477,1349902458,1349902430,1349902406,1349902658,1349902641,1349902636,1349902610,1349902759,1349902757,1349902752,1349902749,1349902745,1349902742,1349902830,1349902826,1349902816,1349902787,1349902886,1349902882,1349902877,1349902873,1349902868,1349903082,1349903057,1349903042,1349903010,1349902989,1349902966,1349903354,1349903328,1349903321,1349903315,1349903628); 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([22039469]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349903628: ('0.05351375771395628',)} new output for save of step final : {1349903628: ('0.05351375771395628',)} [1349903628] map_info['map_portfolio_photo'] : {22039469: [1349903628, 1349903354, 1349903328, 1349903321, 1349903315, 1349903082, 1349903057, 1349903042, 1349903010, 1349902989, 1349902966, 1349902886, 1349902882, 1349902877, 1349902873, 1349902868, 1349902830, 1349902826, 1349902816, 1349902787, 1349902759, 1349902757, 1349902752, 1349902749, 1349902745, 1349902742, 1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349903628] Looping around the photos to save general results len do output : 1 /1349903628.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, '2722151') ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151') 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', '22039469', '1349903628', '0.05351375771395628', None, None, None, None, '2722151')] time used for this insertion : 0.03374934196472168 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.25084781646728516 time spend to save output : 0.034033775329589844 total time spend for step 2 : 0.284881591796875 step3:velours_tree Thu Apr 3 23:03:34 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 : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} input_args_next_step : {22039469: ()} output_args : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} args : 22039469 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) 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([22039469]) 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.6814701557159424 time spend to save output : 7.319450378417969e-05 total time spend for step 3 : 0.6815433502197266 step4:send_mail_cod Thu Apr 3 23:03:34 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 : {1349903628: ('0.05351375771395628',)} input_args_next_step : {1349903628: ()} output_args : {1349903628: ('0.05351375771395628',)} args : 1349903628 depend.output_id : 0 complete output_args for input 3 : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} input_args_next_step : {1349903628: ('0.05351375771395628',), 22039469: ()} output_args : {22039469: [{'environnement': 22039535, 'autre_refus': 22039536, 'papier': 22039537, 'flou': 22039538, 'Teint_Dans_La_Masse': 22039539, 'mal_croppe': 22039540, 'cartonnette': 22039541, 'Carton_gris': 22039542, 'Carton_brun': 22039543, 'metal': 22039544, 'kraft': 22039545, 'plastique': 22039546}]} args : 22039469 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.05351375771395628',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) 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 (1349903628) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349903628 download finish for photo 1349903628 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_P22039469_03-04-2025_23_03_34.pdf 22039536 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=22039536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902411: '1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870639_0.png', 1349902791: '1743713726_2744839_1349902658_97bfb6eae433403ca33e5061ae4f72ec_rle_crop_3746876293_0.png', 1349902792: '1743713726_2744839_1349902458_8624418c7afddedc25892eeff01ecd95_rle_crop_3746876342_0.png', 1349902793: '1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878392_0.png', 1349902795: '1743713726_2744839_1349902406_af149aace80ae3bec38e2a9f6023ece3_rle_crop_3746878417_0.png', 1349902807: '1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878434_0.png', 1349903520: '1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904811_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/154d4b04eb0ed788616d6be30e2add65_31166547.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cbb2112e64a9948fad4d415475581399_52625463.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1a67fcc0f72b2e127d47e3e0f5797ca9_56608074.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7074862de9ab03764f3b8af4dab238f2_30874956.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23abfa71f80f3d3ef788208342071b8c_85866702.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3541024baff3046953f0ae521f93c1ee_21853946.png change filename to text .imagette220395361743714214/ imagette220395361743714214/1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870639_0.png.png imagette220395361743714214/1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878392_0.png.png imagette220395361743714214/1743713726_2744839_1349902406_af149aace80ae3bec38e2a9f6023ece3_rle_crop_3746878417_0.png.png imagette220395361743714214/1743713726_2744839_1349902458_8624418c7afddedc25892eeff01ecd95_rle_crop_3746876342_0.png.png imagette220395361743714214/1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904811_0.png.png imagette220395361743714214/1743713726_2744839_1349902658_97bfb6eae433403ca33e5061ae4f72ec_rle_crop_3746876293_0.png.png imagette220395361743714214/1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878434_0.png.png imagette220395381743714215/ imagette220395401743714215/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d06be1f8ac21ff2b41a08b1f16499380_884555.png imagette220395361743714214 22039538 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=22039538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395381743714215 22039540 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=22039540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395401743714215 22039541 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=22039541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349901880: '1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869003_0.png', 1349902513: '1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870926_0.png', 1349902514: '1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870922_0.png', 1349902515: '1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870946_0.png', 1349902516: '1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870942_0.png', 1349902771: '1743713727_1132455_1349902641_41176c3a3bbe836b208e9735efc27c97_rle_crop_3746876252_0.png', 1349902772: '1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876267_0.png', 1349902806: '1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878388_0.png', 1349902856: '1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887953_0.png', 1349903032: '1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901769_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5f1e21b6ccc6433ee6814e1a0a6776a5_48393962.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3565e61ffb3c2a4f68bb792d50033fde_86716186.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d562525a1bdd88da5c38e559b046d175_27378262.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3565e61ffb3c2a4f68bb792d50033fde_53588755.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d562525a1bdd88da5c38e559b046d175_37864990.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7fe6051fce54c1022d43d8fd3d042977_31474563.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6440eeedc63523914ce1d001fa123233_76324927.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/25ead13b993fd97519bc70371010f8c6_3734281.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a31425c0be41aad55d50800838cd9753_18406102.png change filename to text .imagette220395411743714215/ imagette220395411743714215/1743713727_1132455_1349902641_41176c3a3bbe836b208e9735efc27c97_rle_crop_3746876252_0.png.png imagette220395411743714215/1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870922_0.png.png imagette220395411743714215/1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901769_0.png.png imagette220395411743714215/1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887953_0.png.png imagette220395411743714215/1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876267_0.png.png imagette220395411743714215/1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870942_0.png.png imagette220395411743714215/1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869003_0.png.png imagette220395411743714215/1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878388_0.png.png imagette220395411743714215/1743713551_2672013_1349901819_04058d437ff884dcf133420db39c9ebd_rle_crop_3746870946_0.png.png imagette220395411743714215/1743713551_2672013_1349901826_54af8c4c7c42c8dc52238a25169fb93e_rle_crop_3746870926_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ac1a3d4374207432587fd0e8ddbaf8b6_94048104.png imagette220395411743714215 22039544 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=22039544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902863: '1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887972_0.png'} change filename to text .imagette220395441743714215/ imagette220395441743714215/1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887972_0.png.png imagette220395451743714215/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/225f6b06e582e283ea3537cc7cd503c7_28876017.png imagette220395441743714215 22039545 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=22039545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220395451743714215 22039546 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=22039546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902449: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870576_0.png', 1349902451: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870569_0.png', 1349902455: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870587_0.png', 1349902457: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870580_0.png', 1349902460: '1743713548_1128780_1349901586_4328f39908cef17bf8c913002194dca0_rle_crop_3746870685_0.png', 1349902535: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870859_0.png', 1349902536: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870858_0.png', 1349902538: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870872_0.png', 1349902539: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870871_0.png', 1349902551: '1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870972_0.png', 1349902776: '1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876260_0.png', 1349902777: '1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876268_0.png', 1349902814: '1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876311_0.png', 1349902817: '1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878389_0.png', 1349902861: '1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887978_0.png', 1349902862: '1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/212d0eb866949036867aeff7a5c32ac2_685945.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a6ada367f3d72a250b3635547b2ed653_50092658.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/212d0eb866949036867aeff7a5c32ac2_28833994.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a6ada367f3d72a250b3635547b2ed653_87498012.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a4af2f9d95aeef77078d9ee9822846e_10006005.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d2aab244bf97729dc236eba5bed6312b_27248645.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/84a1fa789c3fb355f0325407c6e55aef_22227852.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d2aab244bf97729dc236eba5bed6312b_83153122.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/84a1fa789c3fb355f0325407c6e55aef_95267310.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e7d1764e46c42bd5e748fafdb2b39f2d_79862427.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/526f29a8a492c77d1ce39d7e767d52b4_85663022.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/491e8e51611ea60cb821a9a6fc3e0780_59113630.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a47a9f11718744666137c1bd7f00755a_45821694.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f8c628b5a4e7b63053e064dba6d28ceb_42272829.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/79f3449e75531f9a73cd2a85bef8f162_79045967.png change filename to text .imagette220395461743714215/ imagette220395461743714215/1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876311_0.png.png imagette220395461743714215/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870872_0.png.png imagette220395461743714215/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870580_0.png.png imagette220395461743714215/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870858_0.png.png imagette220395461743714215/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870859_0.png.png imagette220395461743714215/1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878389_0.png.png imagette220395461743714215/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870871_0.png.png imagette220395461743714215/1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870972_0.png.png imagette220395461743714215/1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887979_0.png.png imagette220395461743714215/1743713548_1128780_1349901586_4328f39908cef17bf8c913002194dca0_rle_crop_3746870685_0.png.png imagette220395461743714215/1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876268_0.png.png imagette220395461743714215/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870569_0.png.png imagette220395461743714215/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870587_0.png.png imagette220395461743714215/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870576_0.png.png imagette220395461743714215/1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876260_0.png.png imagette220395461743714215/1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887978_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e470b30d99cdf7ff8ce9567ede320b2c_86507724.png imagette220395461743714215 22039539 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=22039539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902803: '1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878443_0.png', 1349903514: '1743713991_2676204_1349902826_aa9f7ffc00bbf44d347efb1f8d97cef3_rle_crop_3746904805_0.png', 1349903018: '1743713833_2674954_1349902745_13adfa04558d2d1a47f04e7f8b28867d_rle_crop_3746901803_0.png', 1349903017: '1743713833_2674954_1349902749_fd02b9489dc802d1a5cc41efdfba9150_rle_crop_3746901791_0.png', 1349903016: '1743713833_2674954_1349902749_fd02b9489dc802d1a5cc41efdfba9150_rle_crop_3746901785_0.png', 1349902850: '1743713750_2673835_1349901989_b8f1602f4a57353b21b4bfcf4795e457_rle_crop_3746888013_0.png', 1349902849: '1743713750_2673835_1349902015_817f8eeae682fbfcd564a1e7afeb4530_rle_crop_3746888001_0.png', 1349902848: '1743713750_2673835_1349902387_3b28c903f1e8093fe8e3f15e62dd469c_rle_crop_3746887937_0.png', 1349902805: '1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878445_0.png', 1349902804: '1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878446_0.png', 1349902502: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870854_0.png', 1349902802: '1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878409_0.png', 1349902801: '1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878412_0.png', 1349902788: '1743713726_2744839_1349902406_af149aace80ae3bec38e2a9f6023ece3_rle_crop_3746878425_0.png', 1349902786: '1743713726_2744839_1349902458_8624418c7afddedc25892eeff01ecd95_rle_crop_3746876343_0.png', 1349902784: '1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876331_0.png', 1349902783: '1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876315_0.png', 1349902531: '1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871063_0.png', 1349902530: '1743713571_2672238_1349901305_47d557f783199840fcb34aa9f8f221e9_rle_crop_3746870983_0.png', 1349902503: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870867_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0199c061a80cdad50d15c6ab92f31e68_96845242.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fff396ef82e8314c4136114ca3bfc4ae_19447845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d15e1e094a8148d1db4440bbfaa5c16f_60008365.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e0ff8703280b70e4142e68f20ecdcbe8_61803193.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/835a54ada04969b1f94bdf2c075f6794_7710292.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/497b4fc3112122916f331749ff2e042c_12490722.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/11a8af23a8beb0e2c8b52c76496647f9_5608126.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ded71096ded1167b7b32678bceb11e59_84334181.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5959aba22851016f27b7c5206740327e_91344491.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/590a1fe4e146686efa66f8fb450fba27_70429692.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f6204dfa61af3a487d920818a3b21200_25600657.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/261f7e369ff6b3b7591175ff8298cc46_4796096.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/493af682f7d58bdb45a8a623d5be720f_82729764.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6edea46547ba40e124c50b5b59a5f708_75623630.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/43d676b65d6874cf27731a6c7fd548f9_27081880.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/abbef6c53a79892da194f0777c008d9c_16811575.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb07d3cdda03d16a811ef78c1953e82e_38844470.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/328c58dd467edcc2b9955cde271d73b5_86102200.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/26c8d5ab1668dba9c001900e0065d63b_58022885.png change filename to text .imagette220395391743714217/ imagette220395391743714217/1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878445_0.png.png imagette220395391743714217/1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878443_0.png.png imagette220395391743714217/1743713571_2672238_1349901305_47d557f783199840fcb34aa9f8f221e9_rle_crop_3746870983_0.png.png imagette220395391743714217/1743713750_2673835_1349902015_817f8eeae682fbfcd564a1e7afeb4530_rle_crop_3746888001_0.png.png imagette220395391743714217/1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871063_0.png.png imagette220395391743714217/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870854_0.png.png imagette220395391743714217/1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878409_0.png.png imagette220395391743714217/1743713750_2673835_1349902387_3b28c903f1e8093fe8e3f15e62dd469c_rle_crop_3746887937_0.png.png imagette220395391743714217/1743713726_2744839_1349902406_af149aace80ae3bec38e2a9f6023ece3_rle_crop_3746878425_0.png.png imagette220395391743714217/1743713726_2744839_1349902458_8624418c7afddedc25892eeff01ecd95_rle_crop_3746876343_0.png.png imagette220395391743714217/1743713750_2673835_1349901989_b8f1602f4a57353b21b4bfcf4795e457_rle_crop_3746888013_0.png.png imagette220395391743714217/1743713833_2674954_1349902749_fd02b9489dc802d1a5cc41efdfba9150_rle_crop_3746901785_0.png.png imagette220395391743714217/1743713731_2673696_1349902279_32ce462a15dd2900e7c78814001570fe_rle_crop_3746878446_0.png.png imagette220395391743714217/1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876315_0.png.png imagette220395391743714217/1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876331_0.png.png imagette220395391743714217/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870867_0.png.png imagette220395391743714217/1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878412_0.png.png imagette220395391743714217/1743713833_2674954_1349902745_13adfa04558d2d1a47f04e7f8b28867d_rle_crop_3746901803_0.png.png imagette220395391743714217/1743713833_2674954_1349902749_fd02b9489dc802d1a5cc41efdfba9150_rle_crop_3746901791_0.png.png imagette220395391743714217/1743713991_2676204_1349902826_aa9f7ffc00bbf44d347efb1f8d97cef3_rle_crop_3746904805_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f6204dfa61af3a487d920818a3b21200_46502354.png imagette220395391743714217 22039542 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=22039542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902798: '1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876332_0.png', 1349903526: '1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904812_0.png', 1349903525: '1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904813_0.png', 1349903026: '1743713833_2674954_1349902745_13adfa04558d2d1a47f04e7f8b28867d_rle_crop_3746901798_0.png', 1349903025: '1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901770_0.png', 1349903024: '1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901763_0.png', 1349902854: '1743713750_2673835_1349902015_817f8eeae682fbfcd564a1e7afeb4530_rle_crop_3746887998_0.png', 1349902853: '1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887958_0.png', 1349902852: '1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887962_0.png', 1349902800: '1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876329_0.png', 1349901869: '1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868968_0.png', 1349902797: '1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876314_0.png', 1349902769: '1743713727_1132455_1349902641_41176c3a3bbe836b208e9735efc27c97_rle_crop_3746876247_0.png', 1349902540: '1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871055_0.png', 1349902427: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870582_0.png', 1349902425: '1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870581_0.png', 1349902423: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870571_0.png', 1349902420: '1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870570_0.png', 1349901872: '1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869005_0.png', 1349901870: '1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8f054e0b5cdc6205b87e53f51a43b730_92073551.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4bc9554b0b79fb77e19a971a5340a77b_18941264.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4f29a3724740a0f0c89d9178fdbe9841_74128099.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f106e29061fff51422df0530cdda802a_12398403.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0e006d7f33e1ecfa11f812cdaaf80243_45271734.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d926f26f0182b9784031ce4e8eabf966_36625735.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f449cd5667e17a70066969d75d22be29_17132988.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e64644f85e8ec113b5b09b5c8ad436e6_26279736.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1917026a40425773e3e18b3e3b07b551_74853066.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b4f9d7497dcf089d69594a6dbd60dfaa_25075395.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1ac88a314e3d3664a44daf100576412b_25161946.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/23a043c912aa1091067dbcf66f0befe0_48132464.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/398ce8784a8255f7ef28888adcfc3722_83340157.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b12cfbb0280799fdf4b614f78e31f5fd_41839019.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a39ce9192c10308cc4980788ba55df58_84950183.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb706debff378df131c23947d99ca172_17477008.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a39ce9192c10308cc4980788ba55df58_21653794.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb706debff378df131c23947d99ca172_79544488.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aadc17be99d9dfd60624c24468d6d8f5_67144979.png change filename to text .imagette220395421743714218/ imagette220395421743714218/1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901770_0.png.png imagette220395421743714218/1743713373_2669271_1349900992_26eaccd100c6b8cb1bcb7d052aff01b5_rle_crop_3746869005_0.png.png imagette220395421743714218/1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887962_0.png.png imagette220395421743714218/1743713833_2674954_1349902745_13adfa04558d2d1a47f04e7f8b28867d_rle_crop_3746901798_0.png.png imagette220395421743714218/1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876314_0.png.png imagette220395421743714218/1743713750_2673835_1349902015_817f8eeae682fbfcd564a1e7afeb4530_rle_crop_3746887998_0.png.png imagette220395421743714218/1743713727_1132455_1349902641_41176c3a3bbe836b208e9735efc27c97_rle_crop_3746876247_0.png.png imagette220395421743714218/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870571_0.png.png imagette220395421743714218/1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868966_0.png.png imagette220395421743714218/1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901763_0.png.png imagette220395421743714218/1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904812_0.png.png imagette220395421743714218/1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876329_0.png.png imagette220395421743714218/1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904813_0.png.png imagette220395421743714218/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870582_0.png.png imagette220395421743714218/1743713571_2672238_1349901294_86fd21882afe0418ea2a2a8d9c27e857_rle_crop_3746871055_0.png.png imagette220395421743714218/1743713548_1128780_1349901905_b53aa4ee1a8af68a2e8bbe6fd88a796b_rle_crop_3746870570_0.png.png imagette220395421743714218/1743713373_2669271_1349901162_066f3ae05b523b829fd88b2dd569fd4b_rle_crop_3746868968_0.png.png imagette220395421743714218/1743713548_1128780_1349901890_4074ba6253893754a5c3a5ff9c579d47_rle_crop_3746870581_0.png.png imagette220395421743714218/1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887958_0.png.png imagette220395421743714218/1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876332_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a1a3501ed8d98e4ffd4bb377f68e8772_80085628.png imagette220395421743714218 22039543 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=22039543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349902810: '1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876317_0.png', 1349903529: '1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904816_0.png', 1349903036: '1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901767_0.png', 1349902859: '1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887981_0.png', 1349902858: '1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887963_0.png', 1349902857: '1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887960_0.png', 1349902813: '1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878394_0.png', 1349902812: '1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878396_0.png', 1349902811: '1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876333_0.png', 1349902435: '1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870634_0.png', 1349902809: '1743713726_2744839_1349902658_97bfb6eae433403ca33e5061ae4f72ec_rle_crop_3746876294_0.png', 1349902808: '1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878408_0.png', 1349902774: '1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876271_0.png', 1349902546: '1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870974_0.png', 1349902523: '1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870868_0.png', 1349902522: '1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870855_0.png', 1349902439: '1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870673_0.png', 1349902437: '1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870675_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/00e8d7f72c3f63656a7616df87f92251_80435541.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3a3149e2751f13c8f1d204b7734edefe_14939127.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a5efb04d1546094b141347ef6284cdbf_98048525.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c3fe4872cb5d1103ccf71144f5549dd5_68741106.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f76707e36b773fc2f398ea1c17535c70_46418991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/47b99a16eef14613c6ab72df5a22c1b8_88476161.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f0e320261ce0a4a14e22cd0dd89f5f8b_27493105.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d68c96fa186450937199588e98e51693_51716523.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2fd9953228fa2132daaaa6965be69f98_64632130.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7d95d8d5d099a79e88ee0af23202bcd7_89006415.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3f6fe7e521f8f730f031ed8b5016d117_41026818.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2b5f089061c2fe3246a478084de6ca91_14136745.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3b7ce009a40f74560fb5c98278a3f905_97689656.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bc024f764186aa686a520b71a3931a16_64276912.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/29872ddf69139cb7429ebe0f923bdd95_45156522.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/29872ddf69139cb7429ebe0f923bdd95_68391646.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/87567dd8f7db4c9ebbb8d441d916cde7_76901122.png change filename to text .imagette220395431743714219/ imagette220395431743714219/1743713731_2673696_1349902381_6fd60825f8a9b4f5fe5abbcd1e041a7e_rle_crop_3746878408_0.png.png imagette220395431743714219/1743713833_2674954_1349902752_1698b080ed9f1f73aa861b2eaf40dc1c_rle_crop_3746901767_0.png.png imagette220395431743714219/1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887960_0.png.png imagette220395431743714219/1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870675_0.png.png imagette220395431743714219/1743713726_2744839_1349902499_672794e7813b34205d89407c84f7668c_rle_crop_3746876317_0.png.png imagette220395431743714219/1743713727_1132455_1349902636_59519990c16e429554f958efe0f3723d_rle_crop_3746876271_0.png.png imagette220395431743714219/1743713551_2672013_1349901846_0cf26656bb29ae53895652626d51d113_rle_crop_3746870855_0.png.png imagette220395431743714219/1743713571_2672238_1349901311_d1d1af5a958b24a06ce647bddbbdf441_rle_crop_3746870974_0.png.png imagette220395431743714219/1743713551_2672013_1349901841_cefb03850137f94fa8ec285dc4234807_rle_crop_3746870868_0.png.png imagette220395431743714219/1743713548_1128780_1349901693_2a80d0879f024102f04d251c5edcd4fe_rle_crop_3746870634_0.png.png imagette220395431743714219/1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878394_0.png.png imagette220395431743714219/1743713991_2676204_1349902816_2f04f782076f61279056d51db5090fab_rle_crop_3746904816_0.png.png imagette220395431743714219/1743713750_2673835_1349902033_055434160f94ad446b0309ef0c2967b8_rle_crop_3746887981_0.png.png imagette220395431743714219/1743713726_2744839_1349902477_210da9c3ae5edcebbd34024f2cf4dcf7_rle_crop_3746876333_0.png.png imagette220395431743714219/1743713726_2744839_1349902430_8579e75c184cb85d2fe8f83d59f96293_rle_crop_3746878396_0.png.png imagette220395431743714219/1743713726_2744839_1349902658_97bfb6eae433403ca33e5061ae4f72ec_rle_crop_3746876294_0.png.png imagette220395431743714219/1743713750_2673835_1349902061_2b5007a22fa8e93564652dce837d512a_rle_crop_3746887963_0.png.png imagette220395431743714219/1743713548_1128780_1349901611_22c7f22aaa2925fa66c88b8dc63dd255_rle_crop_3746870673_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d3d7e43556b0275e19e8318c785a801c_52640104.png imagette220395431743714219 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22039469 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22039547,22039548,22039549,22039550,22039551,22039552,22039553,22039554,22039555,22039556,22039557,22039558?tags=environnement,autre_refus,papier,flou,Teint_Dans_La_Masse,mal_croppe,cartonnette,Carton_gris,Carton_brun,metal,kraft,plastique your option no_mail is active, we will not send the real mail to your client args[1349903628] : ('0.05351375771395628',) no score found for photo 1349903628 We are sending mail with results at report@fotonower.com refus_total : 0.05351375771395628 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=22039469 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_P22039469_03-04-2025_23_03_34.pdf results_Auto_P22039469_03-04-2025_23_03_34.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_23_03_34.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','22039469','results_Auto_P22039469_03-04-2025_23_03_34.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_23_03_34.pdf','pdf','','0.26','0.05351375771395628') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349903628] map_info['map_portfolio_photo'] : {22039469: [1349903628, 1349903354, 1349903328, 1349903321, 1349903315, 1349903082, 1349903057, 1349903042, 1349903010, 1349902989, 1349902966, 1349902886, 1349902882, 1349902877, 1349902873, 1349902868, 1349902830, 1349902826, 1349902816, 1349902787, 1349902759, 1349902757, 1349902752, 1349902749, 1349902745, 1349902742, 1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : False mtd_id 4302 list_pids : [1349903628] 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, '2722151') ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151') 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', '22039469', '1349903628', None, None, None, None, None, '2722151')] time used for this insertion : 0.041676998138427734 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.966197490692139 time spend to save output : 0.041886329650878906 total time spend for step 4 : 7.008083820343018 step5:split_time_score Thu Apr 3 23:03:41 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 : ['22039469'] 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 : [('22039469',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22039469) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349903628: {'path': 'temp/1743714214_995411_1349903628_924c516cd7d7dd3362dfe1f4e3b7481e.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 = 22039469; (('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 = 22039469 group by h (('22', 81),) 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=22039469 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 (22039469) 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 (22039469) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22039469 Nombre de photos uploadées : 81 / 23040 (0%) 03042025 22039469 Nombre de photos taguées (types de déchets): 0 / 81 (0%) 03042025 22039469 Nombre de photos taguées (volume) : 0 / 81 (0%) [{'photo_id': 1349900629, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f487550848bc1fe10a738de7c9653637.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_05_10138.jpg'}, {'photo_id': 1349900609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8ac751fcd74b6c752baa0917ef93338d.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_34_9125.jpg'}, {'photo_id': 1349900579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6bace758efa5596b2dc3f70c244ccd56.jpg', 'username': None, 'uploaded_at': 1743713192, 'text': 'image_03042025_22_45_44_10133.jpg'}, {'photo_id': 1349901514, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9030d7484501f6080659f7cac374bd81.jpg', 'username': None, 'uploaded_at': 1743713332, 'text': 'image_03042025_22_45_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.76837158203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.4066696166992188e-05 ????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004156827926635742 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22039469, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.08394408226013184 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= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722998, 'mtr_portfolio_id': 22037273, 'dashboard_result_id': 9861022, '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_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722998, 'mtr_portfolio_id': 22038344, 'dashboard_result_id': 9861023, '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_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722998, 'mtr_portfolio_id': 22039469, 'dashboard_result_id': 9861025, '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_P22039469_03-04-2025_23_01_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, '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 = 22037273 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': 2722027, 'mtr_portfolio_id': 22037273, 'created_at': datetime.datetime(2025, 4, 3, 22, 32, 59), 'result': '0.05394404993520578', 'result_long': None, 'result_double': None}] Qualite : 0.05394404993520578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037273_03-04-2025_22_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037273 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_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, 'pht': 3726}}" where mtr_portfolio_id = 22037273 and dashboard_run_id = 1722998 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`=22037273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9861022, 0.05394404993520578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037273_03-04-2025_22_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22037278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037282, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037285, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037286, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037289, '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 = 22038344 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': 2722100, 'mtr_portfolio_id': 22038344, 'created_at': datetime.datetime(2025, 4, 3, 22, 48, 59), 'result': '0.03883786613367081', 'result_long': None, 'result_double': None}] Qualite : 0.03883786613367081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22038344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038344_03-04-2025_22_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22038344 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_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, 'pht': 3726}}" where mtr_portfolio_id = 22038344 and dashboard_run_id = 1722998 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`=22038344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9861023, 0.03883786613367081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038344_03-04-2025_22_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038395, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22038404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038416, '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 = 22039469 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': 2722151, 'mtr_portfolio_id': 22039469, 'created_at': datetime.datetime(2025, 4, 3, 23, 3, 33), 'result': '0.05351375771395628', 'result_long': None, 'result_double': None}] Qualite : 0.05351375771395628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22039469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_23_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22039469 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_P22039469_03-04-2025_23_03_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, 'pht': 3726}}" where mtr_portfolio_id = 22039469 and dashboard_run_id = 1722998 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`=22039469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9861025, 0.05351375771395628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22039469_03-04-2025_23_03_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22039535, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22039536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22039537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22039538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22039539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22039540, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22039541, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22039542, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22039543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22039544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22039545, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22039546, '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 (22037273,22038344,22039469) result : ((1349883725,), (1349883748,), (1349883788,), (1349883830,), (1349883853,), (1349883971,), (1349883992,), (1349884024,), (1349884052,), (1349884103,), (1349884143,), (1349884589,), (1349884673,), (1349885167,), (1349885202,), (1349885235,), (1349885260,), (1349885848,), (1349885934,), (1349885978,), (1349886013,), (1349886058,), (1349886341,), (1349886398,), (1349886458,), (1349886810,), (1349886854,), (1349886882,), (1349886927,), (1349886982,), (1349887040,), (1349887300,), (1349887332,), (1349887384,), (1349887427,), (1349887895,), (1349887959,), (1349888019,), (1349888078,), (1349888157,), (1349888228,), (1349888562,), (1349888592,), (1349888635,), (1349888669,), (1349888694,), (1349888727,), (1349888901,), (1349888956,), (1349889001,), (1349889036,), (1349889311,), (1349889347,), (1349889384,), (1349889412,), (1349889455,), (1349889505,), (1349889823,), (1349889871,), (1349889951,), (1349890025,), (1349890857,), (1349890952,), (1349891044,), (1349891170,), (1349891206,), (1349891259,), (1349891466,), (1349891532,), (1349891593,), (1349891645,), (1349891681,), (1349892455,), (1349892242,), (1349892319,), (1349892383,), (1349892873,), (1349892937,), (1349893012,), (1349893050,), (1349893075,), (1349893113,), (1349893304,), (1349893387,), (1349893483,), (1349893940,), (1349894017,), (1349894098,), (1349894146,), (1349894200,), (1349894526,), (1349894566,), (1349894594,), (1349894911,), (1349894951,), (1349894979,), (1349895024,), (1349895590,), (1349895836,), (1349896027,), (1349896230,), (1349896394,), (1349896415,), (1349896438,), (1349897099,), (1349897172,), (1349897221,), (1349897280,), (1349897336,), (1349897805,), (1349897854,), (1349897915,), (1349897959,), (1349898020,), (1349898394,), (1349898426,), (1349898492,), (1349898532,), (1349898582,), (1349898622,), (1349898871,), (1349898916,), (1349898964,), (1349898994,), (1349899045,), (1349899064,), (1349899241,), (1349899274,), (1349899310,), (1349899462,), (1349899688,), (1349899724,), (1349899746,), (1349899803,), (1349899858,), (1349899900,), (1349899999,), (1349900029,), (1349900053,), (1349900070,), (1349900114,), (1349900162,), (1349900286,), (1349900348,), (1349900412,), (1349900432,), (1349900476,), (1349900515,), (1349900651,), (1349900579,), (1349900609,), (1349900629,), (1349900734,), (1349900992,), (1349901162,), (1349901179,), (1349901197,), (1349901208,), (1349901294,), (1349901305,), (1349901311,), (1349901320,), (1349901340,), (1349901366,), (1349901451,), (1349901489,), (1349901508,), (1349901514,), (1349901586,), (1349901611,), (1349901641,), (1349901693,), (1349901712,), (1349901730,), (1349901795,), (1349901803,), (1349901819,), (1349901826,), (1349901841,), (1349901846,), (1349901865,), (1349901884,), (1349901890,), (1349901905,), (1349901989,), (1349902015,), (1349902033,), (1349902061,), (1349902094,), (1349902134,), (1349902239,), (1349902279,), (1349902381,), (1349902387,), (1349902406,), (1349902430,), (1349902458,), (1349902477,), (1349902499,), (1349902532,), (1349902610,), (1349902636,), (1349902641,), (1349902658,), (1349902742,), (1349902745,), (1349902749,), (1349902752,), (1349902757,), (1349902759,), (1349902787,), (1349902816,), (1349902826,), (1349902830,), (1349902868,), (1349902873,), (1349902877,), (1349902882,), (1349902886,), (1349902966,), (1349902989,), (1349903010,), (1349903042,), (1349903057,), (1349903082,), (1349903315,), (1349903321,), (1349903328,), (1349903354,), (1349903628,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 81, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22039469]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349903628] map_info['map_portfolio_photo'] : {22039469: [1349903628, 1349903354, 1349903328, 1349903321, 1349903315, 1349903082, 1349903057, 1349903042, 1349903010, 1349902989, 1349902966, 1349902886, 1349902882, 1349902877, 1349902873, 1349902868, 1349902830, 1349902826, 1349902816, 1349902787, 1349902759, 1349902757, 1349902752, 1349902749, 1349902745, 1349902742, 1349902658, 1349902641, 1349902636, 1349902610, 1349902532, 1349902499, 1349902477, 1349902458, 1349902430, 1349902406, 1349902387, 1349902381, 1349902279, 1349902239, 1349902134, 1349902094, 1349902061, 1349902033, 1349902015, 1349901989, 1349901905, 1349901890, 1349901884, 1349901865, 1349901846, 1349901841, 1349901826, 1349901819, 1349901803, 1349901795, 1349901730, 1349901712, 1349901693, 1349901641, 1349901611, 1349901586, 1349901514, 1349901508, 1349901489, 1349901451, 1349901366, 1349901340, 1349901320, 1349901311, 1349901305, 1349901294, 1349901208, 1349901197, 1349901179, 1349901162, 1349900992, 1349900734, 1349900629, 1349900609, 1349900579]} final : True mtd_id 4302 list_pids : [1349903628] Looping around the photos to save general results len do output : 1 /22039469Didn'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, '2722151') ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151') 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, '22039469', 'None', None, None, None, None, '2722151'), ('4302', '22039469', '1349903628', None, None, None, None, None, '2722151')] time used for this insertion : 0.04047131538391113 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1388359069824219 time spend to save output : 0.04069948196411133 total time spend for step 5 : 1.1795353889465332 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 (2722151) 2.52user 2.31system 0:16.81elapsed 28%CPU (0avgtext+0avgdata 150732maxresident)k 114376inputs+13992outputs (516major+72456minor)pagefaults 0swaps