Skip to content

Commit

Permalink
Merge pull request #47 from rinaldipratama/main
Browse files Browse the repository at this point in the history
following_html path & gitignore files updated
  • Loading branch information
aviolaris authored Aug 20, 2023
2 parents 91998be + d78ccff commit 9a51257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Flask:
instance/
.webassets-cache
flask_session/

# Environments:
.env
Expand Down Expand Up @@ -35,4 +36,7 @@ coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
.pytest_cache/

# Upload folder:
uploads/
5 changes: 3 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Upload folder
UPLOAD_FOLDER = os.path.join(os.getcwd(), 'uploads')
# Current version
CURRENT_VERSION = 'v1.11.8'
CURRENT_VERSION = 'v1.11.9'
# Update needed
UPDATE_NEEDED = bool(update_needed(CURRENT_VERSION, get_latest_version()))

Expand Down Expand Up @@ -72,7 +72,8 @@ def find_unfollowers(file_path):
lambda file: 'followers' in os.path.basename(file) and file.endswith('.html'),
files))
following_path = list(filter(
lambda file: 'following' in os.path.basename(file) and file.endswith('.html'),
lambda file: 'following' in os.path.basename(file) and file.endswith('.html')
and 'hashtag' not in os.path.basename(file),
files))
followers_html = instagram_file.read(followers_path[0]).decode('utf-8')
following_html = instagram_file.read(following_path[0]).decode('utf-8')
Expand Down

0 comments on commit 9a51257

Please sign in to comment.