Commit 26dba0fc authored by carlosribas's avatar carlosribas
Browse files

Change the FTP address

parent 280c7652
......@@ -364,7 +364,7 @@ class SecondaryStructureSVGImage(generics.ListAPIView):
permission_classes = (AllowAny,)
def get(self, request, pk=None, format=None):
ftp = "http://ftp.ebi.ac.uk/pub/databases/RNAcentral/current_release/.secondary-structure/secondary-structure/{}.svg.gz"
ftp = "http://ftp.ebi.ac.uk/pub/databases/RNAcentral/releases/15.0/.secondary-structure/secondary-structure/{}.svg.gz"
upi = list(self.kwargs['pk'])
upi_path = "".join(upi[0:3]) + "/" \
+ "".join(upi[3:5]) + "/" \
......
......@@ -543,7 +543,7 @@ class Rna(CachingMixin, models.Model):
return {}
# added for release-16. Layout comes from the FTP
ftp = "http://ftp.ebi.ac.uk/pub/databases/RNAcentral/current_release/.secondary-structure/secondary-structure/{}.svg.gz"
ftp = "http://ftp.ebi.ac.uk/pub/databases/RNAcentral/releases/15.0/.secondary-structure/secondary-structure/{}.svg.gz"
upi = list(self.pk)
upi_path = "".join(upi[0:3]) + "/" \
+ "".join(upi[3:5]) + "/" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment