ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

Update api_login.py #1330

Closed not-eexto closed 4 years ago

not-eexto commented 4 years ago

I don't know why this code has been removed :/

What this PR does / why we need it: Because this section of code has been removed and the bot doesn't work without it

Which issue(s) this PR fixes: Fixes # NameError: name 'sync_device_features' is not defined

Special notes for your reviewer: -

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g. usage docs, etc.:

TravisBuddy commented 4 years ago

Travis tests have failed

Hey @xenud, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

1st Build

View build log

$PRE_COMMIT_CMD ``` [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/psf/black. [INFO] Initializing environment for https://gitlab.com/pycqa/flake8. [INFO] Initializing environment for https://github.com/asottile/pyupgrade. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/psf/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://gitlab.com/pycqa/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/asottile/pyupgrade. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... Fix End of Files.........................................................Passed Trim Trailing Whitespace.................................................Passed Check docstring is first.................................................Passed Check Yaml...............................................................Passed Debug Statements (Python)................................................Passed Check python ast.........................................................Passed black....................................................................Failed - hook id: black - files were modified by this hook reformatted /home/travis/build/instagrambot/instabot/instabot/api/api_login.py All done! ✨ 🍰 ✨ 1 file reformatted, 112 files left unchanged. flake8...................................................................Passed pyupgrade................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/instabot/api/api_login.py b/instabot/api/api_login.py index f4578c1..6920a6d 100644 --- a/instabot/api/api_login.py +++ b/instabot/api/api_login.py @@ -11,6 +11,7 @@ from . import config, devices # ====== SYNC METHODS ====== # + def sync_device_features(self, login=False): data = { "id": self.uuid, @@ -26,6 +27,7 @@ def sync_device_features(self, login=False): "qe/sync/", data, login=login, headers={"X-DEVICE-ID": self.uuid} ) + def sync_launcher(self, login=False): data = { "id": self.uuid, ```
TravisBuddy Request Identifier: 46fa4040-5976-11ea-822e-0bf67ba4204b
ohld commented 4 years ago

Great! @bruvv what do you think?

bruvv commented 4 years ago

Should be merged indeed but first @xenud please fix the building errors

bruvv commented 4 years ago

No response and this is fixed in development branch.