diff options
author | raylu <raylu@mixpanel.com> | 2012-09-09 14:02:41 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2012-09-09 14:02:54 -0700 |
commit | 281b71a52302c6645fd0317d44754616ee21f0d1 (patch) | |
tree | 7b4722799dd15a8238e82ee6c8d5ff5729df1c8f /manufacturing.py | |
parent | 441dc0412aa6c6a314ef5e7ae6780e54d20a2006 (diff) | |
download | eve-281b71a52302c6645fd0317d44754616ee21f0d1.tar.xz |
filter out faction items
Diffstat (limited to 'manufacturing.py')
-rwxr-xr-x | manufacturing.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manufacturing.py b/manufacturing.py index f3ee03d..3a2ac4e 100755 --- a/manufacturing.py +++ b/manufacturing.py @@ -26,9 +26,16 @@ def get_systemid(name): def iter_blueprints(): curs = conn.cursor() try: + # metaGroupID's: + # NULL or 1: Tech I + # 2: Tech II + # 14: Tech III + # filtering for these excludes storyline (3), faction (4), officer (5), and deadspace (6) curs.execute(''' SELECT b.productTypeID, t.typeName FROM invBlueprintTypes as b INNER JOIN invTypes AS t ON b.productTypeID = t.typeID + LEFT JOIN invMetaTypes AS m ON m.typeID = b.productTypeID + WHERE m.metaGroupID IS NULL or m.metaGroupID in (1,2,14) ''') while True: r = curs.fetchone() |