sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r11918: LJSUP-12086: Check shop/selfpromo/histor...

Committer: vtroitsky
LJSUP-12086: Check shop/selfpromo/history/ histogram for past rates
U   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

Tags: ljcom, pm, sunnyman, vtroitsky
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments