Skip to content

Commit

Permalink
Remvoe the use of preprints_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
cslzchen committed May 15, 2024
1 parent 8868647 commit e4e69f2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
from api.waffle.utils import storage_i18n_flag_active

logger = logging.getLogger(__name__)
preprints_dir = os.path.abspath(os.path.join(os.getcwd(), EXTERNAL_EMBER_APPS['preprints']['path']))
ember_osf_web_dir = os.path.abspath(os.path.join(os.getcwd(), EXTERNAL_EMBER_APPS['ember_osf_web']['path']))


Expand Down Expand Up @@ -332,8 +331,6 @@ def resolve_guid(guid, suffix=None):
if isinstance(resource, Preprint):
if resource.provider.domain_redirect_enabled:
return redirect(resource.absolute_url, http_status.HTTP_301_MOVED_PERMANENTLY)
if clean_suffix.endswith('edit'):
return stream_emberapp(EXTERNAL_EMBER_APPS['preprints']['server'], preprints_dir)
return use_ember_app()

elif isinstance(resource, Registration) and (clean_suffix in ('', 'comments', 'links', 'components', 'resources',)) and waffle.flag_is_active(request, features.EMBER_REGISTRIES_DETAIL_PAGE):
Expand Down

0 comments on commit e4e69f2

Please sign in to comment.