Merge branch 'frost' of https://github.com/Aevann1/Drama into frost

master
Aevann1 2022-06-27 20:42:44 +02:00
commit 73190a8164
5 changed files with 9 additions and 12 deletions

View File

@ -27,7 +27,7 @@ services:
postgres: postgres:
image: postgres:12.3 image: postgres:12.3
command: ["postgres", "-c", "log_statement=all"] #command: ["postgres", "-c", "log_statement=all"]
# uncomment this if u wanna output all SQL queries to the console # uncomment this if u wanna output all SQL queries to the console
volumes: volumes:
- "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql" - "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql"

View File

@ -21,20 +21,17 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
if every_5m: if every_5m:
lottery.check_if_end_lottery_task() lottery.check_if_end_lottery_task()
offsitementions.offsite_mentions_task() offsitementions.offsite_mentions_task()
g.db.commit()
if every_1h: if every_1h:
pass awards.award_timers_bots_task()
if every_1d: if every_1d:
stats.generate_charts_task(const.SITE) stats.generate_charts_task(const.SITE)
route_static.stats_cached() route_static.stats_cached()
awards.award_timers_bots_task()
sub_inactive_purge_task() sub_inactive_purge_task()
g.db.commit()
if every_1mo: if every_1mo:
give_monthly_marseybux_task() give_monthly_marseybux_task()
g.db.commit()
g.db.close() g.db.commit()
g.db.close()

View File

@ -158,7 +158,7 @@
</li> </li>
<li class="nav-item d-flex align-items-center justify-content-center text-center"> <li class="nav-item d-flex align-items-center justify-content-center text-center">
<div class="dropdown"> <div class="dropdown" id="header--dropdown">
<a class="nav-link bg-transparent py-0 pr-0" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" <a class="nav-link bg-transparent py-0 pr-0" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="false"> aria-haspopup="true" aria-expanded="false">
<div class="d-flex"> <div class="d-flex">
@ -177,7 +177,7 @@
</div> </div>
</div> </div>
</a> </a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg-left shadow fade px-0"> <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg-left shadow fade px-0" id="header--dropdown-menu">
<div class="px-2"> <div class="px-2">
<a class="dropdown-item" href="{{v.url}}"><i class="fas fa-user-circle fa-fw mr-3"></i>My <a class="dropdown-item" href="{{v.url}}"><i class="fas fa-user-circle fa-fw mr-3"></i>My
profile</a> profile</a>

View File

@ -1,6 +1,6 @@
{%- {%-
set CACHE_VER = { set CACHE_VER = {
'css/main.css': 365, 'css/main.css': 366,
'css/4chan.css': 61, 'css/4chan.css': 61,
'css/classic.css': 61, 'css/classic.css': 61,
@ -22,7 +22,7 @@ set CACHE_VER = {
'js/emoji_modal.js': 297, 'js/emoji_modal.js': 297,
'js/formatting.js': 240, 'js/formatting.js': 240,
'js/lottery.js': 256, 'js/lottery.js': 256,
'js/marked.js': 273, 'js/marked.js': 274,
'js/submit.js': 263, 'js/submit.js': 263,
'js/userpage.js': 241, 'js/userpage.js': 241,
'js/userpage_v.js': 245, 'js/userpage_v.js': 245,

View File

@ -733,7 +733,7 @@ CREATE TABLE public.users (
can_gamble boolean DEFAULT true NOT NULL, can_gamble boolean DEFAULT true NOT NULL,
offsitementions boolean DEFAULT false NOT NULL, offsitementions boolean DEFAULT false NOT NULL,
last_active integer DEFAULT 0 NOT NULL, last_active integer DEFAULT 0 NOT NULL,
poorcel boolean NOT NULL poorcel boolean DEFAULT false NOT NULL
); );