From a22e9ccb37cd7b4c9108316f2491e3addd26adb1 Mon Sep 17 00:00:00 2001 From: Piotr Staroszczyk Date: Thu, 12 Oct 2017 13:59:40 +0200 Subject: [PATCH] fix syntax --- CHANGELOG.rst | 4 ++-- fut/core.py | 4 ++-- fut/pin.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 47f492e..8594a03 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,11 +4,11 @@ Changelog --------- -0.3.0 (2017-10-??) +0.3.0 (2017-10-12) ^^^^^^^^^^^^^^^^^^ * initial release for fifa 18 -* bump useragent && flash version +* bump useragent * add ability to login via sms code or totp authenticator (fully automatic) * pinEvents diff --git a/fut/core.py b/fut/core.py index 41811a1..8d22397 100644 --- a/fut/core.py +++ b/fut/core.py @@ -867,7 +867,7 @@ def club(self, sort='desc', ctype='player', defId='', start=0, count=91): pgid = 'Club - Players - List View' elif ctype == 'item': pgid = 'Club - Club Items - List View' - else: # TODO: THIS IS WRONG, detect all ctypes + else: # TODO: THIS IS WRONG, detect all ctypes pgid = 'Club - Club Items - List View' events = [self.pin.event('page_view', pgid)] self.pin.send(events) @@ -999,7 +999,7 @@ def sell(self, item_id, bid, buy_now=10000, duration=3600): # TODO: auto send to tradepile data = {'buyNowPrice': buy_now, 'startingBid': bid, 'duration': duration, 'itemData': {'id': item_id}} - rc = self.__request__(method, url, data=json.dumps(data), params='sku_a': self.sku_a) + rc = self.__request__(method, url, data=json.dumps(data), params={'sku_a': self.sku_a}) return rc['id'] def quickSell(self, item_id): diff --git a/fut/pin.py b/fut/pin.py index e257054..01625d9 100644 --- a/fut/pin.py +++ b/fut/pin.py @@ -10,8 +10,8 @@ import requests import re -import datetime import json +from datetime import datetime from fut.config import headers from fut.exceptions import FutError