main.py
def fly_bubble_anchor(cls, date, time_code):
        """Converts a date object and met office time reference e.g. '360' to
        a FlyBubble weather site anchor.
        """
        anchor_numbers = {"360": 0, "540": 0, "720": 2, "900": 5, "1080": 8}
        anchor_number = anchor_numbers[time_code]
        day_offset = (date - date.today()).days
        anchor_number = anchor_number + (9 * day_offset)

        return anchor_number
Converts a date object and met office time reference e.g. '360' to
        a FlyBubble weather site anchor.
        
Converts a date object and met office time reference e.g. '360' to
a FlyBubble weather site anchor.
Converts a date object and met office time reference e . g . ' 360 ' to a FlyBubble weather site anchor .
def fly_bubble_anchor(cls, date, time_code):
        anchor_numbers = {"360": 0, "540": 0, "720": 2, "900": 5, "1080": 8}
        anchor_number = anchor_numbers[time_code]
        day_offset = (date - date.today()).days
        anchor_number = anchor_number + (9 * day_offset)
        return anchor_number
def fly_bubble_anchor ( cls , date , time_code ) : anchor_numbers = { "360" : 0 , "540" : 0 , "720" : 2 , "900" : 5 , "1080" : 8 } anchor_number = anchor_numbers [ time_code ] day_offset = ( date - date . today ( ) ) . days anchor_number = anchor_number + ( 9 * day_offset ) return anchor_number
Converts a date object and met office time reference e.g.
Converts a date object and met office time reference e . g .
"""Converts a date object and met office time reference e.g. '360' to
        a FlyBubble weather site anchor.
        """
cls
date
time_code