Skip to content

Commit

Permalink
Merge pull request #264 from fga-eps-mds/feature_#263
Browse files Browse the repository at this point in the history
Feature #263
  • Loading branch information
felipe72 authored Nov 12, 2018
2 parents 1008b9c + 6e6848a commit c5d0a59
Show file tree
Hide file tree
Showing 18 changed files with 439 additions and 479 deletions.
1 change: 1 addition & 0 deletions CrossData/API/fixtures/data.json

Large diffs are not rendered by default.

425 changes: 424 additions & 1 deletion CrossData/API/models.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions CrossData/API/objects_attrs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from CrossData.importdata.models import *
from CrossData.API.models import *

steam_attrs = list(vars(InfoSteam()).keys())
youtube_attrs = list(vars(InfoYoutube()).keys())
twitch_attrs = list(vars(InfoTwitch()).keys())
streams_attrs = list(vars(TwitchStream()).keys())
streams_attrs = list(vars(TwitchStream()).keys())
File renamed without changes.
2 changes: 1 addition & 1 deletion CrossData/API/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from CrossData.importdata.models import *
from CrossData.API.models import *

class EndpointPOSTTestCase(APITestCase):

Expand Down
2 changes: 1 addition & 1 deletion CrossData/API/tests_get_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from CrossData.importdata.models import *
from CrossData.API.models import *

class EndpointGETTestCase(APITestCase):

Expand Down
6 changes: 3 additions & 3 deletions CrossData/API/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from rest_framework.response import Response
from rest_framework import status
from rest_framework.views import APIView
from CrossData.importdata.models import *
from CrossData.importdata.serializers import *
from CrossData.API.models import *
from CrossData.API.serializers import *
from .objects_attrs import *
from urllib.parse import unquote
from operator import itemgetter
Expand Down Expand Up @@ -548,7 +548,7 @@ def save_palettes(self, screenshot_data, screenshot):
def get_release_data(self, str_date):
if str_date == None:
return

tmp_datetime = dateutil.parser.parse(str_date)

return tmp_datetime.date()
Expand Down
Empty file removed CrossData/importdata/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions CrossData/importdata/admin.py

This file was deleted.

5 changes: 0 additions & 5 deletions CrossData/importdata/apps.py

This file was deleted.

1 change: 0 additions & 1 deletion CrossData/importdata/fixtures/data.json

This file was deleted.

Loading

0 comments on commit c5d0a59

Please sign in to comment.