Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
A
Aspava
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
Aspava
Commits
141fc930
Kaydet (Commit)
141fc930
authored
May 11, 2019
tarafından
Batuhan Taşkaya
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of crons
üst
c7eab392
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
31 deletions
+1
-31
Pipfile
Pipfile
+0
-1
Pipfile.lock
Pipfile.lock
+1
-14
settings.py
aspava/settings.py
+0
-4
__init__.py
social/cronjobs/__init__.py
+0
-1
renew_evality.py
social/cronjobs/renew_evality.py
+0
-11
No files found.
Pipfile
Dosyayı görüntüle @
141fc930
...
@@ -15,7 +15,6 @@ gunicorn = "*"
...
@@ -15,7 +15,6 @@ gunicorn = "*"
whitenoise = "*"
whitenoise = "*"
docker = "*"
docker = "*"
evality = "==0.2.1"
evality = "==0.2.1"
django-cron = "*"
[scripts]
[scripts]
start = "gunicorn aspava.wsgi:application --bind localhost:8000"
start = "gunicorn aspava.wsgi:application --bind localhost:8000"
...
...
Pipfile.lock
Dosyayı görüntüle @
141fc930
{
{
"_meta": {
"_meta": {
"hash": {
"hash": {
"sha256": "
99500a84e640f527b14abf69b834ae7c8dc17600ae81655272680cf080d79540
"
"sha256": "
f7d5f6bc4fbca2893bd56d1a4941e33a77186a659547c40ffcc69188771f1deb
"
},
},
"pipfile-spec": 6,
"pipfile-spec": 6,
"requires": {
"requires": {
...
@@ -53,19 +53,6 @@
...
@@ -53,19 +53,6 @@
"index": "pypi",
"index": "pypi",
"version": "==0.0.8"
"version": "==0.0.8"
},
},
"django-common-helpers": {
"hashes": [
"sha256:2d56be6fa261d829a6a224f189bf276267b9082a17d613fe5f015dd4d65c17b4"
],
"version": "==0.9.2"
},
"django-cron": {
"hashes": [
"sha256:08d22708c8b2ecab8cda989019a66c7e1e2424c59d822796fd45abf7731d261d"
],
"index": "pypi",
"version": "==0.5.1"
},
"django-ranged-response": {
"django-ranged-response": {
"hashes": [
"hashes": [
"sha256:f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985"
"sha256:f71fff352a37316b9bead717fc76e4ddd6c9b99c4680cdf4783b9755af1cf985"
...
...
aspava/settings.py
Dosyayı görüntüle @
141fc930
...
@@ -41,7 +41,6 @@ INSTALLED_APPS = [
...
@@ -41,7 +41,6 @@ INSTALLED_APPS = [
"bootstrap4"
,
"bootstrap4"
,
"django_ace"
,
"django_ace"
,
"captcha"
,
"captcha"
,
"django_cron"
,
]
]
MIDDLEWARE
=
[
MIDDLEWARE
=
[
...
@@ -122,6 +121,3 @@ AUTH_USER_MODEL = "social.SocialUser"
...
@@ -122,6 +121,3 @@ AUTH_USER_MODEL = "social.SocialUser"
MAX_POST_LENGTH
=
144
*
2
MAX_POST_LENGTH
=
144
*
2
AVATAR_BASE
=
"img/avatars/avatar_{}.png"
AVATAR_BASE
=
"img/avatars/avatar_{}.png"
DESC
=
"Apparently, this user prefers to keep an air of mystery about them."
DESC
=
"Apparently, this user prefers to keep an air of mystery about them."
# Crons
CRON_CLASSES
=
[
"social.cronjobs.RenewEvalityCron"
]
social/cronjobs/__init__.py
deleted
100644 → 0
Dosyayı görüntüle @
c7eab392
from
social.cronjobs.renew_evality
import
RenewEvalityCron
social/cronjobs/renew_evality.py
deleted
100644 → 0
Dosyayı görüntüle @
c7eab392
from
django_cron
import
CronJobBase
,
Schedule
from
social.utils
import
quit_evality
class
RenewEvalityCron
(
CronJobBase
):
RUN_EVERY_MINS
=
1
schedule
=
Schedule
(
run_every_mins
=
RUN_EVERY_MINS
)
code
=
'social.cronjobs.RenewEvalityCron'
def
do
(
self
):
quit_evality
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment