summaryrefslogtreecommitdiffstats
path: root/packages/migrations
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-04-17 05:12:01 +0200
committerDan McGee <dan@archlinux.org>2013-04-17 05:12:01 +0200
commitb7b24740640e24883cd17fd683e1d465fbb343f8 (patch)
tree0a8a4fdf23f3a3b7f0551e859c36c23e3afe212f /packages/migrations
parent31d39e75eea7fb6cdf3bb8bfd8b490d45de04ee9 (diff)
downloadarchweb-b7b24740640e24883cd17fd683e1d465fbb343f8.tar.gz
archweb-b7b24740640e24883cd17fd683e1d465fbb343f8.tar.xz
Various minor code cleanups and fixes
Most of these were suggested by PyCharm, and include everything from little syntax issues and other bad smells to dead or bad code. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'packages/migrations')
-rw-r--r--packages/migrations/0002_populate_package_relation.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/packages/migrations/0002_populate_package_relation.py b/packages/migrations/0002_populate_package_relation.py
index 738e068..b0d32c7 100644
--- a/packages/migrations/0002_populate_package_relation.py
+++ b/packages/migrations/0002_populate_package_relation.py
@@ -11,7 +11,6 @@ class Migration(DataMigration):
)
def forwards(self, orm):
- "Write your forwards methods here."
# search by pkgbase first and insert those records
qs = orm['main.Package'].objects.exclude(maintainer=None).exclude(
pkgbase=None).distinct().values('pkgbase', 'maintainer_id')
@@ -29,7 +28,6 @@ class Migration(DataMigration):
defaults={'user_id': row['maintainer_id']})
def backwards(self, orm):
- "Write your backwards methods here."
if not db.dry_run:
orm.PackageRelation.objects.all().delete()
pass