Skip to content

Commit

Permalink
Change exporter_list url
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiiwoong committed Mar 5, 2021
1 parent ed3940e commit 4dd06fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ services:

## Maintenance
### Easy to Update a list of exporters by Pull Request as below
* https://github.com/NexClipper/exporterhub.io/blob/master/api/exporter_list.csv
* https://github.com/NexClipper/exporterhub.io/blob/main/api/exporter_list.csv

### Tag rule for Build in the hub.docker.com
#### exporterhub Frontend build tag
Expand Down
2 changes: 1 addition & 1 deletion 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/master/api/exporter_list.csv'
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub/main/api/exporter_list.csv'
repo_get = requests.get(exporter_list)
logger.info('CHECK_NEW_EXPORTERS_START')

Expand Down
2 changes: 1 addition & 1 deletion 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/master/api/exporter_list.csv'
exporter_list = 'https://raw.githubusercontent.com/NexClipper/exporterhub/main/api/exporter_list.csv'
repo_get = requests.get(exporter_list)
headers = {'Authorization' : 'token ' + token}

Expand Down

0 comments on commit 4dd06fe

Please sign in to comment.