kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
				
				
				
			Switch back from pendulum to arrow to fix broken build ;)
							rodzic
							
								
									4459f3ebc1
								
							
						
					
					
						commit
						02d35ded25
					
				|  | @ -2,7 +2,7 @@ import base64 | |||
| from collections.abc import Mapping | ||||
| import datetime | ||||
| import logging | ||||
| import pendulum | ||||
| import arrow | ||||
| 
 | ||||
| import mutagen._util | ||||
| import mutagen.oggtheora | ||||
|  | @ -575,9 +575,9 @@ class PermissiveDateField(serializers.CharField): | |||
|                 return datetime.date(parsed.year, parsed.month, parsed.day) | ||||
| 
 | ||||
|         try: | ||||
|             parsed = pendulum.parse(str(value)) | ||||
|             parsed = arrow.get(str(value)) | ||||
|             return datetime.date(parsed.year, parsed.month, parsed.day) | ||||
|         except (pendulum.exceptions.ParserError, ValueError): | ||||
|         except (arrow.parser.ParserError, ValueError): | ||||
|             pass | ||||
| 
 | ||||
|         return None | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ import tempfile | |||
| import urllib.parse | ||||
| import uuid | ||||
| 
 | ||||
| import pendulum | ||||
| import arrow | ||||
| import pydub | ||||
| from django.conf import settings | ||||
| from django.contrib.contenttypes.fields import GenericRelation | ||||
|  | @ -286,7 +286,7 @@ def import_artist(v): | |||
| 
 | ||||
| 
 | ||||
| def parse_date(v): | ||||
|     d = pendulum.parse(v).date() | ||||
|     d = arrow.get(v).date() | ||||
|     return d | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -32,7 +32,7 @@ django-cors-headers>=3.2,<3.3 | |||
| musicbrainzngs==0.6 | ||||
| djangorestframework>=3.11,<3.12 | ||||
| djangorestframework-jwt>=1.11,<1.12 | ||||
| pendulum>=2,<3 | ||||
| arrow>=0.15.5,<0.16 | ||||
| persisting-theory>=0.2,<0.3 | ||||
| django-versatileimagefield>=2.0,<2.1 | ||||
| django-filter>=2.1,<2.2 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Eliot Berriot
						Eliot Berriot