Skip to content

Commit

Permalink
internship completed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghanashyam-Bhat committed Jul 28, 2023
1 parent b2e4b62 commit 49c5363
Show file tree
Hide file tree
Showing 37 changed files with 45 additions and 195 deletions.
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*/__pycache__
/db.sqlite3
# /db.sqlite3
/.venv
*/migrations/__pycache__
/cert.pem
Expand Down
5 changes: 3 additions & 2 deletions backend/attendance/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.2 on 2023-06-29 09:31
# Generated by Django 4.2.2 on 2023-07-28 14:09

import django.core.validators
from django.db import migrations, models
Expand All @@ -19,7 +19,8 @@ class Migration(migrations.Migration):
name='attendaceRequest',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('signed', models.IntegerField()),
('signed', models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(-1), django.core.validators.MaxValueValidator(4)])),
('total', models.IntegerField(default=0)),
('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.event')),
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.student')),
],
Expand Down

This file was deleted.

5 changes: 3 additions & 2 deletions backend/blockchain/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.2 on 2023-07-05 05:29
# Generated by Django 4.2.2 on 2023-07-28 14:09

from django.db import migrations, models

Expand All @@ -19,7 +19,8 @@ class Migration(migrations.Migration):
('prevHash', models.CharField(max_length=50)),
('data', models.CharField(max_length=500)),
('timestamp', models.DateTimeField()),
('usershash', models.CharField(max_length=50)),
('users_hash', models.CharField(max_length=50)),
('current_hash', models.CharField(max_length=50)),
],
),
]

This file was deleted.

10 changes: 1 addition & 9 deletions backend/config.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
<<<<<<< Updated upstream
NGROK = https://b1c3-2401-4900-376e-7dc4-4461-d4cd-f827-2764.ngrok-free.app
=======
# <<<<<<< Updated upstream
# NGROK = https://ec58-2406-7400-98-c555-00-104.ngrok-free.app
# =======
NGROK = https://1500-117-198-99-29.ngrok-free.app
# >>>>>>> Stashed changes
>>>>>>> Stashed changes
NGROK = https://38dc-2401-4900-61b6-f721-d857-ca53-c049-89b.ngrok-free.app
FLUTTER_WEB = http://localhost:53916
REACT_WEB = http://localhost:3000
Binary file added backend/db.sqlite3
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/events/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.2 on 2023-06-29 09:31
# Generated by Django 4.2.2 on 2023-07-28 14:09

import django.core.validators
from django.db import migrations, models
Expand Down
25 changes: 12 additions & 13 deletions backend/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,19 +232,18 @@ def organizerList(request):
req_body = request.body.decode('utf-8')
message,status = auth(req_body=req_body)
if status==200:
if message['group']=="clubs":
req = json.loads(req_body)
print(req)
eventId = models.event.objects.get(id=req["eventid"])
organizers = models.organizer.objects.filter(event=eventId)
print(organizers)
organizer_list = list()
for organizer in organizers:
organizer_list.append({
"srn" : organizer.srn.srn,
"name":organizer.srn.name,
"role" : organizer.role,
})
organizer_list = list()
req = json.loads(req_body)
print(req)
eventId = models.event.objects.get(id=req["eventid"])
organizers = models.organizer.objects.filter(event=eventId)
print(organizers)
for organizer in organizers:
organizer_list.append({
"srn" : organizer.srn.srn,
"name":organizer.srn.name,
"role" : organizer.role,
})
message["organizers"] = organizer_list
return JsonResponse(message,status=status)

Expand Down
4 changes: 3 additions & 1 deletion backend/home/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Generated by Django 4.2.2 on 2023-06-29 09:31
# Generated by Django 4.2.2 on 2023-07-28 14:09

import django.core.validators
from django.db import migrations, models
import django.db.models.deletion

Expand Down Expand Up @@ -45,6 +46,7 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=25)),
('sem', models.IntegerField()),
('cgpa', models.FloatField()),
('crypto', models.IntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)])),
('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.department')),
],
),
Expand Down
19 changes: 0 additions & 19 deletions backend/home/migrations/0002_student_crypto.py

This file was deleted.

23 changes: 21 additions & 2 deletions backend/project/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.2 on 2023-07-05 05:29
# Generated by Django 4.2.2 on 2023-07-28 14:09

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -9,7 +9,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('home', '0002_student_crypto'),
('events', '0001_initial'),
('home', '0001_initial'),
]

operations = [
Expand All @@ -19,9 +20,27 @@ class Migration(migrations.Migration):
('id', models.AutoField(primary_key=True, serialize=False)),
('title', models.CharField(max_length=25)),
('details', models.CharField(max_length=500)),
('withCollege', models.BooleanField()),
('link', models.URLField(blank=True, default='')),
('category', models.CharField(max_length=15, null=True)),
('completion', models.IntegerField(default=0)),
('approval', models.IntegerField(default=0)),
('department', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='home.department')),
('guide', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='home.faculty')),
('hackathon', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='events.event')),
],
),
migrations.CreateModel(
name='subjectTeacher',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('faculty', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.faculty')),
('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='home.subject')),
],
options={
'unique_together': {('faculty', 'subject')},
},
),
migrations.CreateModel(
name='studentProject',
fields=[
Expand Down

This file was deleted.

This file was deleted.

20 changes: 0 additions & 20 deletions backend/project/migrations/0004_project_department.py

This file was deleted.

Binary file modified backend/static/temp/certificate.pdf
Binary file not shown.
Binary file modified backend/static/temp/qr_code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 49c5363

Please sign in to comment.