Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a25435f7a | ||
|
|
b0f32affcb |
@@ -162,6 +162,9 @@ def cloneRepo(urlstr, ref=None, recursive=False):
|
||||
origin.fetch()
|
||||
origin.pull(ref)
|
||||
|
||||
for submodule in repo.submodules:
|
||||
submodule.update(init=True)
|
||||
|
||||
return gitDir, repo
|
||||
|
||||
except GitCommandError as e:
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from app.models import Package
|
||||
from app.models import Package, db
|
||||
from app.tasks import celery
|
||||
|
||||
@celery.task()
|
||||
def updatePackageScores():
|
||||
Package.query.update({ "score": Package.score * 0.8 })
|
||||
Package.query.update({ "score": Package.score * 0.95 })
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user