chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.db-live.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
routesearch: improve arg parsing
[ypp-sc-tools.db-live.git]
/
yarrg
/
web
/
lookup
diff --git
a/yarrg/web/lookup
b/yarrg/web/lookup
index 7af431cee119f6e163439b83a08fcf84b6b8eedd..9f74f3369bb8e7bcf33601c73c8eca3831997114 100755
(executable)
--- a/
yarrg/web/lookup
+++ b/
yarrg/web/lookup
@@
-58,6
+58,7
@@
my %styles;
Values => [ [ 'route', 'Trades for route' ],
[ 'commod', 'Prices for commodity' ],
[ 'offers', 'Offers at location' ],
Values => [ [ 'route', 'Trades for route' ],
[ 'commod', 'Prices for commodity' ],
[ 'offers', 'Offers at location' ],
+ [ 'routesearch', 'Find profitable route' ],
[ 'age', 'Data age' ] ]
}, { Name => 'BuySell',
Before => '',
[ 'age', 'Data age' ] ]
}, { Name => 'BuySell',
Before => '',
@@
-158,8
+159,8
@@
foreach my $var (@vars) {
foreach my $var (keys %ARGS) {
next unless $var =~
foreach my $var (keys %ARGS) {
next unless $var =~
- m/^(?: (?:route|commod|capacity|capital)string |
- lossperleague |
+ m/^(?: (?:route|commod|capacity|capital
|island
)string |
+ lossperleague |
distance |
commodid |
islandid \d |
archipelago \d |
commodid |
islandid \d |
archipelago \d |