Committer: vtroitsky
LJSUP-12086: Check shop/selfpromo/history/ histogram for past ratesU trunk/cgi-bin/LJ/Pay/SelfPromo.pm U trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-05-10 12:32:15 UTC (rev 11917) +++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-05-10 12:50:38 UTC (rev 11918) @@ -326,8 +326,9 @@ LJ::Pay::SelfPromo->debug_msg("all done"); - # Update history ??? - LJ::Pay::SelfPromo::History->update(); + # Update history for current slot + # TODO: Move History into slot + LJ::Pay::SelfPromo::History->update($slot); return $cart; } Modified: trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm 2012-05-10 12:32:15 UTC (rev 11917) +++ trunk/cgi-bin/LJ/Widget/Shop/View/SelfPromo.pm 2012-05-10 12:50:38 UTC (rev 11918) @@ -39,7 +39,7 @@ my ($promo_regions, $active_region) = LJ::Pay::PromotionSlot->find_available_promo_regions($remote, $country); - warn "Active region: $active_region / Regions: [".join(',',@$promo_regions)."]"; + # warn "Active region: $active_region / Regions: [".join(',',@$promo_regions)."]"; # prepare template variables