Skip to content

Commit

Permalink
Merge pull request #14 from ddiiwoong/main
Browse files Browse the repository at this point in the history
change exporter_list url #2
  • Loading branch information
jian7061 authored Mar 5, 2021
2 parents 4879c74 + 063a58b commit 9dc5294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/hub/management/commands/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def new_exporters():
TOKEN = Token.objects.filter().last().token if Token.objects.filter().exists() else 'NO_TOKEN'
headers = {'Authorization' : 'token ' + TOKEN}
exporters = Exporter.objects.select_related('category', 'official').prefetch_related('release_set').order_by('id')
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub/main/api/exporter_list.csv'
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub.io/main/api/exporter_list.csv'
repo_get = requests.get(exporter_list)
logger.info('CHECK_NEW_EXPORTERS_START')

Expand Down Expand Up @@ -223,4 +223,4 @@ def handle(self,*args, **options):
except KeyboardInterrupt:
logger.info('Stopping scheduler...')
scheduler.shutdown()
logger.info('Scheduler shut down successfully.')
logger.info('Scheduler shut down successfully.')
4 changes: 2 additions & 2 deletions api/hub/views/admin/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TokenView(View):
def get_exporters(self, token):
exporters = Exporter.objects.select_related('category', 'official').prefetch_related('release_set').order_by('id')
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub/main/api/exporter_list.csv'
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub.io/main/api/exporter_list.csv'
repo_get = requests.get(exporter_list)
headers = {'Authorization' : 'token ' + token}

Expand Down Expand Up @@ -153,4 +153,4 @@ def post(self, request):

return get_result
except KeyError:
return JsonResponse({'message':'KEY_ERROR'}, status=400)
return JsonResponse({'message':'KEY_ERROR'}, status=400)

0 comments on commit 9dc5294

Please sign in to comment.