Skip to content

Commit

Permalink
Indent in the usual way
Browse files Browse the repository at this point in the history
  • Loading branch information
jhanley634 authored and audiodude committed Dec 13, 2024
1 parent fda76fa commit 1d214de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions mediabridge/data_processing/wiki_to_netflix.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ def wiki_query(data_csv, user_agent):
id, year, title = row
if year is None:
continue
<<<<<<< HEAD

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:1: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:3: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:5: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:7: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:1: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:3: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:5: SyntaxError: Expected a statement

Check failure on line 167 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:167:7: SyntaxError: Expected a statement
=======

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:1: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:3: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:5: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:7: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:1: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:3: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:5: SyntaxError: Expected a statement

Check failure on line 168 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:7: SyntaxError: Expected a statement

Check failure on line 169 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:8: SyntaxError: Expected a statement

Check failure on line 169 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:168:8: SyntaxError: Expected a statement
if '"' in row[2]:

Check failure on line 170 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:170:1: SyntaxError: Unexpected indentation

Check failure on line 170 in mediabridge/data_processing/wiki_to_netflix.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff

mediabridge/data_processing/wiki_to_netflix.py:170:1: SyntaxError: Unexpected indentation
row[2] = row[2].replace('"', '\\"')
>>>>>>> 2870ce2 (Indent in the usual way)

if '"' in row[2]:
row[2] = row[2].replace('"', '\\"')
Expand Down
6 changes: 3 additions & 3 deletions mediabridge/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from mediabridge.db.connect import insert_into_mongo
from mediabridge.db.insert_data import process_data

#q = wiki_to_netflix.format_sparql_query('The Room', 2003)
#print(q)
# q = wiki_to_netflix.format_sparql_query('The Room', 2003)
# print(q)

if __name__ == '__main__':
test = len(sys.argv) < 2 or sys.argv[1] != '--prod'
data = process_data(test = test)
data = process_data(test=test)
insert_into_mongo(data)

0 comments on commit 1d214de

Please sign in to comment.