-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,35 @@ | ||
#!/usr/bin/env python | ||
# | ||
# Tool for importing data into the TradeDangerous database from a fairly | ||
# simple text file, 'import.txt'. | ||
# | ||
# The first none white-space character of a line determines the line type: | ||
# '#' = comment, | ||
# '*' = add star and distances, | ||
# '@' = select station, | ||
# '-' = select item category, | ||
# All other lines are treated as specifying an item price: | ||
# <item name> <station paying cr> | ||
# or for an item that can be bought here: | ||
# <item name> <station paying cr> <station asking cr> | ||
# Blank lines are ignored. | ||
# | ||
# Add star line: | ||
# *<star name>/<system name>:<other star>@<lightyears> | ||
# Examples: | ||
# *Aulin/Enterprise:[email protected] | ||
# *Dahan/Gateway:[email protected],[email protected],Hermitage@14ly,[email protected] | ||
# | ||
# Category and Item names use partial matching. | ||
# -che, -CheMiCAlS, -micals | ||
# all match the "chemicals" category | ||
# Don't include whitespaces, so | ||
# dom., dom.a, dom.appl | ||
# would match the "dom. appliances" item (but only if you have selected | ||
# the category at the moment) | ||
|
||
import re | ||
from tradedb import * | ||
import pprint | ||
|
||
rejectUnknown = False | ||
|
||
|