@@ -172,8 +172,9 @@ func HandleTeamworkEvalCommand(s *discordgo.Session, i *discordgo.InteractionCre
172172 coopID = strings .ToLower (contract .CoopID )
173173 }
174174
175+ eiID := farmerstate .GetMiscSettingString (userID , "encrypted_ei_id" )
175176 var str string
176- str , fields , _ := DownloadCoopStatusTeamwork (contractID , coopID , true )
177+ str , fields , _ := DownloadCoopStatusTeamwork (contractID , coopID , true , eiID )
177178 if fields == nil || strings .HasSuffix (str , "no such file or directory" ) || strings .HasPrefix (str , "No grade found" ) {
178179 // Trim output to 3500 characters if needed
179180 trimmedStr := str
@@ -198,6 +199,7 @@ func HandleTeamworkEvalCommand(s *discordgo.Session, i *discordgo.InteractionCre
198199 // Fill in our calling parameters
199200 cache .contractID = contractID
200201 cache .coopID = coopID
202+ cache .eiID = eiID
201203 cache .public = publicReply
202204 cache .showScores = scoresFirst
203205 if eggign != "" {
@@ -224,7 +226,7 @@ func HandleTeamworkEvalCommand(s *discordgo.Session, i *discordgo.InteractionCre
224226}
225227
226228// DownloadCoopStatusTeamwork will download the coop status for a given contract and coop ID
227- func DownloadCoopStatusTeamwork (contractID string , coopID string , setContractEstimate bool ) (string , map [string ][]TeamworkOutputData , ContractScore ) {
229+ func DownloadCoopStatusTeamwork (contractID string , coopID string , setContractEstimate bool , eeidOverride string ) (string , map [string ][]TeamworkOutputData , ContractScore ) {
228230 var dataTimestampStr string
229231 var nowTime time.Time
230232
@@ -275,7 +277,7 @@ func DownloadCoopStatusTeamwork(contractID string, coopID string, setContractEst
275277 return fmt .Sprintf ("Filenames:\n %s" , strings .Join (fileNames , "\n " )), nil , ContractScore {}
276278 }
277279
278- coopStatus , nowTime , dataTimestampStr , err := ei .GetCoopStatus (contractID , coopID , "" )
280+ coopStatus , nowTime , dataTimestampStr , err := ei .GetCoopStatus (contractID , coopID , eeidOverride )
279281 if err != nil {
280282 return err .Error (), nil , ContractScore {}
281283 }
0 commit comments