Skip to content

Commit

Permalink
Fix more lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
clampr committed Feb 23, 2024
1 parent 067afd2 commit 7d3af39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions database.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
Convert JSON files to SQLite
"""
import os
import json
import sqlite3
Expand Down
6 changes: 4 additions & 2 deletions scripts/active.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@


def check_status(url):
"""
Check if HTTP status code equals 404
"""
try:
response = requests.head(url)
return response.status_code == 404
Expand All @@ -16,9 +19,8 @@ def check_status(url):

def set_active(data: dict, _) -> dict:
"""
Find time zone for weather station
Update active flag
"""

if data:

urls = [
Expand Down

0 comments on commit 7d3af39

Please sign in to comment.