Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 22, 2024
1 parent 1677454 commit 95cc145
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions app/restart_json.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
import pytz
from datetime import datetime, timedelta
from urllib.request import urlopen
import certifi
import json
import ujson
import schedule
import time
import subprocess
import asyncio
import aiohttp
import aiofiles
import pytz
import sqlite3
import pandas as pd
import numpy as np
from pocketbase import PocketBase

from collections import Counter
import re
import hashlib
Expand All @@ -24,7 +18,7 @@
from dotenv import load_dotenv
import os

pb = PocketBase('http://127.0.0.1:8090')

load_dotenv()
api_key = os.getenv('FMP_API_KEY')

Expand Down Expand Up @@ -1220,11 +1214,13 @@ async def save_json_files():
data = await etf_providers(etf_con, etf_symbols)
with open(f"json/all-etf-providers/data.json", 'w') as file:
ujson.dump(data, file)


'''
data = await ticker_mentioning(con)
with open(f"json/ticker-mentioning/data.json", 'w') as file:
ujson.dump(data, file)

'''

delisted_data = await get_delisted_list()
with open(f"json/delisted-companies/data.json", 'w') as file:
ujson.dump(delisted_data, file)
Expand Down

0 comments on commit 95cc145

Please sign in to comment.