2021-03-16 11:22:44 -07:00
|
|
|
LICENSE_CHOICES = [
|
|
|
|
(1, 'Public Domain'),
|
|
|
|
(2, 'Unknown'),
|
|
|
|
(3, 'CC BY-SA 2.5'),
|
2021-03-16 12:30:21 -07:00
|
|
|
(4, 'CC BY-SA 3.0'),
|
2021-03-16 16:23:00 -07:00
|
|
|
(5, 'CC BY 3.0'),
|
2021-04-03 01:02:25 -07:00
|
|
|
(6, 'CC BY 1.0'),
|
2021-11-07 08:19:34 -08:00
|
|
|
(7, 'CC0 1.0'),
|
|
|
|
(8, 'CC BY 4.0'),
|
2021-03-16 11:22:44 -07:00
|
|
|
]
|
2021-03-16 14:21:58 -07:00
|
|
|
|
|
|
|
|
2021-03-17 11:28:51 -07:00
|
|
|
def get_license_info(x):
|
2021-03-16 14:21:58 -07:00
|
|
|
if x == 1:
|
|
|
|
return ('Public Domain', 'https://en.wikipedia.org/wiki/Public_domain')
|
|
|
|
if x == 2:
|
|
|
|
return ('Unknown', 'https://example.com')
|
|
|
|
if x == 3:
|
|
|
|
return ('CC BY-SA 2.5', 'https://creativecommons.org/licenses/by-sa/2.5')
|
|
|
|
if x == 4:
|
|
|
|
return ('CC BY-SA 3.0', 'https://creativecommons.org/licenses/by-sa/3.0')
|
|
|
|
if x == 5:
|
|
|
|
return ('CC BY 3.0', 'https://creativecommons.org/licenses/by/3.0')
|
2021-03-16 16:23:00 -07:00
|
|
|
if x == 6:
|
|
|
|
return ('CC BY 1.0', 'https://creativecommons.org/licenses/by/1.0')
|
2021-04-03 01:29:09 -07:00
|
|
|
if x == 7:
|
2021-04-03 01:02:25 -07:00
|
|
|
return ('CC0 1.0', 'https://creativecommons.org/publicdomain/zero/1.0')
|
2021-11-07 08:19:34 -08:00
|
|
|
if x == 8:
|
|
|
|
return ('CC BY 4.0', 'https://creativecommons.org/licenses/by/4.0')
|