diff --git a/files/routes/login.py b/files/routes/login.py index c06ce7dc8..1cef15228 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -339,7 +339,7 @@ def sign_up_post(v): ref_user.refresh_selfset_badges() g.db.add(ref_user) - id_1 = g.db.query(User).filter_by(id=1).count() + id_1 = g.db.query(User).filter_by(id=6).count() users_count = g.db.query(User).count() #paranoid if id_1 == 0 and users_count < 6: admin_level=6 else: admin_level=0 diff --git a/seed-db.sql b/seed-db.sql index c43196664..ba9014cf9 100644 --- a/seed-db.sql +++ b/seed-db.sql @@ -5,19 +5,19 @@ INSERT INTO public.users ( unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl, customtitleplain, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc, post_count, comment_count, background, verified -) VALUES (1046, 'Drama', '', 0, 0, true, true, '', '', 0, false, +) VALUES (1, 'Drama', '', 0, 0, true, true, '', '', 0, false, 0, 'Drama', '', 'hot', 'day', 'ff66ac', 'ff66ac', '', '', '', 'ff66ac', false, false, '', '', 0, false, 0, 0, 0, '', true); -insert into public.award_relationships(id,user_id,kind) values(1,1046,'shit'); +insert into public.award_relationships(id,user_id,kind) values(1,1,'shit'); INSERT INTO public.users ( id, username, passhash, created_utc, admin_level, over_18, is_activated, bio, bio_html, login_nonce, is_private, unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl, customtitleplain, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc, post_count, comment_count, background, verified -) VALUES (2360, 'AutoJanny', '', 0, 0, true, true, '', '', 0, false, +) VALUES (2, 'AutoJanny', '', 0, 0, true, true, '', '', 0, false, 0, 'AutoJanny', '', 'hot', 'day', 'ff66ac', 'ff66ac', '', '', '', 'ff66ac', false, false, '', '', 0, false, 0, 0, 0, '', true); @@ -27,7 +27,7 @@ INSERT INTO public.users ( unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl, customtitleplain, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc, post_count, comment_count, background, verified -) VALUES (261, 'Snappy', '', 0, 0, true, true, '', '', 0, false, +) VALUES (3, 'Snappy', '', 0, 0, true, true, '', '', 0, false, 0, 'Snappy', '', 'hot', 'day', '62ca56', 'e4432d', '', '', '', '30409f', false, false, '', '', 0, false, 0, 0, 0, '', true); @@ -37,7 +37,7 @@ INSERT INTO public.users ( unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl, customtitleplain, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc, post_count, comment_count, background, verified -) VALUES (1832, 'longpostbot', '', 0, 0, true, true, '', '', 0, false, +) VALUES (4, 'longpostbot', '', 0, 0, true, true, '', '', 0, false, 0, 'longpostbot', '', 'hot', 'day', '62ca56', 'e4432d', '', '', '', '30409f', false, false, '', '', 0, false, 0, 0, 0, '', true); @@ -47,7 +47,10 @@ INSERT INTO public.users ( unban_utc, original_username, customtitle, defaultsorting, defaulttime, namecolor, titlecolor, profileurl, bannerurl, customtitleplain, themecolor, changelogsub, oldreddit, css, profilecss, coins, agendaposter, suicide_utc, post_count, comment_count, background, verified -) VALUES (1833, 'zozbot', '', 0, 0, true, true, '', '', 0, false, +) VALUES (5, 'zozbot', '', 0, 0, true, true, '', '', 0, false, 0, 'zozbot', '', 'hot', 'day', '62ca56', 'e4432d', '', '', '', '30409f', false, false, '', '', 0, false, 0, - 0, 0, '', true); \ No newline at end of file + 0, 0, '', true); + + +SELECT pg_catalog.setval('public.users_id_seq', 5, true); \ No newline at end of file