Skip to content

Commit eeb6503

Browse files
author
Pritom Gogoi
committed
update database.py and add a new project
1 parent 055ea8c commit eeb6503

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

database.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///oauth/login.db'
66
db = SQLAlchemy(app)
77

8+
from project import projectList
9+
810
class userInfo(db.Model):
911
id = db.Column(db.Integer, primary_key=True)
1012
username = db.Column(db.String, unique = True)
@@ -32,16 +34,13 @@ def __init__(self, username):
3234

3335
users_list.append(user.username)
3436

35-
#PyGithub stuff
37+
# PyGithub stuff
3638
from github import Github
3739

3840
g = Github("046c99159c4e1dbb4ebedc157b173459e0488ec4")
39-
repo_list = [
40-
"bitoverflow-in/snake-oil-product-page",
41-
"bitoverflow-in/stan-lee-tribute-page",
42-
"bitoverflow-in/hello-bitoverflow",
43-
"bitoverflow-in/calculator-all"
44-
]
41+
repo_list = [ item.url[19:] for item in projectList ]
42+
# for item in repo_list:
43+
# print(item)
4544

4645
for repo in repo_list:
4746
repo_main = g.get_repo(repo)

project.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,14 @@ def __init__(self, level, title, desc, mentor, tags, slack, url):
7272
"https://join.slack.com/t/learn-tkinter/shared_invite/enQtNTQwMjQ1NjMyMTI5LWI1ZmNkZTAwZjZmZjlkZmJhNWI0OGM5NGE1NmJhMDhkNzBjNjVkMTUyMzVhMWUwZGNmMjQ1MGJmYWQ2ZDhmMjY",
7373
"https://github.com/bitoverflow-in/learn-tkinter")
7474

75-
projectList = [hello, scrape, snake, calc, stan, learntk, youtubemp3]
75+
subwar = Project(
76+
"Mainstream",
77+
"Pewdiepie-V-Tseries",
78+
"Create a webpage showing live subcriber count for the ongoing subcriber war between the King of Youtube, PewDiePie and Corporate Giant, T-Series. Be a part of this battle and maintain the record of daily subcriber count.",
79+
"Pritom Gogoi",
80+
[{"yt":"Youtube"}, {"api":"API"}, {"front":"frontend"}],
81+
"https://join.slack.com/t/stanlee-tributepage/shared_invite/enQtNTQwMzA2Nzc5Nzk4LTQzODAwNzZlNzNhMjJjMmEyNmNhYzY5N2I3NjE2NDkyNTM4YzViYmM1NmE2YTQ3N2VhODZiZjE3NTE1ZDIwNDc",
82+
"https://github.com/bitoverflow-in/pewdiepie-v-tseries")
83+
84+
85+
projectList = [hello, scrape, snake, calc, stan, learntk, youtubemp3, subwar]

static/css/pills.css

+4
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,8 @@
6868
.yt{
6969
background-color: rgb(138, 202, 78);
7070
color: #fff;
71+
}
72+
73+
.api{
74+
background-color: rgb(224, 240, 11);
7175
}

0 commit comments

Comments
 (0)