Simon Volpert gmipay / 5b5b7f8
Remove saved access record validity checks Since the script already generates valid records, checking their validity specifically is redundant Simon Volpert 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
315315 record[R_STATUS] = 'expired'
316316 record[R_AMOUNT] = 'x'
317317 # Check whether payment was received
318 if len(record) > 1 and record[R_STATUS] != 'paid':
318 if record[R_STATUS] != 'paid':
319319 record[R_TIME] = timestamp
320320 address = record[R_ADDR]
321321 new_balance = get_balance(address)
339339 # Write to log file
340340 write_log(f'{timestamp} -- Payment received of {change} BIT to {address} from {cert_hash} for {request_filename}\n')
341341 # Give the client their file
342 if len(record) > 1 and record[R_STATUS] == 'paid':
342 if record[R_STATUS] == 'paid':
343343 # Patch mime type definitions with Gemini-specific types
344344 mimetypes.add_type('text/gemini', '.gmi', strict=False)
345345 # Determine the mime type of the served file