Pārlūkot izejas kodu

Fixed call to Facebook.

Marco Quezada 10 gadi atpakaļ
vecāks
revīzija
7b1617fef6

+ 0 - 1
hackathon_starter/hackathon/scripts/steam.py

@@ -51,4 +51,3 @@ def steamlibrarypull(steamID, key):
                 pass
             games[game['name']] = {'price': price, 'appid': game['appid']}
     return games
-print steamlibrarypull(76561197960434622, key)

+ 1 - 1
hackathon_starter/hackathon/templates/hackathon/facebook.html

@@ -40,7 +40,7 @@
 
   window.fbAsyncInit = function() {
   FB.init({
-    appId      : {{your-app-id}},
+    appId      : {{yourappid}},
     cookie     : true, 
                         
     xfbml      : true,  // parse social plugins on this page

+ 2 - 2
hackathon_starter/hackathon/views.py

@@ -75,8 +75,8 @@ def steamDiscountedGames(request):
 
 def facebook(request):
     '''A sample application that will publish a status update after going into the login process using the Javascript SDK '''
-    your-app-id = '364831617044713'
-    return render(request, 'hackathon/facebook.html','your-app-id': your-app-id)
+    yourappid = '364831617044713'
+    return render(request, 'hackathon/facebook.html', { 'yourappid' : yourappid })
     
 #################
 #   GITHUB API  #