Fixed a bug with links not registering correctly when undocked. Also removed some typos. (#418)

This commit is contained in:
Joakim Strandberg
2016-05-01 11:39:07 +02:00
committed by Mr McClain
parent fa05003455
commit dbc9b584d1
5 changed files with 9 additions and 6 deletions

View File

@@ -158,7 +158,10 @@ def click_fatlink_view(request, hash, fatname):
if character:
fat = Fat()
fat.system = request.META['HTTP_EVE_SOLARSYSTEMNAME']
fat.station = request.META['HTTP_EVE_STATIONNAME']
if 'HTTP_EVE_STATIONNAME' in request.META:
fat.station = request.META['HTTP_EVE_STATIONNAME']
else:
fat.station = "No Station"
fat.shiptype = request.META['HTTP_EVE_SHIPTYPENAME']
fat.fatlink = fatlink
fat.character = character