Skip to content

Commit

Permalink
Merge 2eaa42a into 6d89072
Browse files Browse the repository at this point in the history
  • Loading branch information
radiantly committed Nov 1, 2018
2 parents 6d89072 + 2eaa42a commit 2ce291b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: python

python:
- "2.7"
- "3.4"
- "3.6"

addons:
postgresql: "9.5"
Expand Down
15 changes: 11 additions & 4 deletions api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,22 @@
from django.views.decorators.csrf import csrf_exempt
from pprint import pprint
import ast
from django.utils.encoding import smart_unicode
from django.utils.encoding import smart_text
import zipfile
import StringIO
import md5
import hashlib
from shutil import copyfile
import requests
import datetime
import shutil

try:
# Python 2
from cStringIO import StringIO
except ImportError:
# Python 3
from io import StringIO


class DemoViewSet(ModelViewSet):
"""
Contains information about inputs/outputs of a single program
Expand Down Expand Up @@ -302,7 +309,7 @@ def alive(request):
@api_view(['POST'])
def bundleup(request,id,user_id):
file=request.FILES['file']
hash_=md5.new()
hash_=hashlib.md5()
key=id+user_id
hash_.update(key)
hex=hash_.hexdigest()
Expand Down

0 comments on commit 2ce291b

Please sign in to comment.