X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FInjuries.hs;h=3f0fea55e364b066dfe4e95a2979893f4f0e75c0;hb=5a8d0ad5929fb297c74ea0802c11f9aa94b25ce7;hp=6af9ad9226feebd20356ab439c1c03a419366dc3;hpb=a598aadfa97ff2d4d287c0bc36f579198d21dfa1;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/Injuries.hs b/src/TSN/XML/Injuries.hs index 6af9ad9..3f0fea5 100644 --- a/src/TSN/XML/Injuries.hs +++ b/src/TSN/XML/Injuries.hs @@ -102,7 +102,7 @@ data InjuriesTeam = data InjuriesListingXml = InjuriesListingXml { xml_team :: InjuriesTeam, - xml_teamno :: Maybe Int, + xml_teamno :: Maybe String, -- ^ Can contain non-numerics, e.g. \"ZR2\" xml_injuries :: String, xml_updated :: Maybe Bool } deriving (Eq, Show) @@ -115,7 +115,7 @@ data InjuriesListing = InjuriesListing { db_injuries_id :: DefaultKey Injuries, db_team :: InjuriesTeam, - db_teamno :: Maybe Int, + db_teamno :: Maybe String, -- ^ Can contain non-numerics, e.g. \"ZR2\" db_injuries :: String, db_updated :: Maybe Bool } @@ -264,7 +264,7 @@ pickle_listing = xpElem "listing" $ xpWrap (from_tuple, to_tuple) $ xp4Tuple pickle_injuries_team - (xpOption $ xpElem "teamno" xpInt) + (xpOption $ xpElem "teamno" xpText) (xpElem "injuries" xpText) (xpOption $ xpElem "updated" xpPrim) where