diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 6738ef5..0000000 --- a/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -cd `dirname $0` -rm -rf /tmp/ihp/ -cp -R ihp /tmp/ -rm /tmp/ihp/scorecard_processor -rm /tmp/ihp/*db -cp -R django-scorecard-processor/scorecard_processor /tmp/ihp/ -cd /tmp/ihp/ -epio upload -curl http://ihpscorecard.ep.io > /dev/null & -epio django syncdb -- --noinput -epio django migrate -cd - -rm -rf /tmp/ihp/ diff --git a/deploy_ihp.sh b/ihp_deploy.sh similarity index 100% rename from deploy_ihp.sh rename to ihp_deploy.sh diff --git a/local_reset.sh b/ihp_local_reset.sh similarity index 100% rename from local_reset.sh rename to ihp_local_reset.sh diff --git a/reset_production.sh b/ihp_reset_production.sh similarity index 100% rename from reset_production.sh rename to ihp_reset_production.sh diff --git a/updatedump.sh b/ihp_updatedump.sh similarity index 100% rename from updatedump.sh rename to ihp_updatedump.sh diff --git a/local_session.json b/local_session.json deleted file mode 100644 index 3b031e2..0000000 --- a/local_session.json +++ /dev/null @@ -1 +0,0 @@ -[{"pk": "297e4d6e2120f45090a48a010436771c", "model": "sessions.session", "fields": {"expire_date": "2011-11-29 15:32:27", "session_data": "NzU5NWNhMTc0NTc5NWZmMTNhN2I3YmU2MzM5M2Y3MTc0Yjk2YjJkZDqAAn1xAShVEl9hdXRoX3Vz\nZXJfYmFja2VuZHECVSlkamFuZ28uY29udHJpYi5hdXRoLmJhY2tlbmRzLk1vZGVsQmFja2VuZHED\nVQ1fYXV0aF91c2VyX2lkcQRLAXUu\n"}}] \ No newline at end of file diff --git a/moz/dump_legacy.py b/moz/dump_legacy.py deleted file mode 100644 index a8214cf..0000000 --- a/moz/dump_legacy.py +++ /dev/null @@ -1,27 +0,0 @@ -#Please note this only works for the IHP application - -from submissions import models - -def data(): - resp = {} - for submission in models.Submission.objects.all(): - q = {} - for question in submission.dpquestion_set.all(): - q['agency'] = q.get('agency',{}) - q['agency'][question.question_number] = { - 'baseline':(question.baseline_year,question.baseline_value), - 'latest':(question.latest_year,question.latest_value), - 'comment':question.comments - } - - for question in submission.govquestion_set.all(): - q['gov'] = q.get('gov',{}) - q['gov'][question.question_number] = { - 'baseline':(question.baseline_year,question.baseline_value), - 'latest':(question.latest_year,question.latest_value), - 'comment':question.comments - } - resp[submission.agency.agency] = resp.get(submission.agency.agency,{}) - resp[submission.agency.agency][submission.country.country] = q - return resp - diff --git a/moz/testing.db b/moz/testing.db deleted file mode 100644 index a2a5a96..0000000 Binary files a/moz/testing.db and /dev/null differ diff --git a/reset.sh b/reset.sh deleted file mode 100755 index 20b36dc..0000000 --- a/reset.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -cd `dirname $0` -cd ihp -epio django flush -- --noinput -../deploy.sh -epio django loaddata ihp_results/example_data.json -epio django createsuperuser -- --username=admin --email=admin@example.org --noinput -echo -e "from django.contrib.auth import models;u=models.User.objects.get(username='admin');u.set_password('abc123');u.save();exit()" | epio django shell -#echo -e "from scorecard_processor.models import ReportRun;r=ReportRun.objects.get(id=1);r.source_data={'data_series':5};r.save();exit()" | epio django shell